侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

RIP区域和OSPF区域通信

2022-11-27 星期日 / 0 评论 / 0 点赞 / 53 阅读 / 6035 字

配置静态路由,默认路由,RIP,OSPF协议使网络互通R1(config)#ipv6 unicast-routingR1(config)#interface fastEthernet 0/0 R1(c

.

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

.

广告 广告

评论区