设为首页 收藏本站
查看: 1435|回复: 0

[经验分享] Juniper Networks' Olive

[复制链接]

尚未签到

发表于 2015-11-5 13:37:55 | 显示全部楼层 |阅读模式
  Juniper Networks' Olive
  http://www.packetmischief.ca/juniper/


  • Preparing for Install
  • Installation
  • Limitations
  • Hardware Support
  • References

  Olive refers to a regular PC that's running Juniper Networks' JUNOS software. Juniper developed Olive early on so they could perform testing of JUNOS during development. These days Olive is deprecated in favor of cheap, low-end M and J-series routers.
  Olive is in no way, shape, or form supported by Juniper or JTAC.
  Olive requires a valid copy of a JUNOS jinstall file. This file can be found on a "real" Juniper router and/or obtained from Juniper under a support contract.

Preparing for Install
  Requirements:


  • FreeBSD 4.x ISO image
  • A valid jinstall package for JUNOS <= 7.4
  • Intel network cards that use the fxp or em driver
  • Serial cable/null-modem cable
  If you're reading this page you're probably aware that JUNOS is based on FreeBSD 4.x. A copy of FreeBSD will be used bootstrap into JUNOS.
  The jinstall package is a literal FreeBSD software package (think pkg_add) that contains JUNOS. To do the initial install you'll need JUNOS 7.4 or earlier (more on this below).
  The right network cards are crucial to having Olive do anything useful. As other sites have documented (see References), Intel-based cards are the only ones supported, specifically cards supported by the FreeBSD 4.x fxp and em drivers.
  Just like the real deal, Olive systems are managed initially through their serial port. You'll need a serial cable or null-modem cable to manage the box and do initial configuration.

Installation
  Install FreeBSD 4.x. A very generic installation is all that's required. Much of it gets blown away when you installl the JUNOS package anyways. Setup your disklabels like this:

ad0s1a    /          100M
ad0s1b    swap       1G
ad0s1e    /config    12M
ad0s1f  /var       large (like, the rest of the disk)

  During the first reboot after the JUNOS package is installed, the install script will repartition the disk appropriately if it doesn't like what it finds. The sizes listed above are what the script resized everything to in my Olive install.
  After installation, boot the system normally, do a bit of tweaking and install JUNOS.

# rm /dev/wd0c && ln -s /dev/ad0c /dev/wd0c
# mkdir /var/etc
# touch /var/etc/master.passwd
# touch /var/etc/group
# touch /var/etc/inetd.conf
# pkg_add jinstall-xxx.tgz

  At this point, if you tried to install anything higher than JUNOS 7.4 you'll get an error message and the pkg_add will stop.

ELF binary type &quot;0&quot; not known.
Abort trap

  Whenever you upgrade JUNOS it always checks to make sure your PICs are properly supported by the version you're upgrading to. To that end, there is a binary within the package called checkpic. The checkpic binary in newer JUNOS packages causes the ELF error. Installing an older version of JUNOS and then upgrading to something newer seems to work just fine. I have a bit more info on checkpic here: checkpic.txt.
  Once the JUNOS package is installed, reboot the system.

# reboot

  Make sure your serial cable/null-modem cable is connected so you can watch the bootup and manage the box once it's up.
  The system will reboot and run the bootstrap installer. It'll repartition the disk (if necessary), install more packages (jbase, jkernel, jpfe, etc) and then it'll reboot again. Once it comes back up you can login.

root@olive% cli
root@olive> show version
Hostname: olive
Model: olive
JUNOS Base OS boot [7.1R1.3]
JUNOS Base OS Software Suite [7.1R1.3]
JUNOS Kernel Software Suite [7.1R1.3]
JUNOS Packet Forwarding Engine Support (M20/M40) [7.1R1.3]
JUNOS Routing Software Suite [7.1R1.3]
JUNOS Online Documentation [7.1R1.3]
JUNOS Crypto Software Suite [7.1R1.3]

Limitations
  Olive does have some limitations.
MTU on fxp and em Cards Limited to 1500 Bytes
  The single greatest limitation is that MTU on the fxp and em NICs is locked at 1500 bytes by the driver. This impacts the ability to do vlan-tagging and MPLS. If you do configure an interface for vlan-tagging the router will drop the MTU of that logical interface to 1496 bytes in order to accomodate the dot1q header. So although everything works just fine, as soon as a full size Ethernet frame hits that interface it gets dropped.

root@olive> show configuration interfaces fxp1
vlan-tagging;
unit 100 {
vlan-id 100;
family inet {
address 172.16.0.101/24;
}
}
root@olive> show interfaces fxp1.100
Logical interface fxp1.100 (Index 64) (SNMP ifIndex 22)
Flags: SNMP-Traps VLAN-Tag [ 0x8100.100 ] Encapsulation: ENET2
Input packets : 316
Output packets: 51
Protocol inet, MTU: 1496
Flags: Is-Primary
Addresses, Flags: Is-Default Is-Preferred Is-Primary
Destination: 172.16.0/24, Local: 172.16.0.101, Broadcast: 172.16.0.255

  There is somewhat of a workaround (at least with the fxp cards) and that is to put the interface into promiscuous mode by either running tcpdump(8) from the shell or using the command monitor traffic interface.
Multicast Traffic doesn't pass on Intel GigE Cards
  The GigE cards don't seem to pass multicast traffic. Running monitor traffic interface shows zero received mcast packets. This will obviously be an issue when running any routing protocol that uses multicast for HELLOs, etc.

Hardware Support
  The following NICs have been tested and known to work with Olive:


  • Intel EtherExpress Pro 10/100B (82557, 82559 chipset)
  • Intel PRO/1000MT, PRO/1000GT
  You will need a recent version of JUNOS in order to use the later generation 1000MT/GT cards.
  Although I haven't been able to test this, I suspect any card supported by the FreeBSD 4.x fxp or em driver will work just fine.
  Here is a show system boot-messages from my Olive system.

References


  • JuniperClue
  • Sid Smokes' Olive Lab
  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-135466-1-1.html 上篇帖子: Juniper-SSG系列之子接口(单臂路由)运用 下篇帖子: juniper VIP映射
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表