RIP区域和OSPF区域通信

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RIP区域和OSPF区域通信相关的知识,希望对你有一定的参考价值。

配置静态路由,默认路由,RIP,OSPF协议使网络互通

技术分享

R1(config)#ipv6 unicast-routing
R1(config)#interface fastEthernet 0/0    
R1(config-if)#ipv6 enable
R1(config-if)#ipv6 address abcd:12::1/64
R1(config-if)#no shutdown
R1(config-if)#exit

R2(config)#ipv6 unicast-routing
R2(config)#interface fastEthernet 0/0
R2(config-if)#ipv6 enable
R2(config-if)#ipv6 address abcd:12::2/64
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastEthernet 1/0
R2(config-if)#ipv6 enable
R2(config-if)#ipv6 address abcd:23::1/64
R2(config-if)#no shutdown
R2(config-if)#exit

R3(config)#ipv6 unicast-routing
R3(config)#interface fastEthernet 0/0
R3(config-if)#ipv6 enable
R3(config-if)#ipv6 address abcd:23::2/64
R3(config-if)#no shutdown
R3(config-if)#exit

R1(config)#ipv6 route abcd:23::/64 abcd:12::2
R1(config)#do show ipv6 route
C   ABCD:12::/64 [0/0]
     via ::, FastEthernet0/0
L   ABCD:12::1/128 [0/0]
     via ::, FastEthernet0/0
S   ABCD:23::/64 [1/0]
     via ABCD:12::2
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0

R3(config)#ipv6 route abcd:12::/64 abcd:23::1
R3(config)#do show ipv6 route
S   ABCD:12::/64 [1/0]
     via ABCD:23::1
C   ABCD:23::/64 [0/0]
     via ::, FastEthernet0/0
L   ABCD:23::2/128 [0/0]
     via ::, FastEthernet0/0
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0
R3(config)#do ping abcd:12::1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to ABCD:12::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/53/60 ms

R1(config)#ipv6 route ::0/0 abcd:12::2
R1(config)#do show ipv6  route
S   ::/0 [1/0]
     via ABCD:12::2
C   ABCD:12::/64 [0/0]
     via ::, FastEthernet0/0
L   ABCD:12::1/128 [0/0]
     via ::, FastEthernet0/0
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0

R3(config)#ipv6 route ::0/0 abcd:23::1
R3(config)#do show ipv6 route
S   ::/0 [1/0]
     via ABCD:23::1
C   ABCD:23::/64 [0/0]
     via ::, FastEthernet0/0
L   ABCD:23::2/128 [0/0]
     via ::, FastEthernet0/0
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0
R3(config)#do ping abcd:12::1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to ABCD:12::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/55/68 ms

R1(config)#interface fastEthernet 0/0
R1(config-if)#ipv6 rip benet enable
R1(config-if)#exit

R2(config)#interface fastEthernet 0/0
R2(config-if)#ipv6 rip benet enable
R2(config-if)#exit
R2(config)#interface fastEthernet 1/0
R2(config-if)#ipv6 rip benet enable
R2(config-if)#exit

R3(config)#interface fastEthernet 0/0
R3(config-if)#ipv6 rip benet enable
R3(config-if)#exit

R1(config)#do show ipv6 route
C   ABCD:12::/64 [0/0]
     via ::, FastEthernet0/0
L   ABCD:12::1/128 [0/0]
     via ::, FastEthernet0/0
R   ABCD:23::/64 [120/2]
     via FE80::CE01:FFF:FED8:0, FastEthernet0/0
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0

R1(config)#do ping abcd:23::2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to ABCD:23::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/53/72 ms

R1(config)#ipv6 router  ospf 10
R1(config-rtr)#router-id 1.1.1.1
R1(config-rtr)#exit               
R1(config)#interface fastEthernet 0/0
R1(config-if)#ipv6 ospf 10 area 0
R1(config-if)#exit

R2(config)#ipv6 router ospf 10
R2(config-rtr)#router-id 2.2.2.2
R2(config-rtr)#exit
R2(config)#interface fastEthernet 0/0
R2(config-if)#ipv6 ospf 10 area 0
R2(config-if)#exit
R2(config)#interface fastEthernet 1/0
R2(config-if)#ipv6 ospf 10 area 1
R2(config-if)#exit

R3(config)#ipv6 router ospf 10
R3(config-rtr)#router-id 3.3.3.3
R3(config-rtr)#exit
R3(config)#interface fastEthernet 0/0
R3(config-if)#ipv6 ospf 10 area 1
R3(config-if)#exit

R1(config)#do show ipv6 route
C   ABCD:12::/64 [0/0]
     via ::, FastEthernet0/0
L   ABCD:12::1/128 [0/0]
     via ::, FastEthernet0/0
OI  ABCD:23::/64 [110/2]
     via FE80::CE01:FFF:FED8:0, FastEthernet0/0
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0

R1(config)#do ping abcd:23::2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to ABCD:23::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/72/120 ms

本文出自 “阿宇” 博客,请务必保留此出处http://xiaoayu.blog.51cto.com/12001978/1852962

以上是关于RIP区域和OSPF区域通信的主要内容,如果未能解决你的问题,请参考以下文章

简单搭建OSPF,RIP,NSSA,外部路由汇总网络拓扑

华为模拟器中ospf中建立虚链路ospf与rip的重分发实验

OSPF

两台三层交换机单区域OSPF动态路由实验

OSPF中的NSSA区域

OSPF基本概念以及DR/BDR和虚连接OSPF特殊区域的实验操作