概要

複数のASでBGPによるルーティングを行う演習です。Part4では、設定ミスの切り分けと修正のトラブルシューティングです。

Part1:BGP基本設定
Part2:ルート集約
Part3:ポリシーベースルーティング
Part4:トラブルシューティング

ネットワーク構成

図 [演習]BGP応用 論理構成
図 [演習]BGP応用 論理構成

 図 [演習]BGP応用 AS構成
図 [演習]BGP応用 AS構成

機器AS内のネットワークアドレス
R11 Lo1110.1.1.0/24
R12 Lo1110.1.2.0/24
R13 Lo1110.1.3.0/24
R14 Lo1110.1.4.0/24
R15 Lo1110.1.5.0/24
R16 Lo1110.1.6.0/24
R21 Lo1120.1.1.0/24
R22 Lo1120.1.2.0/24
R23 Lo1120.1.3.0/24
R31 Lo1130.1.1.0/24 130.1.2.0/24 130.1.3.0/24
R41 Lo1140.1.1.0/24 140.1.2.0/24 140.1.3.0/24
R51 Lo1150.1.1.0/24 150.1.2.0/24 150.1.3.0/24
表 AS内のネットワークアドレス

設定条件

Part1:BGP基本設定

  1. R11/R13/R15でAS65100を構成します。また、R12/R14/R16でAS65200を構成します。AS65100、AS65200は他のASから見るとAS110として動作します。R11~R16の間のBGPネイバーはすべてLoopback0のIPアドレスを利用して確立します。AS65100とAS65200間はR13とR14でネイバーを確立します。
  2. R11/R15、R12/R16ではIBGPネイバーの設定を1つだけしか行なってはいけません。
  3. R21/R22/R23でAS120を構成します。AS120内のBGPネイバーはすべてLoopback0のIPアドレスを利用して確立します。
  4. R31でAS130を構成します。R41でAS140を構成します。R51でAS150を構成します。
  5. AS間は、直接接続のIPアドレスを利用してEBGPネイバーを確立します。EBGPネイバーはすべてネイバー認証を行います。ネイバー認証のパスワードは「cisco」とします。
  6. AS110内のネットワークアドレス 110.1.1.0/24~110.1.6.0/24をR11~R16のそれぞれのルータでnetworkコマンドを利用してBGPルートとして生成します。同様にAS130、AS140、AS150においてもAS内のネットワークアドレスをnetworkコマンドによってBGPルートとして生成します。
  7. R21とR22でAS120内のネットワークアドレスをBGPルートとして生成します。ただし、networkコマンドを利用してはいけません。パスアトリビュートはnetworkコマンドを利用した場合と同等にします。

Part2:ルート集約

  1. AS110内のBGPルートを可能なかぎり長いサブネットマスクで集約します。集約ルートとともに第3オクテットが偶数である集約前のBGPルートもアドバタイズします。
  2. AS120内のBGPルートを可能な限り長いサブネットマスクで集約します。ネイバーには集約ルートのみをアドバタイズします。
  3. AS130内のBGPルートを可能な限り長いサブネットマスクで集約します。ネイバーには集約ルートのみをアドバタイズします。また、集約ルートにはCOMMUNITYアトリビュート「130:1」を付加します。
  4. AS140内のBGPルートを可能な限り長いサブネットマスクで集約します。R51にだけ集約ルートとともに140.1.2.0/24のBGPルートもアドバタイズします。
  5. AS150内のBGPルートをR31/R41で集約します。集約ルートのAS_PATHアトリビュートにAS150の情報が含まれるようにします。

Part3:ポリシーベースルーティング

  1. AS150の先にAS151およびAS152が接続されているようにAS構成をエミュレートします。AS151には、151.1.1.0/24が含まれています。AS152には、152.1.1.0/24が含まれています。これらのルートはR51でLoopback2インタフェースを利用するものとします。
  2. AS110からAS151へパケットをルーティングするときにはR15を経由するようにします。また、AS110からAS152へパケットをルーティングするときにはR16を経由するようにします。
  3. AS110の集約前のルートは、AS150にアドバタイズされないようにします。ただし、このための設定はAS110のルータでのみ行います。
  4. AS120にパケットをルーティングするときにはR21を経由するようにします。このための設定はAS120のルータでのみ行います。

初期設定

「演習_BGP応用_Part1」から「演習_BGP応用_Part3」の設定を行っています。しかし、設定ミスが5つあります。設定ミスによるトラブルの症状は次のとおりです。

  1. R13-R14間のBGPネイバーが正常に確立できません。
  2. AS120内でIBGPネイバーが正常に確立できません。
  3. AS130内のネットワークがBGPルートとしてアドバタイズされていません。
  4. AS140内のネットワークが適切に集約されていません。
  5. AS110の集約前ルートがAS150へアドバタイズされています。

