OSPFv3 その2
ここでは、下図のネットワークを OSPFv3 で構築していきます。

各ルータの設定
まずは、基本設定を行います。
各ルータのIPv6アドレスなどの基本設定は、以下のとおりです。
「ipv6 unicast-routing」コマンドを適用して、IPv6によるルーティングも有効にしておきます。
R1の設定
Router>enable
Router#conf t
Router(config)#hostname R1
R1(config)#ipv6 unicast-routing
R1(config)#int g0/0
R1(config-if)#ipv6 address 2001:db8:cc1e:1::1/64
R1(config-if)#ipv6 address fe80::1 link-local
R1(config-if)#no shutdown
R1(config-if)#int g0/1
R1(config-if)#ipv6 address 2001:db8:cc1e:2::1/64
R1(config-if)#ipv6 address fe80::1 link-local
R1(config-if)#no shutdown
R1(config-if)#end
R1#copy run start
R2の設定
Router>enable
Router#conf t
Router(config)#hostname R2
R2(config)#ipv6 unicast-routing
R2(config)#int g0/0
R2(config-if)#ipv6 address 2001:db8:cc1e:3::1/64
R2(config-if)#ipv6 address fe80::2 link-local
R2(config-if)#no shutdown
R2(config-if)#int g0/1
R2(config-if)#ipv6 address 2001:db8:cc1e:2::2/64
R2(config-if)#ipv6 address fe80::2 link-local
R2(config-if)#no shutdown
R2(config-if)#end
R2#copy run start
OSPFv3 の設定
R1の OSPFv3 設定
R1(config)#ipv6 router ospf 1
R1(config-rtr)#router-id 1.1.1.1
R1(config-rtr)#passive-interface g0/0
R1(config-rtr)#int g0/0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#int g0/1
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#end
R1#copy run start
R2の OSPFv3 設定
R2(config)#ipv6 router ospf 1
R2(config-rtr)#router-id 2.2.2.2
R2(config-rtr)#passive-interface g0/0
R2(config-rtr)#int g0/0
R2(config-if)#ipv6 ospf 1 area 0
R2(config-if)#int g0/1
R2(config-if)#ipv6 ospf 1 area 0
R2(config-if)#end
R2#copy run start
これで、OSPFv3 の設定は、完了です。
続きは、次の「OSPFv3 その3」で、構築した OSPFv3 ネットワークを検証していきます。
