Lab Challenge IBGP vs EBGP :
R1/2/3/4 establish internal routing using OSPF.
R1 & R4 are to be set within IBGP using AS 5500. Establish peering & advertise there internal loopback
addresses. R4 & R5 establish connectivity and filter R5 loopback address over to R4 with Route-Maps.
R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 10.1.12.1 255.255.255.252
!
interface FastEthernet1/0
ip address 10.1.13.1 255.255.255.252
!
router ospf 1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 10.1.12.0 0.0.0.3 area 0
network 10.1.13.0 0.0.0.3 area 0
!
router bgp 5500
no synchronization
bgp log-neighbor-changes
neighbor 4.4.4.4 remote-as 5500
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
R2
interface FastEthernet0/0
ip address 10.1.12.2 255.255.255.252
!
interface FastEthernet1/0
ip address 10.1.24.1 255.255.255.252
!
router ospf 1
log-adjacency-changes
network 10.1.12.0 0.0.0.3 area 0
network 10.1.24.0 0.0.0.3 area 0
R3
interface FastEthernet0/0
ip address 10.1.13.2 255.255.255.252
!
router ospf 3
log-adjacency-changes
network 10.1.13.2 0.0.0.0 area 0
R4
interface Loopback4
ip address 4.4.4.4 255.255.255.255
!
interface FastEthernet0/0
ip address 10.1.24.2 255.255.255.252
!
interface FastEthernet1/0
ip address 10.1.45.1 255.255.255.252
!
router ospf 1
log-adjacency-changes
network 4.4.4.4 0.0.0.0 area 0
network 10.1.24.2 0.0.0.0 area 0
network 10.1.45.1 0.0.0.0 area 0
!
router bgp 5500
no synchronization
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 5500
neighbor 1.1.1.1 update-source Loopback4
neighbor 5.5.5.5 remote-as 6500
neighbor 5.5.5.5 ebgp-multihop 3
neighbor 5.5.5.5 update-source Loopback4
no auto-summary
!
ip classless
ip route 5.5.5.5 255.255.255.255 10.1.45.2
R5
interface Loopback1
ip address 200.1.1.1 255.255.255.0
!
interface Loopback2
ip address 200.1.2.1 255.255.255.0
!
interface Loopback3
ip address 200.1.3.1 255.255.255.0
!
interface Loopback4
ip address 200.1.4.1 255.255.255.0
!
interface Loopback5
ip address 5.5.5.5 255.255.255.255
!
interface Loopback6
ip address 200.1.6.1 255.255.255.0
!
interface Loopback50
ip address 50.1.1.1 255.255.255.0
!
interface FastEthernet0/0
ip address 10.1.45.2 255.255.255.252
!
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 3
neighbor 4.4.4.4 update-source Loopback5
no auto-summary
!
ip classless
ip route 4.4.4.4 255.255.255.255 10.1.45.1
!
!
ip access-list standard REDISTRIBUTE
permit 200.1.1.0
permit 200.1.3.0
permit 200.1.2.0
deny 200.1.5.0
permit 200.1.4.0
deny 200.1.6.0
!
route-map FILTER permit 10
match ip address REDISTRIBUTE

Comments
(There are currently no comments for this post.)