すべての設定ミスを修正して、条件通りにBGPルーティングできるようにしてください。

R11 Initical Configuration(Click)

!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R11
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.0.11 255.255.255.255
!
interface Loopback1
 ip address 110.1.1.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 1.1.1.11 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.1.11 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 11.11.11.11
 log-adjacency-changes
 network 110.1.0.0 0.0.255.255 area 0
 network 192.168.0.0 0.0.255.255 area 0
!
router bgp 65100
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 network 110.1.1.0 mask 255.255.255.0
 aggregate-address 110.1.0.0 255.255.248.0 suppress-map ODD
 neighbor 1.1.1.21 remote-as 120
 neighbor 1.1.1.21 password cisco
 neighbor 192.168.0.13 remote-as 65100
 neighbor 192.168.0.13 update-source Loopback0
 neighbor 192.168.0.13 next-hop-self
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 10 permit 110.1.1.0 0.0.254.0
!
route-map ODD permit 10
 match ip address 10
!
route-map ODD deny 20
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R12 Initical Configuration(Click)

!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R12
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.0.12 255.255.255.255
!
interface Loopback1
 ip address 110.1.2.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 1.1.2.12 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.1.12 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 12.12.12.12
 log-adjacency-changes
 network 110.1.0.0 0.0.255.255 area 0
 network 192.168.0.0 0.0.255.255 area 0
!
router bgp 65200
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 network 110.1.2.0 mask 255.255.255.0
 aggregate-address 110.1.0.0 255.255.248.0 suppress-map ODD
 neighbor 1.1.2.22 remote-as 120
 neighbor 1.1.2.22 password cisco
 neighbor 192.168.0.14 remote-as 65200
 neighbor 192.168.0.14 update-source Loopback0
 neighbor 192.168.0.14 next-hop-self
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 10 permit 110.1.1.0 0.0.254.0
!
route-map ODD permit 10
 match ip address 10
!
route-map ODD deny 20
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R13 Initical Configuration(Click)

!
!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R13
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.0.13 255.255.255.255
!
interface Loopback1
 ip address 110.1.3.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 192.168.1.13 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.2.13 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet2/0
 ip address 192.168.3.13 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 13.13.13.13
 log-adjacency-changes
 network 110.1.0.0 0.0.255.255 area 0
 network 192.168.0.0 0.0.255.255 area 0
!
router bgp 65100
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 bgp confederation peers 65200 
 network 110.1.3.0 mask 255.255.255.0
 neighbor 192.168.0.11 remote-as 65100
 neighbor 192.168.0.11 update-source Loopback0
 neighbor 192.168.0.11 route-reflector-client
 neighbor 192.168.0.14 remote-as 65200
 neighbor 192.168.0.14 update-source Loopback0
 neighbor 192.168.0.15 remote-as 65100
 neighbor 192.168.0.15 update-source Loopback0
 neighbor 192.168.0.15 route-reflector-client
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R14 Initical Configuration(Click)

!
!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R14
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.0.14 255.255.255.255
!
interface Loopback1
 ip address 110.1.4.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 192.168.1.14 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.2.14 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet2/0
 ip address 192.168.3.14 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 14.14.14.14
 log-adjacency-changes
 network 110.1.0.0 0.0.255.255 area 0
 network 192.168.0.0 0.0.255.255 area 0
!
router bgp 65200
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 bgp confederation peers 65100 
 network 110.1.4.0 mask 255.255.255.0
 neighbor 192.168.0.12 remote-as 65200
 neighbor 192.168.0.12 update-source Loopback0
 neighbor 192.168.0.12 route-reflector-client
 neighbor 192.168.0.13 remote-as 65100
 neighbor 192.168.0.13 ebgp-multihop 255
 neighbor 192.168.0.13 update-source Loopback0
 neighbor 192.168.0.16 remote-as 65200
 neighbor 192.168.0.16 update-source Loopback0
 neighbor 192.168.0.16 route-reflector-client
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R15 Initical Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R15
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.0.15 255.255.255.255
!
interface Loopback1
 ip address 110.1.5.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 1.1.3.15 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.2.15 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 15.15.15.15
 log-adjacency-changes
 network 110.1.0.0 0.0.255.255 area 0
 network 192.168.0.0 0.0.255.255 area 0
!
router bgp 65100
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 network 110.1.5.0 mask 255.255.255.0
 aggregate-address 110.1.0.0 255.255.248.0 suppress-map ODD
 neighbor 1.1.3.31 remote-as 130
 neighbor 1.1.3.31 password cisco
 neighbor 1.1.3.31 route-map LP in
 neighbor 1.1.3.31 route-map COMMUNITY out
 neighbor 192.168.0.13 remote-as 65100
 neighbor 192.168.0.13 update-source Loopback0
 neighbor 192.168.0.13 next-hop-self
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 1 permit 151.1.1.0
access-list 10 permit 110.1.1.0 0.0.254.0
access-list 20 permit 110.1.6.0
access-list 20 permit 110.1.4.0
access-list 20 permit 110.1.2.0
!
route-map LP permit 10
 match ip address 1
 set local-preference 200
