概要

複数のASでBGPによるルーティングを行う演習です。Part2では、各AS内のBGPルートを集約します。そのときに、集約ルートのアトリビュートや集約前のルートのアドバタイズを制御します。

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基本設定」完了時点から開始します。

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
 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
!
!
!
!
!
!
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
 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
!
!
!
!
!
!
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 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 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
 neighbor 1.1.3.31 remote-as 130
 neighbor 1.1.3.31 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
!
!
!
!
!
!
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
 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
!
!
!
!
!
!
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
 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 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
 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 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.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 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.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
 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
!
!
!
!
!
!
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
 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
 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

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 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
 neighbor 1.1.5.31 remote-as 130
 neighbor 1.1.5.31 password cisco
 neighbor 1.1.6.41 remote-as 140
 neighbor 1.1.6.41 password cisco
 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

設定と確認 Part2:ルート集約

Step1:AS110内のBGPルートの集約の設定

R11/R12/R15/R16でAS110内のBGPルートの集約ルート110.1.0.0/21を生成します。また、Suppress-mapによって、第3オクテットが奇数である集約前のBGPルートのアドバタイズを抑制します。これにより、第3オクテットが偶数である集約前のBGPルートを集約ルートともにアドバタイズできます。

R11/R15 AS110 ルート集約

router bgp 65100
 aggregate-address 110.1.0.0 255.255.248.0 suppress-map ODD

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

R12/R16 AS110 ルート集約

router bgp 65200
 aggregate-address 110.1.0.0 255.255.248.0 suppress-map ODD

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

Step2:AS110内のBGPルートの集約の確認

集約ルート生成の設定をしたルータで集約ルートの生成を確認します。そのために、次のshowコマンドを利用します。

  • show ip bgp | include 110.1.
  • show ip bgp neighbor <ip-address> advertised-routes | include 110.1.

R11では、次のような表示になります。

R11 集約ルートの確認

R11#show ip bgp | include 110.1.
*> 110.1.0.0/21     0.0.0.0                            32768 i
s> 110.1.1.0/24     0.0.0.0                  0         32768 i
r>i110.1.2.0/24     192.168.0.12             0    100      0 (65200) i
r>i110.1.3.0/24     192.168.0.13             0    100      0 i
r>i110.1.4.0/24     192.168.0.14             0    100      0 (65200) i
r>i110.1.6.0/24     192.168.0.16             0    100      0 (65200) i
R11#show ip bgp neighbors 1.1.1.21 advertised-routes | include 110.1.
*> 110.1.0.0/21     0.0.0.0                            32768 i
r>i110.1.2.0/24     192.168.0.12             0    100      0 (65200) i
r>i110.1.4.0/24     192.168.0.14             0    100      0 (65200) i
r>i110.1.6.0/24     192.168.0.16             0    100      0 (65200) i

R11はR21に対して110.1.0.0/21、110.1.2.0/24、110.1.4.0/24、110.1.6.0/24のBGPルートをアドバタイズしていることがわかります。

図 AS110内の集約ルートの生成
図 AS110内の集約ルートの生成

Step3:AS120内のBGPルートの集約の設定

R21/R22でAS120内のBGPルートを集約した120.1.0.0/22の集約ルートを生成します。集約ルートのみをアドバタイズするために、aggregate-addressコマンドにsummary-onlyオプションを付加します。

R21/R22 AS120 ルート集約

router bgp 120
 aggregate-address 120.1.0.0 255.255.252.0 summary-only

Step4:AS120内のBGPルートの集約の確認

集約ルート生成の設定をしたルータで集約ルートの生成を確認します。そのために、次のshowコマンドを利用します。

  • show ip bgp | include 120.1.
  • show ip bgp neighbor <ip-address> advertised-routes | include 120.1.

R21では、次のような表示になります。

R21 集約ルートの確認

R21#show ip bgp | include 120.1.
* i120.1.0.0/22     172.16.0.22              0    100      0 i
s> 120.1.1.0/24     0.0.0.0                  0         32768 i
s> 120.1.2.0/24     172.16.1.23              3         32768 i
s> 120.1.3.0/24     172.16.1.23              2         32768 i
R21#show ip bgp neighbors 1.1.1.11 advertised-routes | include 120.1.
*> 120.1.0.0/22     0.0.0.0                            32768 i

R21はR11に対して集約ルート 120.1.0.0/22のみをアドバタイズしていることがわかります。

図 AS120内の集約ルートの生成
図 AS120内の集約ルートの生成

Step5:AS130内のBGPルートの集約の設定

R31でAS130内のBGPルートを集約した130.1.0.0/22の集約ルートを生成します。集約ルートのみをアドバタイズするためにsummary-onlyオプションを付加します。さらに、attribute-mapによって集約ルートにCOMMUNITYアトリビュートを付加します。

R31 AS130 ルート集約

router bgp 130
 aggregate-address 130.1.0.0 255.255.252.0 summary-only attribute-map ATT

route-map ATT permit 10
 set community 130:1

ip bgp-community new-format

Step6:AS130内のBGPルートの集約の確認

集約ルート生成の設定をしたルータで集約ルートの生成を確認します。そのために、次のshowコマンドを利用します。

  • show ip bgp 130.1.0.0
  • show ip bgp neighbor <ip-address> advertised-routes | include 130.1.

R31では、次のような表示になります。

R31 集約ルートの確認

