基本IP設置
R1(config)#int fa0/0
R1(config-if)#ipv6 address 3001::1/64
R1(config-if)#no shutdown
R1(config)#ipv6 unicast-routing /啟用IPv6流量轉發
R1(config)#ipv6 router ospf 1 /創建ospf 1
R1(config-rtr)#router-id 1.1.1.1
R1(config)#int fa0/0
R1(config-if)#ipv6 ospf 1 area 1
R1(config)#ipv6 router ospf 1
R1(config-rtr)#area 1 virtual-link 2.2.2.2 /創建虛擬隧道
R2(config)#int fa 0/0
R2(config-if)#ipv add 3001::2/64
R2(config-if)#no shu
R2(config)#int fa 0/1
R2(config-if)#ipv6 add 4001::1/64
R2(config-if)#no shu
R2(config)#ipv6 unicast-routing
R2(config)#ipv6 router ospf 1
R2(config-rtr)#router-id 2.2.2.2
R2(config)#int fa 0/0
R2(config-if)#ipv6 ospf 1 area 1
R2(config)#int fa 0/1
R2(config-if)#ipv6 ospf 1 area 2
R2(config)#ipv6 router ospf 1
R2(config-rtr)#area 1 virtual-link 1.1.1.1
R3(config)#int fa 0/1
R3(config-if)#ipv6 add 4001::2/64
R3(config-if)#no shu
R3(config)#ipv6 unicast-routing
R3(config)#ipv6 router ospf 1
R3(config-rtr)#router-id 3.3.3.3
R3(config)#int fa 0/1
R3(config-if)#ipv6 ospf 1 area 2
---------------------------------------------------------------------------------------------------
R3#sh ipv6 route
OI 3001::/64 [110/2]
via FE80::260:70FF:FE44:4E02, FastEthernet0/1
OI 3001::1/128 [110/2]
via FE80::260:70FF:FE44:4E02, FastEthernet0/1
OI 3001::2/128 [110/1]
via FE80::260:70FF:FE44:4E02, FastEthernet0/1
C 4001::/64 [0/0]
via ::, FastEthernet0/1
L 4001::2/128 [0/0]
via ::, FastEthernet0/1
L FF00::/8 [0/0]
via ::, Null0
R3#sh ipv6 ospf nei
Neighbor ID Pri State Dead Time Interface ID Interface
2.2.2.2 1 FULL/DR 00:00:39 2 FastEthernet0/1
- Jun 27 Thu 2013 10:19
【Cisco】IPv6 OSPF設定
全站熱搜
留言列表