!
route-map LP permit 20
 set local-preference 100
!
route-map ODD permit 10
 match ip address 10
!
route-map ODD deny 20
!
route-map COMMUNITY permit 10
 match ip address 20
 set community no-export
!
route-map COMMUNITY permit 20
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R16 Initical Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R16
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.0.16 255.255.255.255
!
interface Loopback1
 ip address 110.1.6.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 1.1.4.16 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.2.16 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 16.16.16.16
 log-adjacency-changes
 network 110.1.0.0 0.0.255.255 area 0
 network 192.168.0.0 0.0.255.255 area 0
!
router bgp 65200
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 network 110.1.6.0 mask 255.255.255.0
 aggregate-address 110.1.0.0 255.255.248.0 suppress-map ODD
 neighbor 1.1.4.41 remote-as 140
 neighbor 1.1.4.41 password cisco
 neighbor 1.1.4.41 route-map LP in
 neighbor 1.1.4.41 route-map COMMUNITY out
 neighbor 192.168.0.14 remote-as 65200
 neighbor 192.168.0.14 update-source Loopback0
 neighbor 192.168.0.14 next-hop-self
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 1 permit 152.1.1.0
access-list 10 permit 110.1.1.0 0.0.254.0
access-list 20 permit 110.1.6.0
access-list 20 permit 110.1.4.0
access-list 20 permit 110.1.2.0
!
route-map LP permit 10
 match ip address 1
 set local-preference 200
!
route-map LP permit 20
 set local-preference 100
!
route-map ODD permit 10
 match ip address 10
!
route-map ODD deny 20
!
route-map COMMUNITY permit 10
 match ip address 20
 set community no-export
!
route-map COMMUNITY permit 20
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R21 Initical Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R21
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 172.16.0.21 255.255.255.255
!
interface Loopback1
 ip address 120.1.1.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 1.1.1.21 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 172.16.1.21 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 21.21.21.21
 log-adjacency-changes
 network 120.1.0.0 0.0.255.255 area 0
 network 172.16.0.0 0.0.255.255 area 0
!
router bgp 120
 no synchronization
 bgp log-neighbor-changes
 aggregate-address 120.1.0.0 255.255.252.0 summary-only
 redistribute ospf 1 route-map AS120
 neighbor 1.1.1.11 remote-as 110
 neighbor 1.1.1.11 password cisco
 neighbor 1.1.1.11 route-map MED out
 neighbor 172.16.0.22 remote-as 120
 neighbor 172.16.0.22 next-hop-self
 neighbor 172.16.0.23 remote-as 120
 neighbor 172.16.0.23 next-hop-self
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 1 permit 120.1.0.0 0.0.255.255
access-list 10 permit 120.1.0.0
!
route-map AS120 permit 10
 match ip address 1
 set origin igp
!
route-map MED permit 10
 match ip address 10
 set metric 10
!
route-map MED permit 20
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R22 Initical Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R22
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 172.16.0.22 255.255.255.255
!
interface Loopback1
 ip address 120.1.2.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 1.1.2.22 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 172.16.2.22 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 22.22.22.22
 log-adjacency-changes
 network 120.1.0.0 0.0.255.255 area 0
 network 172.16.0.0 0.0.255.255 area 0
!
router bgp 120
 no synchronization
 bgp log-neighbor-changes
 aggregate-address 120.1.0.0 255.255.252.0 summary-only
 redistribute ospf 1 route-map AS120
 neighbor 1.1.2.12 remote-as 110
 neighbor 1.1.2.12 password cisco
 neighbor 1.1.2.12 route-map MED out
 neighbor 172.16.0.21 remote-as 120
 neighbor 172.16.0.21 next-hop-self
 neighbor 172.16.0.23 remote-as 120
 neighbor 172.16.0.23 next-hop-self
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 1 permit 120.1.0.0 0.0.255.255
access-list 10 permit 120.1.0.0
!
route-map AS120 permit 10
 match ip address 1
 set origin igp
!
route-map MED permit 10
 match ip address 10
 set metric 100
!
route-map MED permit 20
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R23 Initical Configuration(Click)

!
!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R23
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 172.16.0.23 255.255.255.255
!
interface Loopback1
 ip address 120.1.3.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 172.16.1.23 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 172.16.2.23 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 23.23.23.23
 log-adjacency-changes
 network 120.1.0.0 0.0.255.255 area 0
 network 172.16.0.0 0.0.255.255 area 0
