DynagenでCCIEを目指す
20100501 OSPFv3 NBMA環境の設定
最終更新:
it_certification
-
view
目的
- NBMA環境でのOSPFv3設定方法を確認します。
構成
- 設定概要
- 各ルータはframe-relayによって接続されています。
- link-local addressはEUI-64形式ではなく、明示的に指定します。
- 構成図

- netファイル
#ghostios = True #sparsemem = True model = 3660 [localhost] [[3660]] image = C:\Program Files\Dynamips\images\c3660-ik9o3s-mz.124-6.T.bin ram = 128 [[ROUTER R1]] s1/0 = SW 1 [[ROUTER R2]] s1/0 = SW 2 [[ROUTER R3]] s1/0 = SW 3 [[FRSW SW]] 1:102 = 2:201 1:103 = 3:301
- 初期設定 R1
! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 ! boot-start-marker boot-end-marker ! ! no aaa new-model ! resource policy ! memory-size iomem 5 ! ! ip cef ! ! ! ipv6 unicast-routing ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address 1.1.1.1 255.255.255.255 ipv6 address 2000::1:1/128 ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 no ip address encapsulation frame-relay ipv6 address FE80::1 link-local ipv6 address 2000::10:1/112 ipv6 enable ipv6 ospf 1 area 0 serial restart-delay 0 no dce-terminal-timing-enable frame-relay map ipv6 FE80::2 102 frame-relay map ipv6 FE80::3 103 ! interface Serial1/1 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! interface Serial1/2 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! interface Serial1/3 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! ip http server no ip http secure-server ! ! ! ipv6 router ospf 1 log-adjacency-changes redistribute connected ! ! ! ! control-plane ! ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end
- 初期設定 R2
! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R2 ! boot-start-marker boot-end-marker ! ! no aaa new-model ! resource policy ! memory-size iomem 5 ! ! ip cef ! ! ! ipv6 unicast-routing ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address 2.2.2.2 255.255.255.255 ipv6 address 2000::2:2/128 ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 no ip address encapsulation frame-relay ipv6 address FE80::2 link-local ipv6 address 2000::10:2/112 ipv6 enable ipv6 ospf 1 area 0 serial restart-delay 0 no dce-terminal-timing-enable frame-relay map ipv6 FE80::3 201 frame-relay map ipv6 FE80::1 201 ! interface Serial1/1 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! interface Serial1/2 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! interface Serial1/3 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! ip http server no ip http secure-server ! ! ! ipv6 router ospf 1 log-adjacency-changes redistribute connected ! ! ! ! control-plane ! ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end
- 初期設定 R3
! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R3 ! boot-start-marker boot-end-marker ! ! no aaa new-model ! resource policy ! memory-size iomem 5 ! ! ip cef ! ! ! ipv6 unicast-routing ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address 3.3.3.3 255.255.255.255 ipv6 address 2000::3:3/128 ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 no ip address encapsulation frame-relay ipv6 address FE80::3 link-local ipv6 address 2000::10:3/112 ipv6 enable ipv6 ospf 1 area 0 serial restart-delay 0 no dce-terminal-timing-enable frame-relay map ipv6 FE80::2 301 frame-relay map ipv6 FE80::1 301 ! interface Serial1/1 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! interface Serial1/2 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! interface Serial1/3 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! ip http server no ip http secure-server ! ! ! ipv6 router ospf 1 log-adjacency-changes redistribute connected ! ! ! ! control-plane ! ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end
検証1 ユニキャストによるneighbor確立
- fram-relayの設定確認
DLCI番号とのマッピングは、link-localアドレスに対して行います。下記の設定例を確認して下さい。
R1#show running-config | begin Serial1/0 interface Serial1/0 no ip address encapsulation frame-relay ipv6 address FE80::1 link-local ipv6 address 2000::10:1/112 ipv6 enable ipv6 ospf 1 area 0 serial restart-delay 0 no dce-terminal-timing-enable frame-relay map ipv6 FE80::2 102 frame-relay map ipv6 FE80::3 103 ! R1# R1# R1#show frame-relay map Serial1/0 (up): ipv6 FE80::2 dlci 102(0x66,0x1860), static, CISCO, status defined, active Serial1/0 (up): ipv6 FE80::3 dlci 103(0x67,0x1870), static, CISCO, status defined, active
- OSPFの設定
IPv4と同様、ユニキャストによりneighborを確立するよう設定します。
R1(config)#interface Serial 1/0 R1(config-if)#ipv6 ospf neighbor FE80::2 R1(config-if)#ipv6 ospf neighbor FE80::3 R2(config)#interface Serial 1/0 R2(config-if)#ipv6 ospf neighbor FE80::1 R3(config)#interface Serial 1/0 R3(config-if)#ipv6 ospf neighbor FE80::1
- neighborの確認
neighborとルーティングテーブルを確認します。
R1#show ipv6 ospf neighbor Neighbor ID Pri State Dead Time Interface ID Interface 3.3.3.3 1 FULL/DR 00:01:53 6 Serial1/0 2.2.2.2 1 FULL/DROTHER 00:01:32 6 Serial1/0 R1# R1# R1#show ipv6 route IPv6 Routing Table - 7 entries Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2 D - EIGRP, EX - EIGRP external LC 2000::1:1/128 [0/0] via ::, Loopback0 OE2 2000::2:2/128 [110/20] via FE80::2, Serial1/0 OE2 2000::3:3/128 [110/20] via FE80::3, Serial1/0 C 2000::10:0/112 [0/0] via ::, Serial1/0 L 2000::10:1/128 [0/0] via ::, Serial1/0 L FE80::/10 [0/0] via ::, Null0 L FF00::/8 [0/0] via ::, Null0 R1#
- 設定削除
検証2に備え、ユニキャストによるneighbor確立の設定を削除します。
R1(config)#interface Serial 1/0 R1(config-if)#no ipv6 ospf neighbor FE80::2 R1(config-if)#no ipv6 ospf neighbor FE80::3 R2(config)#inter Serial 1/0 R2(config-if)#no ipv6 ospf neighbor FE80::1 R3(config)#interface Serial 1/0 R3(config-if)#no ipv6 ospf neighbor FE80::1
検証2 擬似ブロードキャスト環境
- 擬似ブロードキャスト環境の設定
frame-relay網内で、擬似的にブロードキャスト, マルチキャストが転送できるよう設定を変更します。
R1(config)#interface Serial 1/0 R1(config-if)#frame-relay map ipv6 FE80::2 102 broadcast R1(config-if)#frame-relay map ipv6 FE80::3 103 broadcast R2(config)#interface Serial 1/0 R2(config-if)#frame-relay map ipv6 FE80::1 201 broadcast R3(config)#interface Serial 1/0 R3(config-if)#frame-relay map ipv6 FE80::1 301 broadcast
- network typeの変更
マルチキャストによりneighborを確立できるよう、network typeをbroadcastに変更します。
R1(config)#interface Serial 1/0 R1(config-if)#ipv6 ospf network broadcast R2(config)#interface Serial 1/0 R2(config-if)#ipv6 ospf network broadcast R3(config)#interface Serial 1/0 R3(config-if)#ipv6 ospf network broadcast
- neighborの確認
neighborが確立され、経路が交換されている事を確認します。
R1#show ipv6 ospf neighbor Neighbor ID Pri State Dead Time Interface ID Interface 3.3.3.3 1 FULL/DR 00:00:38 6 Serial1/0 2.2.2.2 1 FULL/DROTHER 00:00:39 6 Serial1/0 R1# R1# R1#show ipv6 route IPv6 Routing Table - 7 entries Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2 D - EIGRP, EX - EIGRP external LC 2000::1:1/128 [0/0] via ::, Loopback0 OE2 2000::2:2/128 [110/20] via FE80::2, Serial1/0 OE2 2000::3:3/128 [110/20] via FE80::3, Serial1/0 C 2000::10:0/112 [0/0] via ::, Serial1/0 L 2000::10:1/128 [0/0] via ::, Serial1/0 L FE80::/10 [0/0] via ::, Null0 L FF00::/8 [0/0] via ::, Null0 R1#
添付ファイル