RIP区域和OSPF区域通信
配置静态路由,默认路由,RIP,OSPF协议使网络互通R1(config)#ipv6 unicast-routingR1(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
via ::, FastEthernet0/0
L ABCD:12::1/128
via ::, FastEthernet0/0
S ABCD:23::/64
via ABCD:12::2
L FE80::/10
via ::, Null0
L FF00::/8
via ::, Null0
R3(config)#ipv6 route abcd:12::/64 abcd:23::1
R3(config)#do show ipv6 route
S ABCD:12::/64
via ABCD:23::1
C ABCD:23::/64
via ::, FastEthernet0/0
L ABCD:23::2/128
via ::, FastEthernet0/0
L FE80::/10
via ::, Null0
L FF00::/8
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 ipv6route
S ::/0
via ABCD:12::2
C ABCD:12::/64
via ::, FastEthernet0/0
L ABCD:12::1/128
via ::, FastEthernet0/0
L FE80::/10
via ::, Null0
L FF00::/8
via ::, Null0
R3(config)#ipv6 route ::0/0 abcd:23::1
R3(config)#do show ipv6 route
S ::/0
via ABCD:23::1
C ABCD:23::/64
via ::, FastEthernet0/0
L ABCD:23::2/128
via ::, FastEthernet0/0
L FE80::/10
via ::, Null0
L FF00::/8
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
via ::, FastEthernet0/0
L ABCD:12::1/128
via ::, FastEthernet0/0
R ABCD:23::/64
via FE80::CE01:FFF:FED8:0, FastEthernet0/0
L FE80::/10
via ::, Null0
L FF00::/8
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 routerospf 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
via ::, FastEthernet0/0
L ABCD:12::1/128
via ::, FastEthernet0/0
OIABCD:23::/64
via FE80::CE01:FFF:FED8:0, FastEthernet0/0
L FE80::/10
via ::, Null0
L FF00::/8
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
页:
[1]