!
router bgp 120
 no synchronization
 bgp log-neighbor-changes
 neighbor 172.16.0.21 remote-as 120
 neighbor 172.16.0.22 remote-as 120
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R31 Initical Configuration(Click)

!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R31
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
 ip address 130.1.3.1 255.255.255.0 secondary
 ip address 130.1.2.1 255.255.255.0 secondary
 ip address 130.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 1.1.3.31 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 1.1.5.31 255.255.255.0
 duplex auto
 speed auto
!
!
router bgp 130
 no synchronization
 bgp log-neighbor-changes
 network 130.1.0.0 mask 255.255.0.0
 aggregate-address 130.1.0.0 255.255.252.0 summary-only attribute-map ATT
 aggregate-address 150.1.0.0 255.255.252.0 as-set
 neighbor 1.1.3.15 remote-as 110
 neighbor 1.1.3.15 password cisco
 neighbor 1.1.5.51 remote-as 150
 neighbor 1.1.5.51 password cisco
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
ip bgp-community new-format
!
!
route-map ATT permit 10
 set community 130:1
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R41 Initical Configuration(Click)

!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R41
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
 ip address 140.1.3.1 255.255.255.0 secondary
 ip address 140.1.2.1 255.255.255.0 secondary
 ip address 140.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 1.1.4.41 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 1.1.6.41 255.255.255.0
 duplex auto
 speed auto
!
!
router bgp 140
 no synchronization
 bgp log-neighbor-changes
 network 140.1.1.0 mask 255.255.255.0
 network 140.1.2.0 mask 255.255.255.0
 network 140.1.3.0 mask 255.255.255.0
 aggregate-address 140.1.0.0 255.255.252.0 
 aggregate-address 150.1.0.0 255.255.252.0 as-set
 neighbor 1.1.4.16 remote-as 110
 neighbor 1.1.4.16 password cisco
 neighbor 1.1.6.51 remote-as 150
 neighbor 1.1.6.51 password cisco
 neighbor 1.1.6.51 unsuppress-map UNSUPP
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 1 permit 140.1.2.0
!
route-map UNSUPP permit 10
 match ip address 1
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R51 Initical Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R51
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
 ip address 150.1.2.1 255.255.255.0 secondary
 ip address 150.1.3.1 255.255.255.0 secondary
 ip address 150.1.1.1 255.255.255.0
!
interface Loopback2
 ip address 152.1.1.1 255.255.255.0 secondary
 ip address 151.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 1.1.5.51 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 1.1.6.51 255.255.255.0
 duplex auto
 speed auto
!
!
router bgp 150
 no synchronization
 bgp log-neighbor-changes
 network 150.1.1.0 mask 255.255.255.0
 network 150.1.2.0 mask 255.255.255.0
 network 150.1.3.0 mask 255.255.255.0
 network 151.1.1.0 mask 255.255.255.0
 network 152.1.1.0 mask 255.255.255.0
 neighbor 1.1.5.31 remote-as 130
 neighbor 1.1.5.31 password cisco
 neighbor 1.1.5.31 route-map AS_PATH out
 neighbor 1.1.6.41 remote-as 140
 neighbor 1.1.6.41 password cisco
 neighbor 1.1.6.41 route-map AS_PATH out
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 1 permit 151.1.1.0
access-list 2 permit 152.1.1.0
!
route-map AS_PATH permit 10
 match ip address 1
 set as-path prepend 151
!
route-map AS_PATH permit 20
 match ip address 2
 set as-path prepend 152
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

Part4:トラブルシューティング 切り分けと修正

1 ebgp-multihop

R14とのIEBGPネイバーの設定で、neighbor ebgp-multihopコマンドが抜けているため、IEBGPネイバーを正しく確立することができません。

切り分け

R13 切り分け

R13#show ip bgp summary
BGP router identifier 192.168.0.13, local AS number 65100
BGP table version is 14, main routing table version 14
12 network entries using 1404 bytes of memory
13 path entries using 676 bytes of memory
10/8 BGP path/bestpath attribute entries using 1240 bytes of memory
4 BGP AS-PATH entries using 96 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 3416 total bytes of memory
BGP activity 12/0 prefixes, 13/0 paths, scan interval 60 secs

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
192.168.0.11    4 65100       5      13       14    0    0 00:01:05        1
192.168.0.14    4 65200       0       0        0    0    0 never    Idle
192.168.0.15    4 65100      10      12       14    0    0 00:00:57       11

設定の修正

R13 設定の修正

router bgp 65100
 neighbor 192.168.0.14 ebgp-multihop

2 neighbor update-source

AS120内のIBGPネイバーの設定で、neighbor update-sourceコマンドが抜けているため、IBGPネイバーを正しく確立することができません。

