kurt复习ospf小实验
首先在这里要感谢一下青兄,感谢你对论坛无私的奉献!
还要感谢一下小漏兄,哥们,你们的虚拟器太好用了,谢了!
r1、r2、r3为自治域65001,之间用静态路由互联
t1、t2、t3为自治域65002,之间用ospf互联
具体配置如下
root> show configuration | display set
set version 7.3R4.3
set system root-authentication encrypted-password "$1$g4IRZKt5$2xrhK9hexjVtIvYicLIHY."
set system services ftp
set system services telnet
set system syslog user * any emergency
set system syslog file messages any notice
set system syslog file messages authorization info
set system syslog file interactive-commands interactive-commands any
set logical-routers r1 interfaces fxp1 unit 1 vlan-id 1
set logical-routers r1 interfaces fxp1 unit 1 family inet address 10.10.1.1/29
set logical-routers r1 interfaces fxp1 unit 101 vlan-id 101
set logical-routers r1 interfaces fxp1 unit 101 family inet address 10.10.101.2/29
set logical-routers r1 interfaces lo0 unit 1 family inet address 10.100.0.1/32
set logical-routers r1 routing-options static route 10.10.2.0/24 next-hop 10.10.1.2
set logical-routers r1 routing-options static route 10.10.2.0/24 active
set logical-routers r2 interfaces fxp2 unit 1 vlan-id 1
set logical-routers r2 interfaces fxp2 unit 1 family inet address 10.10.1.2/2
set logical-routers r2 interfaces fxp2 unit 2 vlan-id 2
set logical-routers r2 interfaces fxp2 unit 2 family inet address 10.10.2.1/29
set logical-routers r2 interfaces lo0 unit 2 family inet address 10.100.0.2/32
set logical-routers r2 routing-options static route 10.10.1.0/24 next-hop 10.10.2.2
set logical-routers r2 routing-options static route 10.10.2.0/24 next-hop 10.10.1.1
set logical-routers r3 interfaces fxp3 unit 2 vlan-id 2
set logical-routers r3 interfaces fxp3 unit 2 family inet address 10.10.2.2/29
set logical-routers r3 interfaces lo0 unit 3 family inet address 10.100.0.3/32
set logical-routers r3 routing-options static defaults preference 5
set logical-routers r3 routing-options static route 10.10.1.0/24 next-hop 10.10.2.1
set logical-routers t1 interfaces fxp2 unit 101 vlan-id 101
set logical-routers t1 interfaces fxp2 unit 101 family inet address 10.10.101.1/29
set logical-routers t1 interfaces fxp2 unit 102 vlan-id 102
set logical-routers t1 interfaces fxp2 unit 102 family inet address 10.10.102.1/29
set logical-routers t1 interfaces fxp2 unit 103 vlan-id 103
set logical-routers t1 interfaces fxp2 unit 103 family inet address 10.10.103.1/29
set logical-routers t1 interfaces lo0 unit 101 family inet address 10.100.0.101/32
set logical-routers t1 protocols ospf area 0.0.0.0 interface fxp2.102
set logical-routers t1 protocols ospf area 0.0.0.0 interface fxp2.103
set logical-routers t1 protocols ospf area 0.0.0.0 interface lo0.101
set logical-routers t2 interfaces fxp3 unit 102 vlan-id 102
set logical-routers t2 interfaces fxp3 unit 102 family inet address 10.10.102.2/29
set logical-routers t2 interfaces fxp3 unit 104 vlan-id 104
set logical-routers t2 interfaces fxp3 unit 104 family inet address 10.10.104.1/29
set logical-routers t2 interfaces lo0 unit 102 family inet address 10.100.0.102/32
set logical-routers t2 protocols ospf area 0.0.0.0 interface fxp3.102
set logical-routers t2 protocols ospf area 0.0.0.0 interface fxp3.104
set logical-routers t2 protocols ospf area 0.0.0.0 interface lo0.102
set logical-routers t3 interfaces fxp1 unit 103 vlan-id 103
set logical-routers t3 interfaces fxp1 unit 103 family inet address 10.10.103.2/29
set logical-routers t3 interfaces fxp1 unit 104 vlan-id 104
set logical-routers t3 interfaces fxp1 unit 104 family inet address 10.10.104.2/29
set logical-routers t3 interfaces lo0 unit 103 family inet address 10.100.0.103/32
set logical-routers t3 protocols ospf area 0.0.0.0 interface fxp1.103
set logical-routers t3 protocols ospf area 0.0.0.0 interface fxp1.104
set logical-routers t3 protocols ospf area 0.0.0.0 interface lo0.103
set interfaces fxp1 vlan-tagging
set interfaces fxp2 vlan-tagging
set interfaces fxp3 vlan-tagging
ok ,简单试一下
root> ping 10.10.1.1 logical-router r3
PING 10.10.1.1 (10.10.1.1): 56 data bytes
64 bytes from 10.10.1.1: icmp_seq=0 ttl=63 time=0.681 ms
64 bytes from 10.10.1.1: icmp_seq=1 ttl=63 time=0.646 ms
64 bytes from 10.10.1.1: icmp_seq=2 ttl=63 time=0.639 ms
^C
--- 10.10.1.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.639/0.655/0.681/0.018 ms
root> ping 10.10.2.2 logical-router r1
PING 10.10.2.2 (10.10.2.2): 56 data bytes
64 bytes from 10.10.2.2: icmp_seq=0 ttl=63 time=0.754 ms
64 bytes from 10.10.2.2: icmp_seq=1 ttl=63 time=0.726 ms
^C
--- 10.10.2.2 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.726/0.740/0.754/0.014 ms
静态路由木问题root> ping 10.10.104.1 logical-router t1
PING 10.10.104.1 (10.10.104.1): 56 data bytes
64 bytes from 10.10.104.1: icmp_seq=0 ttl=63 time=0.806 ms
64 bytes from 10.10.104.1: icmp_seq=1 ttl=63 time=0.652 ms
^C
--- 10.10.104.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.652/0.729/0.806/0.077 ms
root> ping 10.10.104.2 logical-router t1
PING 10.10.104.2 (10.10.104.2): 56 data bytes
64 bytes from 10.10.104.2: icmp_seq=0 ttl=64 time=0.585 ms
64 bytes from 10.10.104.2: icmp_seq=1 ttl=64 time=0.592 ms
^C
--- 10.10.104.2 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.585/0.589/0.592/0.003 ms
root> ping 10.10.102.1 logical-router t3
PING 10.10.102.1 (10.10.102.1): 56 data bytes
64 bytes from 10.10.102.1: icmp_seq=0 ttl=64 time=0.669 ms
64 bytes from 10.10.102.1: icmp_seq=1 ttl=64 time=0.621 ms
^C
--- 10.10.102.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.621/0.645/0.669/0.024 ms
ospf木有问题
root> show route logical-router r1
inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.10.1.0/29 *[Direct/0] 00:35:47
> via fxp1.1
10.10.1.1/32 *[Local/0] 00:35:47
Local via fxp1.1
10.10.2.0/24 *[Static/5] 00:35:47
> to 10.10.1.2 via fxp1.1
10.10.101.0/29 *[Direct/0] 00:24:04
> via fxp1.101
10.10.101.2/32 *[Local/0] 00:24:04
Local via fxp1.101
10.100.0.1/32 *[Direct/0] 00:11:18
> via lo0.1
root> show route logical-router r2
inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/2 *[Direct/0] 00:35:47
> via fxp2.1
10.10.1.0/24 *[Static/5] 00:35:47
> to 10.10.2.2 via fxp2.2
10.10.1.2/32 *[Local/0] 00:35:47
Local via fxp2.1
10.10.2.0/24 *[Static/5] 00:35:47
> to 10.10.1.1 via fxp2.1
10.10.2.0/29 *[Direct/0] 00:35:48
> via fxp2.2
10.10.2.1/32 *[Local/0] 00:35:48
Local via fxp2.2
10.100.0.2/32 *[Direct/0] 00:11:19
> via lo0.2
root> show route logical-router r3
inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
10.10.1.0/24 *[Static/5] 00:35:48
> to 10.10.2.1 via fxp3.2
10.10.2.0/29 *[Direct/0] 00:35:48
> via fxp3.2
10.10.2.2/32 *[Local/0] 00:35:48
Local via fxp3.2
10.100.0.3/32 *[Direct/0] 00:11:20
> via lo0.3
root> show ospf neighbor logical-router t1
Address Interface State ID Pri Dead
10.10.102.2 fxp2.102 Full 10.100.0.102 128 37
10.10.103.2 fxp2.103 Full 10.100.0.103 128 35
root> show ospf neighbor logical-router t2
Address Interface State ID Pri Dead
10.10.102.1 fxp3.102 Full 10.100.0.101 128 35
10.10.104.2 fxp3.104 Full 10.100.0.103 128 31
root> show ospf neighbor logical-router t3
Address Interface State ID Pri Dead
10.10.103.1 fxp1.103 Full 10.100.0.101 128 31
10.10.104.1 fxp1.104 Full 10.100.0.102 128 39
未完待续!!
附件: 您所在的用户组无法下载或查看附件
搜索更多相关主题的帖子:
学习 实验