20-高级路由:OSPF -特殊区域 GRE(极路由 二级路由)

网友投稿 270 2022-09-28


20-高级路由:OSPF -特殊区域 GRE(极路由 二级路由)

R3(config)#ip route 1.1.1.1 255.255.255.255 13.1.1.1

同理:R1部署TunnelR1(config)#interface tunnel 1R1(config-if)#ip add 31.1.1.1 255.255.255.0R1(config-if)#tunnel source 1.1.1.1R1(config-if)#tunnel destination 3.3.3.3R1(config-if)#tunnel mode gre ip

R1(config)#ip route 3.3.3.3 255.255.255.255 13.1.1.3

2、将Tunnel网段地址到Area 0R3(config)#router ospf 110R3(config-router)#network 31.1.1.0 0.0.0.255 area 0

R1(config)#router ospf 110R1(config-router)#network 31.1.1.0 0.0.0.255 area 0

三、验证:1、配置验证:①查看Tunnel配置R3#show run int tunnel 3interface Tunnel3ip address 31.1.1.3 255.255.255.0tunnel source 3.3.3.3tunnel destination 1.1.1.1②Tunnel的源目是否可以Ping通R3#ping 1.1.1.1 source 3.3.3.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:Packet sent with a source address of 3.3.3.3 !!!!!③部署静态路由到1.1.1.1,因为不允许将Tunnel的IP地址和源目同时宣告进OSPF,否则将会是Tunnel一会起来,一会挂掉。R3#show ip route1.0.0.0/32 is subnetted, 1 subnetsS 1.1.1.1 [1/0] via 13.1.1.12、部署完成后,查看R5否有对方路由条目:R5#show ip route ospf2.0.0.0/32 is subnetted, 1 subnetsO IA 2.2.2.2 [110/11114] via 35.1.1.3, 00:00:34, FastEthernet0/04.0.0.0/32 is subnetted, 1 subnetsO IA 4.4.4.4 [110/11115] via 35.1.1.3, 00:00:34, FastEthernet0/024.0.0.0/24 is subnetted, 1 subnetsO IA 24.1.1.0 [110/11114] via 35.1.1.3, 00:00:34, FastEthernet0/012.0.0.0/24 is subnetted, 1 subnetsO IA 12.1.1.0 [110/11113] via 35.1.1.3, 00:00:34, FastEthernet0/013.0.0.0/24 is subnetted, 1 subnetsO IA 13.1.1.0 [110/2] via 35.1.1.3, 00:05:20, FastEthernet0/031.0.0.0/24 is subnetted, 1 subnetsO IA 31.1.1.0 [110/11112] via 35.1.1.3, 00:05:20, FastEthernet0/0

R2#show ip route ospf35.0.0.0/24 is subnetted, 1 subnetsO IA 35.1.1.0 [110/11113] via 12.1.1.1, 00:02:26, FastEthernet0/04.0.0.0/32 is subnetted, 1 subnetsO 4.4.4.4 [110/2] via 24.1.1.4, 00:39:03, FastEthernet1/05.0.0.0/32 is subnetted, 1 subnetsO IA 5.5.5.5 [110/11114] via 12.1.1.1, 00:02:26, FastEthernet0/013.0.0.0/24 is subnetted, 1 subnetsO IA 13.1.1.0 [110/2] via 12.1.1.1, 00:02:26, FastEthernet0/031.0.0.0/24 is subnetted, 1 subnetsO 31.1.1.0 [110/11112] via 12.1.1.1, 00:02:26, FastEthernet0/0


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

上一篇:深入浅出讲解Java集合之Map接口
下一篇:Spring IOC源码之bean的注册过程讲解
相关文章

 发表评论

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