切り分け

R21 切り分け

R21#show ip bgp summary
BGP router identifier 172.16.0.21, local AS number 120
BGP table version is 19, main routing table version 19
15 network entries using 1755 bytes of memory
15 path entries using 780 bytes of memory
12/11 BGP path/bestpath attribute entries using 1488 bytes of memory
5 BGP AS-PATH entries using 120 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 4143 total bytes of memory
BGP activity 15/0 prefixes, 15/0 paths, scan interval 60 secs

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
1.1.1.11        4   110      11       5       19    0    0 00:01:15       11
172.16.0.22     4   120       0       0        0    0    0 never    Active
172.16.0.23     4   120       0       0        0    0    0 never    Active
R21#show run | section router bgp
router bgp 120
 no synchronization
 bgp log-neighbor-changes
 aggregate-address 120.1.0.0 255.255.252.0 summary-only
 redistribute ospf 1 route-map AS120
 neighbor 1.1.1.11 remote-as 110
 neighbor 1.1.1.11 password cisco
 neighbor 1.1.1.11 route-map MED out
 neighbor 172.16.0.22 remote-as 120
 neighbor 172.16.0.22 next-hop-self
 neighbor 172.16.0.23 remote-as 120
 neighbor 172.16.0.23 next-hop-self
 no auto-summary

設定の修正

R21 設定の修正

router bgp 120
 neighbor 172.16.0.22 update-source loopback0
 neighbor 172.16.0.23 update-source loopback0

R22 設定の修正

router bgp 120
 neighbor 172.16.0.21 update-source loopback0
 neighbor 172.16.0.23 update-source loopback0

R23 設定の修正

router bgp 120
 neighbor 172.16.0.21 update-source loopback0
 neighbor 172.16.0.22 update-source loopback0

3 networkコマンド

networkコマンドの設定でmaskが正しくないため、AS130内のBGPルートの生成ができていません。

切り分け

R31 切り分け

R31#show ip bgp regexp ^$

R31#show run | section router bgp
router bgp 130
 no synchronization
 bgp log-neighbor-changes
 network 130.1.0.0
 aggregate-address 130.1.0.0 255.255.252.0 summary-only attribute-map ATT
 aggregate-address 150.1.0.0 255.255.252.0 as-set
 neighbor 1.1.3.15 remote-as 110
 neighbor 1.1.3.15 password cisco
 neighbor 1.1.5.51 remote-as 150
 neighbor 1.1.5.51 password cisco
 no auto-summary
R31#show ip route | include 130.1
     130.1.0.0/24 is subnetted, 3 subnets
C       130.1.3.0 is directly connected, Loopback1
C       130.1.2.0 is directly connected, Loopback1
C       130.1.1.0 is directly connected, Loopback1

設定の修正

R31 設定の修正

router bgp 130
 network 130.1.1.0 mask 255.255.255.0
 network 130.1.2.0 mask 255.255.255.0
 network 130.1.3.0 mask 255.255.255.0
 no network 130.1.0.0 mask 255.255.0.0

4 aggregate-address summary-onlyオプション

aggregate-addressコマンドでsummary-onlyオプションが指定されていないため、集約前のすべてのルートがネイバーにアドバタイズされています。

切り分け

R41 切り分け

R41#show ip bgp regexp ^$
BGP table version is 16, local router ID is 140.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 140.1.0.0/22     0.0.0.0                            32768 i
*> 140.1.1.0/24     0.0.0.0                  0         32768 i
*> 140.1.2.0/24     0.0.0.0                  0         32768 i
*> 140.1.3.0/24     0.0.0.0                  0         32768 i
R41#show run | section router bgp
router bgp 140
 no synchronization
 bgp log-neighbor-changes
 network 140.1.1.0 mask 255.255.255.0
 network 140.1.2.0 mask 255.255.255.0
 network 140.1.3.0 mask 255.255.255.0
 aggregate-address 140.1.0.0 255.255.252.0
 aggregate-address 150.1.0.0 255.255.252.0 as-set
 neighbor 1.1.4.16 remote-as 110
 neighbor 1.1.4.16 password cisco
 neighbor 1.1.6.51 remote-as 150
 neighbor 1.1.6.51 password cisco
 neighbor 1.1.6.51 unsuppress-map UNSUPP
 no auto-summary

設定の修正

R41 設定の修正

router bgp 140
 aggregate-address 140.1.0.0 255.255.252.0 summary-only

5 neighbor send-community

neighbor send-communityの設定が抜けているため、BGPルートをアドバタイズする際にno-exportのWell Known Communityが削除されています。

切り分け

R31 切り分け

R31#show ip bgp community

R41 切り分け

R41#show ip bgp community

