Spring中的aware接口详情
300
2022-09-17
NSSA区域路由重分发
实验要求:
配置路由器重分发,实现全网互通。
实验规划:
实验拓扑图:
地址规划:
IOU1 | e0/1:10.0.16.1/24 | loop0:1.1.1.1/32 |
e0/0:10.0.12.2/24 | ||
IOU2 | e0/0:10.0.12.1/24 | loop0:2.2.2.2/32 |
e0/1:10.0.23.1/24 | ||
e0/2:10.0.56.1/24 | ||
IOU3 | e0/0:10.0.23.2/24 | loop0:3.3.3.3/32 |
e0/1:10.0.34.1/24 | ||
IOU4 | e0/0:10.0.34.2/24 | loop0:4.4.4.4/32 |
e0/1:10.0.45.1/24 | ||
IOU5 | e0/0:10.0.45.2/24 | loop0:172.16.0.1/24 |
loop1:172.16.1.1/24 | ||
loop2:172.16.2.1/24 | ||
loop3:172.16.3.1/24 | ||
IOU6 | e0/0:10.0.16.0/24 | loop0:6.6.6.6/32 |
vlan 10:192.168.0.1/24 | ||
vlan 20:192.168.1.1/24 | ||
vlan 30:192.168.2.1/24 | ||
vlan 40:192.168.3.1/24 | ||
IOU8 | e0/0:10.0.56.2/24 | loop0:8.8.8.8/32 |
e0/1:10.0.67.1/24 | ||
IOU9 | e0/0:10.0.67.2/24 |
实验配置:
IOU1:
config terminalinterface e0/0ip address 10.0.12.1 255.255.255.0no shutdowninterface e0/1duplex fullip address 10.0.16.1 255.255.255.0no shutdowninterface loopback 0ip address 1.1.1.1 255.255.255.255no shutdownexitip route 192.168.0.0 255.255.255.252 10.0.16.2router ospf 1router-id 1.1.1.1network 1.1.1.1 0.0.0.0 area 1network 10.0.12.0 0.0.0.255 area 1network 10.0.16.0 0.0.0.255 area 1exit
IOU2:
config terminalinterface e0/0ip address 10.0.12.2 255.255.255.0no shutdowninterface e0/1ip address 10.0.23.1 255.255.255.0no shutdowninterface e0/2ip address 10.0.56.1 255.255.255.0no shutdowninterface loopback 0ip address 2.2.2.2 255.255.255.255no shutdownexitrouter ospf 1router-id 2.2.2.2area 3 nssa no-summary //配置NSSA区域area 3 nssa default-information-originate //配置生成LSA默认路由network 10.0.12.0 0.0.0.255 area 1network 10.0.23.0 0.0.0.255 area 0network 10.0.56.0 0.0.0.255 area 3network 2.2.2.2 0.0.0.0 area 0exit
IOU3:
config terminalinterface e0/0ip address 10.0.23.2 255.255.255.0no shutdowninterface e0/1ip address 10.0.34.1 255.255.255.0no shutdowninterface loopback 0ip address 3.3.3.3 255.255.255.255no shutdownexitrouter ospf 1router-id 3.3.3.3 network 10.0.23.0 0.0.0.255 area 0network 10.0.34.0 0.0.0.255 area 2network 3.3.3.3 0.0.0.0 area 0exit
IOU4:
config terminalinterface e0/0ip address 10.0.34.2 255.255.255.0no shutdowninterface e0/1ip address 10.0.45.1 255.255.255.0no shutdowninterface loopback 0ip address 4.4.4.4 255.255.255.255no shutdownexitrouter ospf 1router-id 4.4.4.4network 10.0.34.0 0.0.0.255 area 2network 4.4.4.4 0.0.0.0 area 2redistribute rip subnetsexitrouter ripversion 2no auto-summarynetwork 10.0.45.0redistribute ospf 1 metric 3exit
IOU5:
config terminalinterface e0/0ip address 10.0.45.2 255.255.255.0no shutdowninterface loopback 0ip address 172.16.0.1 255.255.255.0no shutdowninterface loopback 1ip address 172.16.1.1 255.255.255.0no shutdowninterface loopback 2ip address 172.16.2.1 255.255.255.0no shutdowninterface loopback 3ip address 172.16.3.1 255.255.255.0no shutdownexitrouter ripversion 2no auto-summarynetwork 10.0.45.0network 172.16.0.0network 172.16.1.0network 172.16.2.0network 172.16.3.0redistribute ospf 1 metric 3exit
IOU6:
config terminalvlan 10,20,30,40interface e0/0switchport trunk encapsulation dot1qswitchport mode trunkno switchportip address 10.0.16.2 255.255.255.0no shutdowninterface loopback 0ip address 6.6.6.6 255.255.255.255no shutdowninterface vlan 10ip address 192.168.1.1 255.255.255.0no shutdowninterface vlan 20ip address 192.168.2.1 255.255.255.0no shutdowninterface vlan 30ip address 192.168.3.1 255.255.255.0no shutdowninterface vlan 40ip address 192.168.4.1 255.255.255.0no shutdownexitrouter ospf 1network 10.0.16.0 0.0.0.255 area 1network 192.168.1.0 0.0.0.255 area 1network 192.168.2.0 0.0.0.255 area 1network 192.168.3.0 0.0.0.255 area 1network 192.168.4.0 0.0.0.255 area 1exit
IOU8:
config terminalinterface e0/0ip address 10.0.56.2 255.255.255.0no shutdowninterface e0/1ip address 10.0.67.1 255.255.255.0no shutdownexitrouter ospf 1area 3 nssa no-summaryarea 3 nssa default-information-originatenetwork 10.0.56.0 0.0.0.255 area 3redistribute rip subnetsexitrouter ripversion 2no auto-summarynetwork 10.0.67.0redistribute ospf 1 metric 3exit
IOU9:
config terminalinterface e0/0ip address 10.0.67.2 255.255.255.0no shutdownexitrouter ripversion 2no auto-summarynetwork 10.0.67.0redistribute ospf 1 metric 3exit
查看路由表:
连通性测试:
(如有疏漏,还请读者指教)
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~