路由重发布(路由重发布实验报告)

网友投稿 322 2022-09-26


路由重发布(路由重发布实验报告)

基本配置R1interface FastEthernet0/0ip address 192.168.1.1 255.255.255.0no shutdown! router ospf 1network 192.168.1.0 0.0.0.255 area 0! R2interface FastEthernet0/0ip address 192.168.1.2 255.255.255.0no shutdown! interface FastEthernet1/0ip address 192.168.2.1 255.255.255.0no shutdown! router ospf 1network 192.168.1.0 0.0.0.255 area 0network 192.168.2.0 0.0.0.255 area 0

R3

interface Loopback0ip address 192.168.5.1 255.255.255.0! interface FastEthernet0/0ip address 192.168.2.2 255.255.255.0no shutdown

! interface FastEthernet1/0ip address 192.168.3.1 255.255.255.0no shutdown! interface FastEthernet2/0ip address 192.168.4.1 255.255.255.0no shutdown

router ospf 1network 192.168.2.0 0.0.0.255 area 0

router ripversion 2network 192.168.3.0

ip route 192.168.6.0 255.255.255.0 192.168.4.2

R4interface FastEthernet0/0ip address 192.168.3.2 255.255.255.0no shutdown! router ripversion 2network 192.168.3.0no auto-summary

R5interface Loopback0ip address 192.168.6.1 255.255.255.0! interface FastEthernet0/0ip address 192.168.4.2 255.255.255.0no shutdown

在路由重发布之前要查看各路由器的路由条目

R2上的路由信息C 192.168.1.0/24 is directly connected, FastEthernet0/0C 192.168.2.0/24 is directly connected, FastEthernet1/0R2#

R4上的路由信息R4#show ip route C 192.168.3.0/24 is directly connected, FastEthernet0/0

在R3上进行路由重发布R3(config)#router rip R3(config-router)#redistribute ospf 1 metric 2 发布OSPF到RIPR3(config-router)#redistribute connected 发布直连路由R3(config-router)#redistribute static metric 5 发布静态路由R3(config-router)#default-information originate 发布默认路由R3(config-router)#exit R3(config)#R3(config)#router ospf 1 R3(config-router)#redistribute rip subnets 发布RIP到OSPFR3(config-router)#redistribute connected subnets发布直连路由R3(config-router)#redistribute static subnets发布静态路由R3(config-router)#default-information originate always发布默认路由

R4#show ip route

R 192.168.4.0/24 [120/1] via 192.168.3.1, 00:00:02, FastEthernet0/0R 192.168.5.0/24 [120/1] via 192.168.3.1, 00:00:02, FastEthernet0/0R 192.168.6.0/24 [120/5] via 192.168.3.1, 00:00:02, FastEthernet0/0R 192.168.1.0/24 [120/2] via 192.168.3.1, 00:00:02, FastEthernet0/0R 192.168.2.0/24 [120/1] via 192.168.3.1, 00:00:02, FastEthernet0/0C 192.168.3.0/24 is directly connected, FastEthernet0/0R* 0.0.0.0/0 [120/1] via 192.168.3.1, 00:00:02, FastEthernet0/0R4#

R2#show ip route O E2 192.168.4.0/24 [110/20] via 192.168.2.2, 00:08:45, FastEthernet1/0O E2 192.168.5.0/24 [110/20] via 192.168.2.2, 00:08:45, FastEthernet1/0O E2 192.168.6.0/24 [110/20] via 192.168.2.2, 00:08:35, FastEthernet1/0C 192.168.1.0/24 is directly connected, FastEthernet0/0C 192.168.2.0/24 is directly connected, FastEthernet1/0O E2 192.168.3.0/24 [110/20] via 192.168.2.2, 00:08:51, FastEthernet1/0O*E2 0.0.0.0/0 [110/1] via 192.168.2.2, 00:08:28, FastEthernet1/0


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:解决spring boot环境切换失效的问题
下一篇:eNSP--实验三:VLAN划分(ensp中两个vlan间ping通)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~