R15 切り分け

R15#show run | section router bgp
router bgp 65100
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 network 110.1.5.0 mask 255.255.255.0
 aggregate-address 110.1.0.0 255.255.248.0 suppress-map ODD
 neighbor 1.1.3.31 remote-as 130
 neighbor 1.1.3.31 password cisco
 neighbor 1.1.3.31 route-map LP in
 neighbor 1.1.3.31 route-map COMMUNITY out
 neighbor 192.168.0.13 remote-as 65100
 neighbor 192.168.0.13 update-source Loopback0
 neighbor 192.168.0.13 next-hop-self
 no auto-summary

R16 切り分け

R16#show run | section router bgp
router bgp 65200
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 network 110.1.6.0 mask 255.255.255.0
 aggregate-address 110.1.0.0 255.255.248.0 suppress-map ODD
 neighbor 1.1.4.41 remote-as 140
 neighbor 1.1.4.41 password cisco
 neighbor 1.1.4.41 route-map LP in
 neighbor 1.1.4.41 route-map COMMUNITY out
 neighbor 192.168.0.14 remote-as 65200
 neighbor 192.168.0.14 update-source Loopback0
 neighbor 192.168.0.14 next-hop-self
 no auto-summary

設定の修正

R15 設定の修正

router bgp 65100
 neighbor 1.1.3.31 send-community

R16 設定の修正

router bgp 65200
 neighbor 1.1.4.41 send-community

正常な設定ファイル

R11 Correct Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R11
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.0.11 255.255.255.255
!
interface Loopback1
 ip address 110.1.1.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 1.1.1.11 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.1.11 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 11.11.11.11
 log-adjacency-changes
 network 110.1.0.0 0.0.255.255 area 0
 network 192.168.0.0 0.0.255.255 area 0
!
router bgp 65100
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 network 110.1.1.0 mask 255.255.255.0
 aggregate-address 110.1.0.0 255.255.248.0 suppress-map ODD
 neighbor 1.1.1.21 remote-as 120
 neighbor 1.1.1.21 password cisco
 neighbor 192.168.0.13 remote-as 65100
 neighbor 192.168.0.13 update-source Loopback0
 neighbor 192.168.0.13 next-hop-self
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 10 permit 110.1.1.0 0.0.254.0
!
route-map ODD permit 10
 match ip address 10
!
route-map ODD deny 20
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R12 Correct Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R12
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.0.12 255.255.255.255
!
interface Loopback1
 ip address 110.1.2.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 1.1.2.12 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.1.12 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 12.12.12.12
 log-adjacency-changes
 network 110.1.0.0 0.0.255.255 area 0
 network 192.168.0.0 0.0.255.255 area 0
!
router bgp 65200
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 network 110.1.2.0 mask 255.255.255.0
 aggregate-address 110.1.0.0 255.255.248.0 suppress-map ODD
 neighbor 1.1.2.22 remote-as 120
 neighbor 1.1.2.22 password cisco
 neighbor 192.168.0.14 remote-as 65200
 neighbor 192.168.0.14 update-source Loopback0
 neighbor 192.168.0.14 next-hop-self
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 10 permit 110.1.1.0 0.0.254.0
!
route-map ODD permit 10
 match ip address 10
!
route-map ODD deny 20
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R13 Correct Configuration(Click)

!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R13
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.0.13 255.255.255.255
!
interface Loopback1
 ip address 110.1.3.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 192.168.1.13 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.2.13 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet2/0
 ip address 192.168.3.13 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 13.13.13.13
 log-adjacency-changes
 network 110.1.0.0 0.0.255.255 area 0
 network 192.168.0.0 0.0.255.255 area 0
!
router bgp 65100
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 bgp confederation peers 65200 
 network 110.1.3.0 mask 255.255.255.0
 neighbor 192.168.0.11 remote-as 65100
 neighbor 192.168.0.11 update-source Loopback0
 neighbor 192.168.0.11 route-reflector-client
 neighbor 192.168.0.14 remote-as 65200
 neighbor 192.168.0.14 ebgp-multihop 255
 neighbor 192.168.0.14 update-source Loopback0
 neighbor 192.168.0.15 remote-as 65100
 neighbor 192.168.0.15 update-source Loopback0
 neighbor 192.168.0.15 route-reflector-client
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R14 Correct Configuration(Click)

!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R14
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.0.14 255.255.255.255
!
interface Loopback1
 ip address 110.1.4.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 192.168.1.14 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.2.14 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet2/0
 ip address 192.168.3.14 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 14.14.14.14
 log-adjacency-changes
 network 110.1.0.0 0.0.255.255 area 0
 network 192.168.0.0 0.0.255.255 area 0