R31#show ip bgp 130.1.0.0
BGP routing table entry for 130.1.0.0/22, version 39
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Flag: 0x8A0
  Advertised to update-groups:
     1         
  Local, (aggregated by 130 130.1.1.1)
    0.0.0.0 from 0.0.0.0 (130.1.1.1)
      Origin IGP, localpref 100, weight 32768, valid, aggregated, local, atomic-aggregate, best
      Community: 130:1
R31#show ip bgp neighbors 1.1.3.15 advertised-routes | include 130.1. 
BGP table version is 42, local router ID is 130.1.1.1
*> 130.1.0.0/22     0.0.0.0                            32768 i

R31で生成したBGP集約ルート 130.1.0.0/22に130:1のCOMMUNITYアトリビュートが付加されていることがわかります。また、集約ルートのみをネイバーにアドバタイズしています。

図 AS130内の集約ルートの生成
図 AS130内の集約ルートの生成

Step7:AS140内のBGPルートの集約の設定

R41でAS130内のBGPルートを集約した140.1.0.0/22の集約ルートを生成します。集約ルートのみをアドバタイズするためにsummary-onlyオプションを付加します。そして、Unsuppress-mapによって、R51にだけ集約前の140.1.2.0/24のBGPルートもアドバタイズします。

R41 AS140 ルート集約

router bgp 140
 aggregate-address 140.1.0.0 255.255.252.0 summary-only
 neighbor 1.1.6.51 unsuppress-map UNSUPP

access-list 1 permit 140.1.2.0

route-map UNSUPP permit 10
 match ip address 1

Step8:AS140内のBGPルートの集約の確認

集約ルート生成の設定をしたルータで集約ルートの生成を確認します。そのために、次のshowコマンドを利用します。

  • show ip bgp 140.1.0.0
  • show ip bgp neighbor <ip-address> advertised-routes | include 140.1.

R41では、次のような表示になります。

R41 集約ルートの確認

R41#show ip bgp 140.1.0.0
BGP routing table entry for 140.1.0.0/22, version 11
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
  Advertised to update-groups:
     1          2         
  Local, (aggregated by 140 140.1.1.1)
    0.0.0.0 from 0.0.0.0 (140.1.1.1)
      Origin IGP, localpref 100, weight 32768, valid, aggregated, local, atomic-aggregate, best
R41#show ip bgp neighbors 1.1.4.16 advertised-routes | include 140.1.
BGP table version is 17, local router ID is 140.1.1.1
*> 140.1.0.0/22     0.0.0.0                            32768 i
R41#show ip bgp neighbors 1.1.6.51 advertised-routes | include 140.1.
BGP table version is 17, local router ID is 140.1.1.1
*> 140.1.0.0/22     0.0.0.0                            32768 i
s> 140.1.2.0/24     0.0.0.0                  0         32768 i

R41はR16に対して集約ルート140.1.0.0/22のみをアドバタイズしています。一方、R51に対して集約ルート140.1.0.0/22と140.1.2.0/24をアドバタイズしていることがわかります。

図 AS140内の集約ルートの生成
図 AS140内の集約ルートの生成

Step9:AS150内のBGPルートの集約の設定

R31/R41でAS150内のBGPルートを集約した150.1.0.0/22の集約ルートを生成します。as-setオプションを付加することで、生成した集約ルートのAS_PATHアトリビュートに元のAS番号150の情報を継承させます。

R31 AS150 ルート集約

router bgp 130
 aggregate-address 150.1.0.0 255.255.252.0 as-set

R41 AS150 ルート集約

router bgp 140
 aggregate-address 150.1.0.0 255.255.252.0 as-set

Step10:AS150内のBGPルートの集約の確認

集約ルート生成の設定をしたルータで集約ルートの生成を確認します。そのために、次のshowコマンドを利用します。

  • show ip bgp 150.1.0.0

R31では、次のような表示になります。

R41 集約ルートの確認

R31#show ip bgp 150.1.0.0
BGP routing table entry for 150.1.0.0/22, version 52
Paths: (1 available, best #1, table Default-IP-Routing-Table)
  Advertised to update-groups:
     1         
  150, (aggregated by 130 130.1.1.1)
    0.0.0.0 from 0.0.0.0 (130.1.1.1)
      Origin IGP, localpref 100, weight 32768, valid, aggregated, local, best

R31で生成したAS150内のネットワークアドレスを集約した集約ルート150.1.0.0/22のAS_PATHアトリビュートが150であることがわかります。これは、集約前の150.1.1.0/24~150.1.3.0/24のAS_PATHアトリビュート内のAS番号を継承しています。

 図 AS150内の集約ルートの生成
図 AS150内の集約ルートの生成

図は集約ルートのみに注目しています。summary-onlyオプションをつけていないので、R31/R41は集約前のAS150のルートもアドバタイズしていますが、図では省略しています。

Part2完了の設定ファイル

R11 Completed 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 Completed 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 Completed 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 Completed 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 Completed 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 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

R16 Completed 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 Completed 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 Completed 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 Completed 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 Completed 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
 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
!
!
!
!
!
!
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 Completed 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
 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
 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

R51 Completed 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 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
 neighbor 1.1.5.31 remote-as 130
 neighbor 1.1.5.31 password cisco
 neighbor 1.1.6.41 remote-as 140
 neighbor 1.1.6.41 password cisco
 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

関連記事

関連記事









BGPの仕組み