ISP-CORE1

en
conf t
	hostname ISP-CORE1
	
	enable secret P@ssw0rd!
	username admin secret P@ssw0rd! pri 15
	line vty 0 4
		login local
		transport input ssh
	banner "Authorized access only"
	ip domain-name local
	crypto key gen rsa mod 1024
	ip ssh version 2
	
	int g0/0
		ip add 203.0.113.254 255.255.255.0
		no shu
	int g0/1
		ip add 10.255.10.1 255.255.255.252
		no shu
	int g0/2
		ip add 10.255.10.5 255.255.255.252
		no shu
	int g0/3
		ip add 10.255.10.9 255.255.255.252
		no shu
	int loop0
		ip add 10.255.0.1 255.255.255.255
		no shu
		
		
	! OSPF
	
	router ospf 10
	 network 10.255.0.1 0.0.0.0 area 0
	 network 10.255.10.0 0.0.0.3 area 0
	 network 10.255.10.4 0.0.0.3 area 0
	 network 10.255.10.8 0.0.0.3 area 0 
	 pass g0/0
	 exit
	 
	ip route 0.0.0.0 0.0.0.0 203.0.113.8 
	
	! BGP
	router bgp 65000
	 bgp log-neighbor-changes
	 neighbor ISP peer-group
	 neighbor ISP remote-as 65000
	 neighbor ISP password P@ssw0rd!
	 neighbor ISP update-source Loopback0
	 neighbor ISP route-reflector-client
	 neighbor ISP default-originate
	 neighbor 10.255.0.2 remote-as 65000
	 neighbor 10.255.0.2 password P@ssw0rd!
	 neighbor 10.255.0.2 update-source Loopback0
	 neighbor 10.255.0.2 default-originate
	 neighbor 10.255.0.11 peer-group ISP
	 neighbor 10.255.0.12 peer-group ISP
	 exit

ISP-CORE2

en
conf t
	hostname ISP-CORE2
	
	enable secret P@ssw0rd!
	username admin secret P@ssw0rd! pri 15
	line vty 0 4
		login local
		transport input ssh
	banner "Authorized access only"
	ip domain-name local
	crypto key gen rsa mod 1024
	ip ssh version 2
	
	int g0/0
		ip add 10.255.10.2 255.255.255.252
		no shu
	int g0/1
		ip add 10.255.10.13 255.255.255.252
		no shu
	int g0/2
		ip add 10.255.10.17 255.255.255.252
		no shu
	int loop0
		ip add 10.255.0.2 255.255.255.255
		no shu
	
	! OSPF
	router ospf 10
	 network 10.255.0.2 0.0.0.0 area 0
	 network 10.255.10.0 0.0.0.3 area 0
	 network 10.255.10.12 0.0.0.3 area 0
	 network 10.255.10.16 0.0.0.3 area 0
	 exit
 

	
	! BGP
	router bgp 65000
	 bgp log-neighbor-changes
	 neighbor 10.255.0.1 remote-as 65000
	 neighbor 10.255.0.1 password P@ssw0rd!
	 neighbor 10.255.0.1 update-source Loopback0
	 exit

ISP-PE1

en
conf t
	hostname ISP-PE1
	
	enable secret P@ssw0rd!
	username admin secret P@ssw0rd! pri 15
	line vty 0 4
		login local
		transport input ssh
	banner "Authorized access only"
	ip domain-name local
	crypto key gen rsa mod 1024
	ip ssh version 2
	
	int g0/0
		ip add 10.255.10.6 255.255.255.252
		no shu
	int g0/1
		ip add 10.255.10.14 255.255.255.252
		no shu
	int g0/2
		ip add 100.64.10.1 255.255.255.252
		no shu
	int loop0
		ip add 10.255.0.11 255.255.255.255
		no shu
	
	! OSPF
	router ospf 10
	 network 10.255.0.11 0.0.0.0 area 0
	 network 10.255.10.4 0.0.0.3 area 0
	 network 10.255.10.12 0.0.0.3 area 0
	 pass g0/2
	 redistribute static 
	 exit
 

	
	! BGP
	ip prefix-list DEFAULT permit 0.0.0.0/0
	
	route-map HQ
	 match ip address prefix-list DEFAULT
	 
	ip route 10.10.0.1 255.255.255.255 100.64.10.2
	router bgp 65000
	 bgp log-neighbor-changes
	 neighbor 10.10.0.1 remote-as 65100
	 neighbor 10.10.0.1 password P@ssw0rd!
	 neighbor 10.10.0.1 ebgp-multihop 255
	 neighbor 10.10.0.1 update-source Loopback0
	 neighbor 10.10.0.1 route-map HQ out
	 neighbor 10.255.0.1 remote-as 65000
	 neighbor 10.255.0.1 password P@ssw0rd!
	 neighbor 10.255.0.1 update-source Loopback0
	 neighbor 10.255.0.1 next-hop-self

ISP-PE2

en
conf t
	hostname ISP-PE2
	
	enable secret P@ssw0rd!
	username admin secret P@ssw0rd! pri 15
	line vty 0 4
		login local
		transport input ssh
	banner "Authorized access only"
	ip domain-name local
	crypto key gen rsa mod 1024
	ip ssh version 2
	
	int g0/0
		ip add 10.255.10.10 255.255.255.252
		no shu
	int g0/1
		ip add 10.255.10.18 255.255.255.252
		no shu
	int g0/2
		ip add 100.64.10.5 255.255.255.252
		no shu
	int g0/3
		ip add 100.64.20.1 255.255.255.252
		no shu
	int loop0
		ip add 10.255.0.12 255.255.255.255
		no shu
	
	
	! OSPF
	router ospf 10
	 network 10.255.0.12 0.0.0.0 area 0
	 network 10.255.10.16 0.0.0.3 area 0
	 network 10.255.10.10 0.0.0.3 area 0
	 pass g0/2
	 pass g0/3
	 redistribute static 
	 exit
	 
	! BGP
	ip prefix-list DEFAULT permit 0.0.0.0/0
	
	route-map HQ
	 match ip address prefix-list DEFAULT
 
	 
	ip route 10.10.0.1 255.255.255.255 100.64.10.6
	ip route 10.10.0.2 255.255.255.255 100.64.20.2
	
	router bgp 65000
	 bgp log-neighbor-changes
	 neighbor 10.10.0.1 remote-as 65100
	 neighbor 10.10.0.1 password P@ssw0rd!
	 neighbor 10.10.0.1 ebgp-multihop
	 neighbor 10.10.0.1 update-source Loopback0
	 neighbor 10.10.0.1 route-map HQ out
	 neighbor 10.10.0.2 remote-as 65100
	 neighbor 10.10.0.2 password P@ssw0rd!
	 neighbor 10.10.0.2 ebgp-multihop
	 neighbor 10.10.0.2 update-source Loopback0
	 neighbor 10.10.0.2 route-map HQ out
	 neighbor 10.255.0.1 remote-as 65000
	 neighbor 10.255.0.1 password P@ssw0rd!
	 neighbor 10.255.0.1 update-source Loopback0
	 neighbor 10.255.0.1 next-hop-self
	 exit