【old】OSPFv3 address-family

※noteから引っ越してきた記事

初期設定

— ipv4のみも可能
— 但し、ipv6でカプセル化しているためipv6 unicast-routingとI/Fでのipv6 enableが必要

RT1

en
terminal length 0
conf t
hostname iosv-0
line console 0
logging synchronous
exit
!
ipv6 unicast-routing
!
router ospfv3 1
router-id 1.1.1.1
address-family ipv4 unicast
exit
address-family ipv6 unicast
exit
exit
!
int gi0/0
ip address 192.168.12.1 255.255.255.0
ipv6 address 2001:1:1:12::1/64
ipv6 address fe80::1 link-local
ospfv3 1 ipv4 area 0
ospfv3 1 ipv6 area 0
no shut
exit
!
int gi0/1
ip address 172.16.1.1 255.255.255.0
ipv6 address 2001:1:1:1::1/64
ipv6 address fe80::1 link-local
ospfv3 1 ipv4 area 1
ospfv3 1 ipv6 area 1
no shut
end
!

RT2

en
terminal length 0
conf t
hostname iosv-1
line console 0
logging synchronous
exit
!
ipv6 unicast-routing
!
router ospfv3 1
router-id 2.2.2.2
address-family ipv4 unicast
exit
address-family ipv6 unicast
exit
exit
!
int gi0/0
ip address 192.168.12.2 255.255.255.0
ipv6 address 2001:1:1:12::2/64
ipv6 address fe80::2 link-local
ospfv3 1 ipv4 area 0
ospfv3 1 ipv6 area 0
no shut
exit
!
int gi0/1
ip address 172.16.2.2 255.255.255.0
ipv6 address 2001:2:2:2::2/64
ipv6 address fe80::2 link-local
ospfv3 1 ipv4 area 2
ospfv3 1 ipv6 area 2
no shut
end
!

・v4とv6それぞれでルーティングテーブルを保持していることを確認

・#show ip ospf neighborでは表示されない
・#show ospfv3でv4ospf情報を確認できる

show ospfv3 int briefめっちゃ見やすいしわかりやすい

◎OSPFv3は複数の設定方法がある
1)(config-if)#ip(v6) ospf 1 area 0
       (config-router)#router-id 1.1.1.1
2)(config-if)#ospfv3 1 ipv4(v6) area 0
       (config-router)#router-id 1.1.1.1
       (config-router)#address-family ipv4(6) unicast

参考

IPv6 – OSPFv3 Address Family