Lab 7-1
Step 0 - Configuration de base
SanJose
enable
clock set 8:30:00 Oct 24 2019
conf t
clock timezone CST -1
hostname SanJose
no ip domain-lookup
line con 0
logging synchronous
exit
ISP
enable
clock set 8:30:00 Oct 24 2019
conf t
clock timezone CST -1
hostname ISP
no ip domain-lookup
line con 0
logging synchronous
exit
CustRtr
enable
clock set 8:30:00 Oct 24 2019
conf t
clock timezone CST -1
hostname CustRtr
no ip domain-lookup
line con 0
logging synchronous
exit
Step 1 - Configuration des interfaces
SanJose
conf t
interface lo0
description SanJose interne network 0
ip address 10.1.1.1 255.255.255.0
exit
interface serial 1/0
description SanJose to ISP
ip address 192.168.1.5 255.255.255.252
no shutdown
ISP
conf t
interface lo0
description ISP interne network 0
ip address 10.2.2.1 255.255.255.0
exit
interface serial 1/0
description ISP1 to SanJose
ip address 192.168.1.6 255.255.255.252
no shutdown
exit
interface serial 1/1
description ISP1 to CustRtr
ip address 172.24.1.17 255.255.255.252
no shutdown
end
CustRtr
conf t
interface lo0
description CustRtr interne network 0
ip address 10.3.3.1 255.255.255.0
exit
interface serial 1/1
description CustRtr to ISP
ip address 172.24.1.18 255.255.255.252
no shutdown
Step 2 - Configuration de BGP sur les routeurs ISP
SanJose
router bgp 100
neighbor 192.168.1.6 remote-as 300
network 10.1.1.0 mask 255.255.255.0
ISP
router bgp 300
neighbor 172.24.1.18 remote-as 65000
neighbor 192.168.1.5 remote-as 100
network 10.2.2.0 mask 255.255.255.0
CustRtr
router bgp 65000
neighbor 172.24.1.17 remote-as 300
network 10.3.3.0 mask 255.255.255.0
Step 3 - Remove the private AS
ISP
router bgp 300
neighbor 192.168.1.5 remove-private-as
Step 4 - Use the AS_PATH attribute to filter routes
ISP
ip as-path access-list 1 deny ^100$
ip as-path access-list 1 permit .*
router bgp 300
neighbor 172.24.1.18 filter-list 1 out