Skip to content

Lab 2

Step 0 & 1 - Configuration de base & Configuration des interfaces

ISP

enable
clock set 10:51:00 Oct 24 2019
conf t
clock timezone CST -1
hostname ISP
no ip domain-lookup

line con 0
logging synchronous
exit


interface lo0
description ISP interne network 0
ip address 192.168.100.1 255.255.255.0
exit
interface serial 1/0
description ISP to SanJose1
ip address 192.168.1.5 255.255.255.252
no shutdown
exit
interface serial 1/1
description ISP to SanJose2
ip address 192.168.1.1 255.255.255.252
no shutdown
exit

SanJose1

enable
clock set 10:51:00 Oct 24 2019
conf t
clock timezone CST -1
hostname SanJose1
no ip domain-lookup

line con 0
logging synchronous
exit

interface lo0
description ISP interne network 0
ip address 172.16.64.1 255.255.255.0
exit
interface serial 1/0
description SanJose1 to ISP
ip address 192.168.1.6 255.255.255.252
no shutdown
exit
interface serial 1/1
description SanJose1 to SanJose2
ip address 172.16.1.1 255.255.255.0
no shutdown
exit

SanJose2

enable
clock set 10:51:00 Oct 24 2019
conf t
clock timezone CST -1
hostname SanJose2
no ip domain-lookup

line con 0
logging synchronous
exit


interface lo0
description ISP interne network 0
ip address 172.16.32.1 255.255.255.0
exit
interface serial 1/0
description SanJose2 to ISP
ip address 192.168.1.2 255.255.255.252
no shutdown
exit
interface serial 1/1
description SanJose2 to SanJose1
ip address 172.16.1.2 255.255.255.0
no shutdown
exit

Step 2 - Configure EIGRP

SanJose1

router eigrp 10
no auto-summary
network 172.16.64.0 0.0.0.255
network 172.16.1.0 0.0.0.255
passive-interface serial 1/0
passive-interface loopback 0

SanJose2

router eigrp 10
no auto-summary
network 172.16.32.0 0.0.0.255
network 172.16.1.0 0.0.0.255
passive-interface serial 1/0
passive-interface loopback 0

Step 3 - Configure IBGP and verify BGP neighbors

SanJose1

router bgp 64512
neighbor 172.16.32.1 remote-as 64512
neighbor 172.16.32.1 update-source lo0

SanJose1

router bgp 64512
neighbor 172.16.64.1 remote-as 64512
neighbor 172.16.64.1 update-source lo0

Step 4 - Configure EBGP and verify BGP neighbors

ISP

router bgp 200
neighbor 192.168.1.2 remote-as 64512
neighbor 192.168.1.6 remote-as 64512
network 192.168.100.0

SanJose1

ip route 172.16.0.0 255.255.0.0 null0

router bgp 64512
neighbor 192.168.1.5 remote-as 200
network 172.16.0.0

SanJose2

ip route 172.16.0.0 255.255.0.0 null0

router bgp 64512
neighbor 192.168.1.1 remote-as 200
network 172.16.0.0

Step 7 - Configure the BGP next-hop-self feature.

ISP

router bgp 200
network 192.168.1.0 mask 255.255.255.252
network 192.168.1.4 mask 255.255.255.252

SanJose1

router bgp 64512
neighbor 172.16.32.1 next-hop-self

SanJose2

router bgp 64512
neighbor 172.16.64.1 next-hop-self

ISP

router bgp 200
no network 192.168.1.0 mask 255.255.255.252
no network 192.168.1.4 mask 255.255.255.252

Step 8 - Set BGP local preference

SanJose1

route-map PRIMARY_T1_IN permit 10
set local-preference 150
exit
router bgp 64512
neighbor 192.168.1.5 route-map PRIMARY_T1_IN in

SanJose2

route-map SECONDARY_T1_IN permit 10
set local-preference 125
exit
router bgp 64512
neighbor 192.168.1.1 route-map SECONDARY_T1_IN in

Step 9 - Set BGP MED

SanJose1

route-map PRIMARY_T1_MED_OUT permit 10
set Metric 50
exit
router bgp 64512
neighbor 192.168.1.5 route-map PRIMARY_T1_MED_OUT out

SanJose2

route-map SECONDARY_T1_MED_OUT permit 10
set Metric 75
exit
router bgp 64512
neighbor 192.168.1.1 route-map SECONDARY_T1_MED_OUT out

Step 10 - Establish a default route.

ISP

router bgp 200
neighbor 192.168.1.6 default-originate
neighbor 192.168.1.2 default-originate
exit
interface loopback 10
ip address 10.0.0.1 255.255.255.0