Prerequisites: CCNP level skills.
Topology
Notice!
Use Initial configuration (Task 1) from the lab 89.
Task 1
Ensure 172.16.105.0/24 (R5) can reach 172.16.102.0/24 (R2). Use GRE tunnel to accomplish the goal.
Lab Solution
Notice!
The same problem as in Lab 89. R1 is NOT running BGP and drops the packets between 172.16.102.0/24 and 172.16.105.0/24
Task 1
Ensure 172.16.105.0/24 (R5) can reach 172.16.102.0/24 (R2). Use GRE tunnel to accomplish the goal.
R3 Configuration:
!
interface Tunnel0
ip address 10.1.34.3 255.255.255.0
tunnel source Loopback0
tunnel destination 172.16.104.4
!
router ospf 1
router-id 3.3.3.3
log-adjacency-changes
network 10.1.13.3 0.0.0.0 area 0
network 10.1.34.3 0.0.0.0 area 0
network 172.16.103.3 0.0.0.0 area 0
!
ip address 10.1.34.3 255.255.255.0
tunnel source Loopback0
tunnel destination 172.16.104.4
!
router ospf 1
router-id 3.3.3.3
log-adjacency-changes
network 10.1.13.3 0.0.0.0 area 0
network 10.1.34.3 0.0.0.0 area 0
network 172.16.103.3 0.0.0.0 area 0
!
router bgp 134
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
network 172.16.103.0 mask 255.255.255.0
neighbor 10.1.34.4 remote-as 134
neighbor 10.1.34.4 next-hop-self
neighbor 10.1.35.5 remote-as 50
no auto-summary
no synchronization
bgp router-id 3.3.3.3
bgp log-neighbor-changes
network 172.16.103.0 mask 255.255.255.0
neighbor 10.1.34.4 remote-as 134
neighbor 10.1.34.4 next-hop-self
neighbor 10.1.35.5 remote-as 50
no auto-summary
!
R4 Configuration:
!
interface Tunnel0
ip address 10.1.34.4 255.255.255.0
tunnel source Loopback0
tunnel destination 172.16.103.3
!
ip address 10.1.34.4 255.255.255.0
tunnel source Loopback0
tunnel destination 172.16.103.3
!
router ospf 1
router-id 4.4.4.4
log-adjacency-changes
network 10.1.34.4 0.0.0.0 area 0
network 10.1.124.4 0.0.0.0 area 0
network 172.16.104.4 0.0.0.0 area 0
!
router-id 4.4.4.4
log-adjacency-changes
network 10.1.34.4 0.0.0.0 area 0
network 10.1.124.4 0.0.0.0 area 0
network 172.16.104.4 0.0.0.0 area 0
!
router bgp 134
no synchronization
bgp router-id 4.4.4.4
bgp log-neighbor-changes
network 172.16.104.0 mask 255.255.255.0
network 172.16.144.0 mask 255.255.255.0
neighbor 10.1.34.3 remote-as 134
neighbor 10.1.34.3 next-hop-self
neighbor 10.1.124.2 remote-as 20
no auto-summary
no synchronization
bgp router-id 4.4.4.4
bgp log-neighbor-changes
network 172.16.104.0 mask 255.255.255.0
network 172.16.144.0 mask 255.255.255.0
neighbor 10.1.34.3 remote-as 134
neighbor 10.1.34.3 next-hop-self
neighbor 10.1.124.2 remote-as 20
no auto-summary
!
Verification:
Pic. 2 - GRE Tunnel.
Pic. 3 - BGP Session Over Tunnel0.
Pic. 4 - Tunnel Interface OSPF-Enabled.
Pic. 5 - 0SPF Adjacency Between R3 and R4.
Pic. 6 - BGP Table on R3.
Pic. 7 - BGP Table on R4.
Pic. 8 - Ping Test.