BGP: Difference between revisions

Content added Content deleted
Line 328: Line 328:
* BGP Synchronization
* BGP Synchronization
* BGP Handling of Next Hop Address
* BGP Handling of Next Hop Address

=== Configurations ===

;R1 Config:
<pre>
!
interface Loopback1
ip address 1.1.1.1 255.255.255.255
!
!
interface Serial1/0
ip address 10.1.13.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 10.1.12.1 255.255.255.0
serial restart-delay 0
!
!
router ospf 1
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
router bgp 5500
no synchronization
bgp log-neighbor-changes
neighbor IBGP_PEERS peer-group
neighbor IBGP_PEERS remote-as 5500
neighbor IBGP_PEERS update-source Loopback1
neighbor IBGP_PEERS next-hop-self
neighbor 2.2.2.2 peer-group IBGP_PEERS
neighbor 3.3.3.3 peer-group IBGP_PEERS
neighbor 4.4.4.4 remote-as 5500
neighbor 4.4.4.4 update-source Loopback1
no auto-summary
!
</pre>

;R2 Config:
<pre>
!
interface Loopback1
ip address 2.2.2.2 255.255.255.255
!
!
interface Serial1/0
ip address 10.1.24.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 10.1.12.2 255.255.255.0
serial restart-delay 0
!
!
router ospf 1
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
router bgp 5500
no synchronization
bgp log-neighbor-changes
neighbor IBGP_PEERS peer-group
neighbor IBGP_PEERS remote-as 5500
neighbor IBGP_PEERS update-source Loopback1
neighbor IBGP_PEERS next-hop-self
neighbor 1.1.1.1 peer-group IBGP_PEERS
neighbor 3.3.3.3 peer-group IBGP_PEERS
neighbor 4.4.4.4 peer-group IBGP_PEERS
no auto-summary
!
</pre>

;R3 Config:
<pre>
!
interface Loopback1
ip address 3.3.3.3 255.255.255.255
!
!
interface Serial1/0
ip address 10.1.13.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 10.1.34.1 255.255.255.0
serial restart-delay 0
!
!
router ospf 1
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
router bgp 5500
no synchronization
bgp log-neighbor-changes
neighbor IBGP_PEERS peer-group
neighbor IBGP_PEERS remote-as 5500
neighbor IBGP_PEERS update-source Loopback1
neighbor IBGP_PEERS next-hop-self
neighbor 1.1.1.1 peer-group IBGP_PEERS
neighbor 2.2.2.2 peer-group IBGP_PEERS
neighbor 4.4.4.4 peer-group IBGP_PEERS
no auto-summary
!
</pre>

;R4 Config:
<pre>
!
interface Loopback1
ip address 4.4.4.4 255.255.255.255
!
!
interface Serial1/0
ip address 10.1.24.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 10.1.34.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
ip address 10.1.45.1 255.255.255.0
serial restart-delay 0
!
!
router ospf 1
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
router bgp 5500
no synchronization
bgp log-neighbor-changes
neighbor IBGP_PEERS peer-group
neighbor IBGP_PEERS remote-as 5500
neighbor IBGP_PEERS update-source Loopback1
neighbor IBGP_PEERS next-hop-self
neighbor 1.1.1.1 peer-group IBGP_PEERS
neighbor 1.1.1.1 update-source Loopback1
neighbor 2.2.2.2 peer-group IBGP_PEERS
neighbor 3.3.3.3 peer-group IBGP_PEERS
neighbor 5.5.5.5 remote-as 6500
neighbor 5.5.5.5 ebgp-multihop 2
neighbor 5.5.5.5 update-source Loopback1
no auto-summary
!
ip route 5.5.5.5 255.255.255.255 10.1.45.2
!
!
</pre>

;R5 Config:
<pre>
!
interface Loopback0
ip address 200.1.1.1 255.255.255.255
!
interface Loopback1
ip address 200.1.2.1 255.255.255.255
!
interface Loopback2
ip address 200.1.3.1 255.255.255.255
!
interface Loopback3
ip address 200.1.4.1 255.255.255.255
!
interface Loopback4
ip address 200.1.5.1 255.255.255.255
!
interface Loopback5
ip address 200.1.6.1 255.255.255.255
!
interface Loopback6
ip address 50.1.1.1 255.255.255.0
!
interface Loopback7
ip address 5.5.5.5 255.255.255.255
!
interface Serial1/2
ip address 10.1.45.2 255.255.255.0
serial restart-delay 0
!
!
router bgp 6500
no synchronization
bgp log-neighbor-changes
network 50.1.1.0 mask 255.255.255.0
redistribute connected route-map FILTER
neighbor 4.4.4.4 remote-as 5500
neighbor 4.4.4.4 ebgp-multihop 2
neighbor 4.4.4.4 update-source Loopback7
no auto-summary
!
ip route 4.4.4.4 255.255.255.255 10.1.45.1
!
!
!
access-list 50 permit 200.1.1.1
access-list 50 permit 200.1.2.1
access-list 50 permit 200.1.3.1
access-list 50 permit 200.1.4.1
!
route-map FILTER permit 10
match ip address 50
!
</pre>
<br />
<br />