BGP: Neighbour relationship

This lab demonstrates that BGP routers do not need to be directly connected to form neighbour relationship.

2651-1#sh run | section router bgp
router bgp 6000
no synchronization
bgp log-neighbor-changes
network 50.1.1.0 mask 255.255.255.0
network 200.1.1.0
redistribute connected route-map bgp-filter-map1
neighbor 10.2.12.2 remote-as 5000
no auto-summary

2651-1#sh run | section route-map
route-map bgp-filter-map1 permit 10
match ip address bgp-filter1

2651-1#sh run | section ip access-list
ip access-list standard bgp-filter1
permit 50.1.1.0 0.0.0.255
permit 200.1.1.0 0.0.0.255

 

2651-2#sh run | s router ospf
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
redistribute static metric 10 subnets
network 2.2.2.2 0.0.0.0 area 0
network 10.1.23.2 0.0.0.0 area 0
network 10.1.24.2 0.0.0.0 area 0
network 10.2.12.2 0.0.0.0 area 0
default-information originate always

2651-2#sh run | s router bgp
router bgp 5000
no synchronization
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 5000
neighbor 1.1.1.1 update-source Loopback2
neighbor 1.1.1.1 next-hop-self
neighbor 10.2.12.1 remote-as 6000
no auto-summary

2651-2#sh run | s access-list
access-list 10 permit 0.0.0.0

2651-3#sh run | s router ospf
router ospf 1
router-id 3.3.3.3
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 10.1.13.3 0.0.0.0 area 0
network 10.1.23.3 0.0.0.0 area 0

2651-4#sh run | s router ospf
router ospf 1
router-id 4.4.4.4
log-adjacency-changes
network 4.4.4.4 0.0.0.0 area 0
network 10.1.14.4 0.0.0.0 area 0
network 10.1.24.4 0.0.0.0 area 0
network 172.30.0.3 0.0.0.0 area 0

1841-1#sh run | s router ospf
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 10.1.13.1 0.0.0.0 area 0
network 10.1.14.1 0.0.0.0 area 0

1841-1#sh run | s router bgp
router bgp 5000
no synchronization
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 5000
neighbor 2.2.2.2 update-source Loopback1
no auto-summary
1841-1#

Advertisements
This entry was posted in BGP, Route and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s