!
router bgp 65200
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 bgp confederation peers 65100 
 network 110.1.4.0 mask 255.255.255.0
 neighbor 192.168.0.12 remote-as 65200
 neighbor 192.168.0.12 update-source Loopback0
 neighbor 192.168.0.12 route-reflector-client
 neighbor 192.168.0.13 remote-as 65100
 neighbor 192.168.0.13 ebgp-multihop 255
 neighbor 192.168.0.13 update-source Loopback0
 neighbor 192.168.0.16 remote-as 65200
 neighbor 192.168.0.16 update-source Loopback0
 neighbor 192.168.0.16 route-reflector-client
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R15 Correct Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R15
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.0.15 255.255.255.255
!
interface Loopback1
 ip address 110.1.5.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 1.1.3.15 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.2.15 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 15.15.15.15
 log-adjacency-changes
 network 110.1.0.0 0.0.255.255 area 0
 network 192.168.0.0 0.0.255.255 area 0
!
router bgp 65100
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 network 110.1.5.0 mask 255.255.255.0
 aggregate-address 110.1.0.0 255.255.248.0 suppress-map ODD
 neighbor 1.1.3.31 remote-as 130
 neighbor 1.1.3.31 password cisco
 neighbor 1.1.3.31 send-community
 neighbor 1.1.3.31 route-map LP in
 neighbor 1.1.3.31 route-map COMMUNITY out
 neighbor 192.168.0.13 remote-as 65100
 neighbor 192.168.0.13 update-source Loopback0
 neighbor 192.168.0.13 next-hop-self
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 1 permit 151.1.1.0
access-list 10 permit 110.1.1.0 0.0.254.0
access-list 20 permit 110.1.6.0
access-list 20 permit 110.1.4.0
access-list 20 permit 110.1.2.0
!
route-map LP permit 10
 match ip address 1
 set local-preference 200
!
route-map LP permit 20
 set local-preference 100
!
route-map ODD permit 10
 match ip address 10
!
route-map ODD deny 20
!
route-map COMMUNITY permit 10
 match ip address 20
 set community no-export
!
route-map COMMUNITY permit 20
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R16 Correct Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R16
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 192.168.0.16 255.255.255.255
!
interface Loopback1
 ip address 110.1.6.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 1.1.4.16 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.2.16 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 16.16.16.16
 log-adjacency-changes
 network 110.1.0.0 0.0.255.255 area 0
 network 192.168.0.0 0.0.255.255 area 0
!
router bgp 65200
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 110
 network 110.1.6.0 mask 255.255.255.0
 aggregate-address 110.1.0.0 255.255.248.0 suppress-map ODD
 neighbor 1.1.4.41 remote-as 140
 neighbor 1.1.4.41 password cisco
 neighbor 192.168.0.14 remote-as 65200
 neighbor 192.168.0.14 update-source Loopback0
 neighbor 192.168.0.14 next-hop-self
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 10 permit 110.1.1.0 0.0.254.0
!
route-map ODD permit 10
 match ip address 10
!
route-map ODD deny 20
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R21 Correct Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R21
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 172.16.0.21 255.255.255.255
!
interface Loopback1
 ip address 120.1.1.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 1.1.1.21 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 172.16.1.21 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 21.21.21.21
 log-adjacency-changes
 network 120.1.0.0 0.0.255.255 area 0
 network 172.16.0.0 0.0.255.255 area 0
!
router bgp 120
 no synchronization
 bgp log-neighbor-changes
 aggregate-address 120.1.0.0 255.255.252.0 summary-only
 redistribute ospf 1 route-map AS120
 neighbor 1.1.1.11 remote-as 110
 neighbor 1.1.1.11 password cisco
 neighbor 172.16.0.22 remote-as 120
 neighbor 172.16.0.22 update-source Loopback0
 neighbor 172.16.0.22 next-hop-self
 neighbor 172.16.0.23 remote-as 120
 neighbor 172.16.0.23 update-source Loopback0
 neighbor 172.16.0.23 next-hop-self
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 1 permit 120.1.0.0 0.0.255.255
!
route-map AS120 permit 10
 match ip address 1
 set origin igp
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R22 Correct Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R22
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 172.16.0.22 255.255.255.255
!
interface Loopback1
 ip address 120.1.2.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 1.1.2.22 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 172.16.2.22 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 22.22.22.22
 log-adjacency-changes
 network 120.1.0.0 0.0.255.255 area 0
 network 172.16.0.0 0.0.255.255 area 0
