Juniper VMX路由器实现逻辑系统互通
的有关信息介绍如下:Juniper是一种国外的网络产品厂商,主推的产品有路由器、防火墙、交换机等其他系统的产品。和国内的一些华为、华三网络产品厂商一样,Juniper也有自己产品的虚拟机,为更好的了解Juniper产品及配置操作。
通过SecureCRT的方式SSH登录到VMX路由器,在登录路由器之前,需要开启SSH服务、及配置接口的IP地址服务。如下所示:
[edit]
root@JNCIP-Lab# show system services | display set
set system services ftp
set system services ssh
set system services telnet connection-limit 5
[edit]
root@JNCIP-Lab# show interfaces | display set
set interfaces ge-0/0/0 unit 0 family inet address 192.168.136.15/24
记得通过VmwareWorkstation的虚拟网卡关联到VMX的网卡。
从电脑端测试Ping,是否可以到达VMX路由器:
打开SecureCRT登录界面,登录到VMX路由器
使用Root帐号登录时,显示的是%层次,如下所示:
root@JNCIP-Lab%
root@JNCIP-Lab%
进入到配置模式:
root@JNCIP-Lab> configure
Entering configuration mode
[edit]
root@JNCIP-Lab#
配置两个逻辑系统r1和r2,在配置以下配置之前,需要在全局的启用两个接口ge-0/0/1, ge-0/0/2的vlan-tagging
root@JNCIP-Lab# show interfaces | display set
set interfaces ge-0/0/0 unit 0 family inet address 192.168.136.15/24
set interfaces ge-0/0/1 vlan-tagging
set interfaces ge-0/0/2 vlan-tagging
同时,虚拟网卡的在Vmware Workstation也需要绑定到同一个虚拟网卡:
root@JNCIP-Lab# show logical-systems r1 | display set
set logical-systems r1 interfaces ge-0/0/1 unit 12 description r2ge-0/0/2.12
set logical-systems r1 interfaces ge-0/0/1 unit 12 vlan-id 12
set logical-systems r1 interfaces ge-0/0/1 unit 12 family inet address 10.0.4.5/30
[edit]
root@JNCIP-Lab# show logical-systems r2 | display set
set logical-systems r2 interfaces ge-0/0/2 unit 12 description r1ge-0/0/1.12
set logical-systems r2 interfaces ge-0/0/2 unit 12 vlan-id 12
set logical-systems r2 interfaces ge-0/0/2 unit 12 family inet address 10.0.4.6/30
现在单独的登录到r1和r2进行Ping的测试:
root@JNCIP-Lab% cli
root@JNCIP-Lab> set cli logical-system r1
Logical system: r1
root@JNCIP-Lab:r1>
root@JNCIP-Lab% cli
root@JNCIP-Lab> set cli logical-system r2
Logical system: r2
root@JNCIP-Lab:r2>
root@JNCIP-Lab:r1> ping 10.0.4.6 count 5 rapid
PING 10.0.4.6 (10.0.4.6): 56 data bytes
!!!!!
--- 10.0.4.6 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 2.404/4.491/6.835/1.473 ms
root@JNCIP-Lab:r2> show arp
MAC Address Address Name Interface Flags
00:05:86:71:a9:03 10.0.4.1 10.0.4.1 ge-0/0/2.23 none
00:05:86:71:a9:01 10.0.4.5 10.0.4.5 ge-0/0/2.12 none