- ASBR(AS Boundary Router) を配置できるようにスタブエリアを拡張した RFC 準拠のエリアである
- ABR はスタブエリアと同様に LSA タイプ4, 5 をブロックする
- NSSA 内の ASBR はタイプ 5 の LSA が禁止されているので代わりにタイプ 7 の LSA を使う
- ABR はタイプ 7 の LSA をタイプ 5 の LSA に変換する
- バックボーンエリア、仮想リンク(Virtual Link)のトランジットエリアを NSSA にすることはできない
- NSSA エリアではデフォルトでは ABR はデフォルトルートをアドバタイズしない
なぜなら ABR の先に外部 AS ネットワークがあるとは限らないから
デフォルトルートのコスト変更
area <area-id> default-cost <cost>
トポロジ

GNS3 プロジェクトファイルダウンロード
NSSA 設定前のものです。
OSPF, EIGRP, RIPv2 、ルート再配布まわりは設定済みです。
GNS3 1.5.x では Windows, Mac 間の portable project のエクスポート、インポートがうまくいかない | | wnoguchi’s diary
Windows
ospf-nssa-win.gns3project
Mac
TODO
基本設定
R1(ASBR) EIGRP ドメイン
conf t
int s0/1
ip addr 172.16.0.1 255.255.255.0
no shut
int s0/0
ip addr 10.0.12.1 255.255.255.0
no shut
!
! OSPF configuration
router ospf 1
! Redistribute EIGRP Route to OSPF
redistribute eigrp 1 subnets
router-id 1.1.1.1
network 10.0.0.0 0.255.255.255 area 0
!
! EIGRP configuration
router eigrp 1
! Redistribute OSPF Route to EIGRP
redistribute ospf 1
default-metric 10000 100 255 1 1500
network 172.16.0.0
no auto-summary
end
wr
R2
conf t
int s0/0
ip addr 10.0.12.2 255.255.255.0
no shut
int f0/0
ip addr 10.0.23.2 255.255.255.0
no shut
int f0/1
ip addr 10.0.2.2 255.255.255.0
no shut
!
! OSPF configuration
router ospf 1
router-id 2.2.2.2
network 10.0.0.0 0.255.255.255 area 0
end
wr
R3(ABR)
conf t
int f0/0
ip addr 10.0.23.3 255.255.255.0
no shut
int s0/0
ip addr 10.1.34.3 255.255.255.0
no shut
!
! OSPF configuration
router ospf 1
router-id 3.3.3.3
network 10.0.23.0 0.0.0.255 area 0
network 10.1.34.0 0.0.0.255 area 1
end
wr
R4
conf t
int s0/0
ip addr 10.1.34.4 255.255.255.0
no shut
int f0/0
ip addr 10.1.45.4 255.255.255.0
no shut
!
! OSPF configuration
router ospf 1
router-id 4.4.4.4
network 10.0.0.0 0.255.255.255 area 1
end
wr
R5(ASBR) RIPv2 ドメイン
conf t
int f0/0
ip addr 10.1.45.5 255.255.255.0
no shut
int f0/1
ip addr 10.1.5.5 255.255.255.0
no shut
int s0/1
ip address 192.168.1.5 255.255.255.0
no shut
!
! OSPF configuration
router ospf 1
router-id 5.5.5.5
! Redistribute RIPv2 Route to OSPF
redistribute rip subnets
network 10.0.0.0 0.255.255.255 area 1
!
! RIPv2 configuration
router rip
version 2
! Redistribute OSPF Route to RIP
redistribute ospf 1 metric 5
network 192.168.1.0
no auto-summary
end
wr
R6 EIGRP AS1 ドメイン
conf t
int s0/0
ip address 172.16.0.6 255.255.255.0
no shut
int f0/0
ip address 172.16.1.6 255.255.255.0
no shut
int f0/1
ip address 172.16.2.6 255.255.255.0
no shut
int f1/0
ip address 172.16.3.6 255.255.255.0
no shut
!
! EIGRP configuration
router eigrp 1
network 172.16.0.0
no auto-summary
end
wr
R7 RIPv2 ドメイン
conf t
int s0/0
ip addr 192.168.1.7 255.255.255.0
no shut
int f0/0
ip addr 192.168.2.7 255.255.255.0
no shut
int f0/1
ip addr 192.168.3.7 255.255.255.0
no shut
!
! RIPv2 configuration
router rip
version 2
network 192.168.1.0
network 192.168.2.0
network 192.168.3.0
no auto-summary
end
wr
VPCs
PC1
ip 10.0.2.21 255.255.255.0 10.0.2.2
save
PC2
ip 10.1.5.52 255.255.255.0 10.1.5.5
save
PC3
ip 172.16.1.63 255.255.255.0 172.16.1.6
save
PC4
ip 172.16.2.64 255.255.255.0 172.16.2.6
save
PC5
ip 172.16.3.65 255.255.255.0 172.16.3.6
save
PC6
ip 192.168.2.76 255.255.255.0 192.168.2.7
save
PC7
ip 192.168.3.77 255.255.255.0 192.168.3.7
save
設定前の動作確認
NSSA 設定前の動作を確認する。
スタブエリア設定前のルーティングテーブルは以下のようになる。
R4#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 4 subnets
O E2 172.16.0.0 [110/20] via 10.1.34.3, 01:52:21, Serial0/0
O E2 172.16.1.0 [110/20] via 10.1.34.3, 01:52:20, Serial0/0
O E2 172.16.2.0 [110/20] via 10.1.34.3, 01:52:20, Serial0/0
O E2 172.16.3.0 [110/20] via 10.1.34.3, 01:52:19, Serial0/0
10.0.0.0/24 is subnetted, 6 subnets
O IA 10.0.12.0 [110/138] via 10.1.34.3, 01:52:26, Serial0/0
O IA 10.0.2.0 [110/84] via 10.1.34.3, 01:52:26, Serial0/0
O 10.1.5.0 [110/20] via 10.1.45.5, 01:50:28, FastEthernet0/0
O IA 10.0.23.0 [110/74] via 10.1.34.3, 01:52:47, Serial0/0
C 10.1.45.0 is directly connected, FastEthernet0/0
C 10.1.34.0 is directly connected, Serial0/0
O E2 192.168.1.0/24 [110/20] via 10.1.45.5, 01:50:28, FastEthernet0/0
O E2 192.168.2.0/24 [110/20] via 10.1.45.5, 01:50:07, FastEthernet0/0
O E2 192.168.3.0/24 [110/20] via 10.1.45.5, 01:50:07, FastEthernet0/0
設定
R3(ABR)
conf t
router ospf 1
area 1 nssa default-information-originate
end
テキストには area 1 nssa default-information originate
と書いてあるけどどのバージョンの IOS のコマンドなんだろ。。。
つーか、テキストのいっちゃん最初に IOS 15 に基づいてなんちゃらって書いてあるな。。。
こういうとき役立つのが IOS 15 の載っている実機や VIRL 。
と思って Cisco 1841 (c1841-adventerprisek9-mz.151-4.M10.bin
) の実機で確認したけど default-information-originate
だったぞ。。
R4(内部ルータ)
conf t
router ospf 1
area 1 nssa
end
R5(ASBR)
conf t
router ospf 1
area 1 nssa
end
検証
NSSA 設定後の内部ルータ R4 の LSDB
R4#sh ip ospf database
OSPF Router with ID (4.4.4.4) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
3.3.3.3 3.3.3.3 130 0x80000003 0x00947F 2
4.4.4.4 4.4.4.4 119 0x80000006 0x00AFCC 3
5.5.5.5 5.5.5.5 120 0x80000005 0x00A1AF 2
Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
10.1.45.5 5.5.5.5 120 0x80000003 0x006C50
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
10.0.2.0 3.3.3.3 156 0x80000002 0x000307
10.0.12.0 3.3.3.3 156 0x80000002 0x00B217
10.0.23.0 3.3.3.3 156 0x80000003 0x00B449
Type-7 AS External Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 3.3.3.3 156 0x80000001 0x00B2F2 0
192.168.1.0 5.5.5.5 126 0x80000001 0x000201 0
192.168.2.0 5.5.5.5 126 0x80000001 0x00F60B 0
192.168.3.0 5.5.5.5 126 0x80000001 0x00EB15 0
LSA タイプ 7 の詳細情報
R4#show ip ospf database nssa-external
OSPF Router with ID (4.4.4.4) (Process ID 1)
Type-7 AS External Link States (Area 1)
Routing Bit Set on this LSA
LS age: 1720
Options: (No TOS-capability, No Type 7/5 translation, DC)
LS Type: AS External Link
Link State ID: 0.0.0.0 (External Network Number )
Advertising Router: 3.3.3.3
LS Seq Number: 80000003
Checksum: 0xAEF4
Length: 36
Network Mask: /0
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 1
Forward Address: 0.0.0.0
External Route Tag: 0
Routing Bit Set on this LSA
LS age: 1689
Options: (No TOS-capability, Type 7/5 translation, DC)
LS Type: AS External Link
Link State ID: 192.168.1.0 (External Network Number )
Advertising Router: 5.5.5.5
LS Seq Number: 80000003
Checksum: 0xFD03
Length: 36
Network Mask: /24
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 20
Forward Address: 10.1.5.5
External Route Tag: 0
Routing Bit Set on this LSA
LS age: 1690
Options: (No TOS-capability, Type 7/5 translation, DC)
LS Type: AS External Link
Link State ID: 192.168.2.0 (External Network Number )
Advertising Router: 5.5.5.5
LS Seq Number: 80000003
Checksum: 0xF20D
Length: 36
Network Mask: /24
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 20
Forward Address: 10.1.5.5
External Route Tag: 0
Routing Bit Set on this LSA
LS age: 1691
Options: (No TOS-capability, Type 7/5 translation, DC)
LS Type: AS External Link
Link State ID: 192.168.3.0 (External Network Number )
Advertising Router: 5.5.5.5
LS Seq Number: 80000003
Checksum: 0xE717
Length: 36
Network Mask: /24
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 20
Forward Address: 10.1.5.5
External Route Tag: 0
NSSA 設定後の内部ルータ R4 の ルーティングテーブル
R4#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 10.1.34.3 to network 0.0.0.0
10.0.0.0/24 is subnetted, 6 subnets
O IA 10.0.12.0 [110/138] via 10.1.34.3, 00:02:19, Serial0/0
O IA 10.0.2.0 [110/84] via 10.1.34.3, 00:02:19, Serial0/0
O 10.1.5.0 [110/20] via 10.1.45.5, 00:02:09, FastEthernet0/0
O IA 10.0.23.0 [110/74] via 10.1.34.3, 00:02:19, Serial0/0
C 10.1.45.0 is directly connected, FastEthernet0/0
C 10.1.34.0 is directly connected, Serial0/0
O N2 192.168.1.0/24 [110/20] via 10.1.45.5, 00:02:09, FastEthernet0/0
O N2 192.168.2.0/24 [110/20] via 10.1.45.5, 00:02:11, FastEthernet0/0
O N2 192.168.3.0/24 [110/20] via 10.1.45.5, 00:02:11, FastEthernet0/0
O*N2 0.0.0.0/0 [110/1] via 10.1.34.3, 00:02:21, Serial0/0
上記から分かるとおり、R3(ABR) はタイプ 5 LSA でアドバタイズされる EIGRP ドメインのルート情報をブロックしている。
そのかわり default-information-originate
でデフォルトルートを LSA タイプ 7 でアドバタイズしている。
また R2 は R3 から RIP のルート情報を LSA タイプ 5 に変換されたものを受け取っている。
R2#sh ip ospf database external 192.168.1.0
OSPF Router with ID (2.2.2.2) (Process ID 1)
Type-5 AS External Link States
Routing Bit Set on this LSA
LS age: 278
Options: (No TOS-capability, DC)
LS Type: AS External Link
Link State ID: 192.168.1.0 (External Network Number )
Advertising Router: 3.3.3.3
LS Seq Number: 80000001
Checksum: 0xD242
Length: 36
Network Mask: /24
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 20
Forward Address: 10.1.5.5
External Route Tag: 0
R2 (バックボーンエリアの内部ルータ)のルーティングテーブル
R2#sh ip ro
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 4 subnets
O E2 172.16.0.0 [110/20] via 10.0.12.1, 00:12:42, Serial0/0
O E2 172.16.1.0 [110/20] via 10.0.12.1, 00:12:42, Serial0/0
O E2 172.16.2.0 [110/20] via 10.0.12.1, 00:12:42, Serial0/0
O E2 172.16.3.0 [110/20] via 10.0.12.1, 00:12:42, Serial0/0
10.0.0.0/24 is subnetted, 6 subnets
C 10.0.12.0 is directly connected, Serial0/0
C 10.0.2.0 is directly connected, FastEthernet0/1
O IA 10.1.5.0 [110/94] via 10.0.23.3, 00:06:28, FastEthernet0/0
C 10.0.23.0 is directly connected, FastEthernet0/0
O IA 10.1.45.0 [110/84] via 10.0.23.3, 00:06:39, FastEthernet0/0
O IA 10.1.34.0 [110/74] via 10.0.23.3, 00:11:59, FastEthernet0/0
O E2 192.168.1.0/24 [110/20] via 10.0.23.3, 00:06:23, FastEthernet0/0
O E2 192.168.2.0/24 [110/20] via 10.0.23.3, 00:06:24, FastEthernet0/0
O E2 192.168.3.0/24 [110/20] via 10.0.23.3, 00:06:24, FastEthernet0/0
トターリーNSSA
Cisco 独自の拡張。
LSA タイプ 3 もブロックする。
すなわちデフォルトルートによって基本的に外部エリア、AS との通信はおこなう。
タイプ 1, 2 および 7 のみ。
(config-router)#area <area-id> nssa no-summary
デフォルトルートを生成することが前提のため、 default-information-originate
は不要である。
R3(ABR)
router ospf 1
area 1 nssa no-summary
R4 の LSDB
R4#sh ip ospf database
OSPF Router with ID (4.4.4.4) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
3.3.3.3 3.3.3.3 1580 0x80000003 0x00947F 2
4.4.4.4 4.4.4.4 1572 0x80000006 0x00AFCC 3
5.5.5.5 5.5.5.5 1572 0x80000005 0x00A1AF 2
Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
10.1.45.5 5.5.5.5 1572 0x80000003 0x006C50
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 3.3.3.3 727 0x80000001 0x00DE4B
Type-7 AS External Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 3.3.3.3 1589 0x80000001 0x00B2F2 0
192.168.1.0 5.5.5.5 1578 0x80000001 0x000201 0
192.168.2.0 5.5.5.5 1578 0x80000001 0x00F60B 0
192.168.3.0 5.5.5.5 1578 0x80000001 0x00EB15 0
R4 のタイプ 3 LSA の詳細表示
R4#sh ip ospf da sum
OSPF Router with ID (4.4.4.4) (Process ID 1)
Summary Net Link States (Area 1)
Routing Bit Set on this LSA
LS age: 902
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 0.0.0.0 (summary Network Number)
Advertising Router: 3.3.3.3
LS Seq Number: 80000001
Checksum: 0xDE4B
Length: 28
Network Mask: /0
TOS: 0 Metric: 1
R4 のルーティングテーブル
R4#sh ip ro
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 10.1.34.3 to network 0.0.0.0
10.0.0.0/24 is subnetted, 3 subnets
O 10.1.5.0 [110/20] via 10.1.45.5, 00:14:50, FastEthernet0/0
C 10.1.45.0 is directly connected, FastEthernet0/0
C 10.1.34.0 is directly connected, Serial0/0
O N2 192.168.1.0/24 [110/20] via 10.1.45.5, 00:14:50, FastEthernet0/0
O N2 192.168.2.0/24 [110/20] via 10.1.45.5, 00:14:50, FastEthernet0/0
O N2 192.168.3.0/24 [110/20] via 10.1.45.5, 00:14:50, FastEthernet0/0
O*IA 0.0.0.0/0 [110/65] via 10.1.34.3, 00:00:48, Serial0/0
EIGRP ルートが消えてスッキリしましたね。
おことわり
これは「徹底攻略Cisco CCNP Routing & Switching ROUTE教科書[300-101J]対応 徹底攻略シリーズ」に掲載されているサンプルトポロジのコンフィグを自分で考えて、インターフェイスの対応等微妙に変えて GNS3, あるいは VIRL のプロジェクトファイルとしています。
具体的な説明はここではせず、箇条書き程度の自分用のメモ、コンフィグ、実際の出力結果を載せています。
詳細なコンセプトの説明はこのテキストを参照するか、他のサイトをあたることをおすすめします。
追記
コンフィグやトポロジに誤りがありましたら指摘いただけるとうれしいです!
なんでこんなこと書いているか
Cisco の試験に限らないですけど、私の基本的なスタンスを書いてあります。
随時アップデートしていくので興味あったら覗いてみてください。
Cisco の技術者認定試験における私のスタンス | wnoguchi’s diary
参考書紹介
こちらのテキストを使用させていただいております。
いつもありがとうございます。
個人的なおすすめはテキストは紙版と Kindle 版両方買っておいて、ウォークスルー的なテキストの読み込みは
クロスリファレンスが必要なときは紙の本をざっと開くのがおすすめです。
問題集は紙版さえあればいいかなと思ってますが、もしかすると Kindle 版のほうが効率いいのかも。
どうなんだろ。