!
router bgp 120
 no synchronization
 bgp log-neighbor-changes
 aggregate-address 120.1.0.0 255.255.252.0 summary-only
 redistribute ospf 1 route-map AS120
 neighbor 1.1.2.12 remote-as 110
 neighbor 1.1.2.12 password cisco
 neighbor 172.16.0.21 remote-as 120
 neighbor 172.16.0.21 update-source Loopback0
 neighbor 172.16.0.21 next-hop-self
 neighbor 172.16.0.23 remote-as 120
 neighbor 172.16.0.23 update-source Loopback0
 neighbor 172.16.0.23 next-hop-self
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 1 permit 120.1.0.0 0.0.255.255
!
route-map AS120 permit 10
 match ip address 1
 set origin igp
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R23 Correct Configuration(Click)

!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R23
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 172.16.0.23 255.255.255.255
!
interface Loopback1
 ip address 120.1.3.1 255.255.255.0
 ip ospf network point-to-point
!
interface FastEthernet0/0
 ip address 172.16.1.23 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 172.16.2.23 255.255.255.0
 duplex auto
 speed auto
!
!
router ospf 1
 router-id 23.23.23.23
 log-adjacency-changes
 network 120.1.0.0 0.0.255.255 area 0
 network 172.16.0.0 0.0.255.255 area 0
!
router bgp 120
 no synchronization
 bgp log-neighbor-changes
 neighbor 172.16.0.21 remote-as 120
 neighbor 172.16.0.21 update-source Loopback0
 neighbor 172.16.0.22 remote-as 120
 neighbor 172.16.0.22 update-source Loopback0
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R31 Correct Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R31
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
 ip address 130.1.3.1 255.255.255.0 secondary
 ip address 130.1.2.1 255.255.255.0 secondary
 ip address 130.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 1.1.3.31 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 1.1.5.31 255.255.255.0
 duplex auto
 speed auto
!
!
router bgp 130
 no synchronization
 bgp log-neighbor-changes
 network 130.1.1.0 mask 255.255.255.0
 network 130.1.2.0 mask 255.255.255.0
 network 130.1.3.0 mask 255.255.255.0
 aggregate-address 130.1.0.0 255.255.252.0 summary-only attribute-map ATT
 aggregate-address 150.1.0.0 255.255.252.0 as-set
 neighbor 1.1.3.15 remote-as 110
 neighbor 1.1.3.15 password cisco
 neighbor 1.1.5.51 remote-as 150
 neighbor 1.1.5.51 password cisco
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
ip bgp-community new-format
!
!
route-map ATT permit 10
 set community 130:1
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R41 Correct Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R41
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
 ip address 140.1.3.1 255.255.255.0 secondary
 ip address 140.1.2.1 255.255.255.0 secondary
 ip address 140.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 1.1.4.41 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 1.1.6.41 255.255.255.0
 duplex auto
 speed auto
!
!
router bgp 140
 no synchronization
 bgp log-neighbor-changes
 network 140.1.1.0 mask 255.255.255.0
 network 140.1.2.0 mask 255.255.255.0
 network 140.1.3.0 mask 255.255.255.0
 aggregate-address 140.1.0.0 255.255.252.0 summary-only
 aggregate-address 150.1.0.0 255.255.252.0 as-set
 neighbor 1.1.4.16 remote-as 110
 neighbor 1.1.4.16 password cisco
 neighbor 1.1.6.51 remote-as 150
 neighbor 1.1.6.51 password cisco
 neighbor 1.1.6.51 unsuppress-map UNSUPP
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 1 permit 140.1.2.0
!
route-map UNSUPP permit 10
 match ip address 1
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R51 Correct Configuration(Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R51
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
 ip address 150.1.2.1 255.255.255.0 secondary
 ip address 150.1.3.1 255.255.255.0 secondary
 ip address 150.1.1.1 255.255.255.0
!
interface Loopback2
 ip address 152.1.1.1 255.255.255.0 secondary
 ip address 151.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 1.1.5.51 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 1.1.6.51 255.255.255.0
 duplex auto
 speed auto
!
!
router bgp 150
 no synchronization
 bgp log-neighbor-changes
 network 150.1.1.0 mask 255.255.255.0
 network 150.1.2.0 mask 255.255.255.0
 network 150.1.3.0 mask 255.255.255.0
 network 151.1.1.0 mask 255.255.255.0
 network 152.1.1.0 mask 255.255.255.0
 neighbor 1.1.5.31 remote-as 130
 neighbor 1.1.5.31 password cisco
 neighbor 1.1.5.31 route-map AS_PATH out
 neighbor 1.1.6.41 remote-as 140
 neighbor 1.1.6.41 password cisco
 neighbor 1.1.6.41 route-map AS_PATH out
 no auto-summary
!
ip http server
ip forward-protocol nd
!
!
!
access-list 1 permit 151.1.1.0
access-list 2 permit 152.1.1.0
!
route-map AS_PATH permit 10
 match ip address 1
 set as-path prepend 151
!
route-map AS_PATH permit 20
 match ip address 2
 set as-path prepend 152
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

関連記事

BGPの仕組み