以R5的配置爲例ide
#啓用IPv6功能(必配)oop
ipv6spa
#配置ospfv3,router-id必須手動配置且惟一,router-id格式與ospf v2一致。Vlink仍是以router-id配置3d
ospfv3 1router
router-id 5.5.5.5blog
import-route direct接口
area 0.0.0.1ip
vlink-peer 4.4.4.4路由
#接口使能ospfv3,只須要配置link-local地址便可運行OSPFv3(必配)it
interface GigabitEthernet0/0/0
ipv6 enable
ipv6 address auto link-local
ospfv3 1 area 0.0.0.1
#
interface GigabitEthernet0/0/1
ipv6 enable
ipv6 address auto link-local
ospfv3 1 area 0.0.0.2
#這裏在loopback0配置global地址,是爲了創建vlink,創建vlink必須使用global地址。(配置vlink必配,固然能夠再接口上配置global也能夠)
interface LoopBack0
ipv6 enable
ipv6 address 2001::5/128
ospfv3 1 area 0.0.0.1
#用於引入直連,做爲外部路由。
interface LoopBack1
ipv6 enable
ipv6 address 2005::5/128
#
R4查看鄰居和路由