码迷,mamicode.com
首页 > 其他好文 > 详细

RIP区域和OSPF区域通信

时间:2016-09-16 15:43:16      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:ospf   rip   通信   

配置静态路由,默认路由,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   通信   

原文地址:http://xiaoayu.blog.51cto.com/12001978/1852962

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!