++++++++++++++++++++++++++++++++++ alias exec sir sh ip route alias exec sirc sh ip route | inc C alias exec sib sh ip bgp alias exec cib clear ip bgp * soft alias exec srr sh run | s router ++++++++++++++++++++++++++++++++++ ******************************************************** Lab 1 - Configuring eBGP between AS 12 & AS 100 ******************************************************** =========================================================================================== 1. Configure the neighbor relationship between the routers in AS 12 & AS 100 based on the diagram. =========================================================================================== ----- R1 ----- router bgp 12 neighbor 192.1.110.10 remote-as 100 ----- R2 ----- router bgp 12 neighbor 192.1.120.10 remote-as 100 ----- R10 ----- router bgp 100 neighbor 192.1.110.1 remote-as 12 neighbor 192.1.120.2 remote-as 12 =========================================================================================== 2. Advertise the Loopback 0 & 1 networks on all 3 Routers =========================================================================================== ----- R1 ----- router bgp 12 network 1.1.1.0 mask 255.255.255.0 network 1.1.2.0 mask 255.255.255.0 ----- R2 ----- router bgp 12 network 1.2.1.0 mask 255.255.255.0 network 1.2.2.0 mask 255.255.255.0 ----- R10 ----- router bgp 100 network 1.10.1.0 mask 255.255.255.0 network 1.10.2.0 mask 255.255.255.0 ******************************************************** Lab 2 - Configuring iBGP within AS 12 ******************************************************** =========================================================================================== 1. Configure EIGRP in AS 12 as the underlay to provide reachability to Loopback10 networks =========================================================================================== ----- R1 ----- Interface Loopback10 ip address 192.168.1.1 255.255.255.255 ! router eigrp 123 network 192.168.12.0 network 192.168.1.0 ----- R2 ----- Interface Loopback10 ip address 192.168.1.2 255.255.255.255 ! router eigrp 123 network 192.168.12.0 network 192.168.1.0 =========================================================================================== 2. Configure the neighbor relationship between R1 & R2 based on Loopback10. =========================================================================================== ----- R1 ----- router bgp 12 neighbor 192.168.1.2 remote-as 12 neighbor 192.168.1.2 update-source Loopback10 neighbor 192.168.1.2 next-hop-self ----- R2 ----- router bgp 12 neighbor 192.168.1.1 remote-as 12 neighbor 192.168.1.1 update-source Loopback10 neighbor 192.168.1.1 next-hop-self ******************************************************** Lab 3 - Configuring eBGP between AS 12 & AS 1000 ******************************************************** =========================================================================================== 1. Configure the neighbor relationship between the routers in AS 12 & AS 1000 based on the diagram. =========================================================================================== ----- R1 ----- router bgp 12 neighbor 192.1.13.3 remote-as 1000 ----- R2 ----- router bgp 12 neighbor 192.1.24.4 remote-as 1000 ----- R3 ----- router bgp 1000 neighbor 192.1.13.1 remote-as 12 ----- R4 ----- router bgp 1000 neighbor 192.1.24.2 remote-as 12 =========================================================================================== 2. Advertise the Loopback 0 & 1 networks on R3 & R4 =========================================================================================== ----- R3 ----- router bgp 1000 network 1.3.1.0 mask 255.255.255.0 network 1.3.2.0 mask 255.255.255.0 ----- R4 ----- router bgp 1000 network 1.4.1.0 mask 255.255.255.0 network 1.4.2.0 mask 255.255.255.0 ******************************************************** Lab 4 - Configuring iBGP within AS 1000 ******************************************************** =========================================================================================== 1. Configure iBGP between R3-R5 & between R3-R4 using physical IPs. Configure R3 as a RR. You are not allowed to run an IGP or static routes between R3, R4 & R5 =========================================================================================== ----- R3 ----- router bgp 1000 neighbor 192.168.34.4 remote-as 1000 neighbor 192.168.34.4 next-hop-self all neighbor 192.168.34.4 route-reflector-client neighbor 192.168.35.5 remote-as 1000 neighbor 192.168.35.5 next-hop-self all neighbor 192.168.35.5 route-reflector-client ----- R4 ----- router bgp 1000 neighbor 192.168.34.3 remote-as 1000 neighbor 192.168.34.3 next-hop-self ----- R5 ----- router bgp 1000 neighbor 192.168.35.3 remote-as 1000 neighbor 192.168.35.3 next-hop-self =========================================================================================== 2. Advertise the Loopback 0 & 1 networks on R5 =========================================================================================== ----- R5 ----- router bgp 1000 network 1.5.1.0 mask 255.255.255.0 network 1.5.2.0 mask 255.255.255.0 ******************************************************************** Lab 5 - Configure an IGP within AS 1000 for R3 and Internal Routers ******************************************************************** =========================================================================================== 1. Configure an OSPF between R3 and the Internal Router R6. Advertise the Loopback 0 & 1 Interface on R6 in OSPF =========================================================================================== ----- R3 ----- router ospf 1 router-id 0.0.0.3 network 192.168.36.0 0.0.0.255 area 0 ----- R6 ----- router ospf 1 router-id 0.0.0.6 network 192.168.36.0 0.0.0.255 area 0 network 1.6.0.0 0.0.255.255 area 0 ! Interface loo0 ip ospf network point-to-point ! Interface loo1 ip ospf network point-to-point =========================================================================================== 2. Configure Mutual Redistribution between OSPF & BGP on the appropriate router. R6 should be able to reach all the advertised loopbacks. =========================================================================================== ----- R3 ----- router bgp 1000 redistribute ospf 1 ! router ospf 1 redistribute bgp 1000 =========================================================================================== 3. Configure R3 to allow the redistribution of iBGP learnt routes into an IGP. =========================================================================================== ----- R3 ----- router bgp 1000 bgp redistribute-internal ******************************************************** Lab 6 - Configuring eBGP between AS 1000 & AS 2000 ******************************************************** =========================================================================================== 1. Configure the neighbor relationship between the routers in AS 1000 & AS 2000 based on the diagram. =========================================================================================== ----- R4 ----- router bgp 1000 neighbor 192.1.47.7 remote-as 2000 neighbor 192.1.48.8 remote-as 2000 ----- R7 ----- router bgp 2000 neighbor 192.1.47.4 remote-as 1000 ----- R8 ----- router bgp 2000 neighbor 192.1.48.4 remote-as 1000 =========================================================================================== 2. Advertise the Loopback 0 & 1 networks on R7 & R8 =========================================================================================== ----- R7 ----- router bgp 2000 network 1.7.1.0 mask 255.255.255.0 network 1.7.2.0 mask 255.255.255.0 ----- R8 ----- router bgp 2000 network 1.8.1.0 mask 255.255.255.0 network 1.8.2.0 mask 255.255.255.0 ******************************************************** Lab 7 - Configuring iBGP within AS 2000 ******************************************************** =========================================================================================== 1. Configure OSPF in AS 2000 as the underlay to provide reachability to Loopback10 networks =========================================================================================== ----- R7 ----- Interface Loopback10 ip address 192.168.1.7 255.255.255.255 ! router ospf 1 router-id 0.0.0.7 network 192.168.79.0 0.0.0.255 area 0 network 192.168.1.0 0.0.0.255 area 0 ----- R8 ----- Interface Loopback10 ip address 192.168.1.8 255.255.255.255 ! router ospf 1 router-id 0.0.0.8 network 192.168.89.0 0.0.0.255 area 0 network 192.168.1.0 0.0.0.255 area 0 ----- R9 ----- Interface Loopback10 ip address 192.168.1.9 255.255.255.255 ! router ospf 1 router-id 0.0.0.9 network 192.168.79.0 0.0.0.255 area 0 network 192.168.89.0 0.0.0.255 area 0 network 192.168.1.0 0.0.0.255 area 0 =========================================================================================== 2. Configure the neighbor relationship between R7, R8 & R9 based on Loopback10. Configure R9 as an RR for R7 & R8. Optimize the configuration of the RR by minimizing configuration lines. =========================================================================================== ----- R7 ----- router bgp 2000 neighbor 192.168.1.9 remote-as 2000 neighbor 192.168.1.9 update-source Loopback10 neighbor 192.168.1.9 next-hop-self ----- R8 ----- router bgp 2000 neighbor 192.168.1.9 remote-as 2000 neighbor 192.168.1.9 update-source Loopback10 neighbor 192.168.1.9 next-hop-self ----- R9 ----- router bgp 2000 neighbor ABC peer-group neighbor ABC remote-as 2000 neighbor ABC update-source Loopback10 neighbor ABC next-hop-self neighbor ABC route-reflector-client neighbor 192.168.1.7 peer-group ABC neighbor 192.168.1.8 peer-group ABC =========================================================================================== 3. Advertise the Loopback 0 & 1 networks on R9 =========================================================================================== ----- R9 ----- router bgp 2000 network 1.9.1.0 mask 255.255.255.0 network 1.9.2.0 mask 255.255.255.0 ******************************************************** Lab 8 - Configuring eBGP between AS 110 & AS 2000 ******************************************************** =========================================================================================== 1. Configure the neighbor relationship between the routers in AS 110 & AS 2000 based on the diagram. =========================================================================================== ----- R9 ----- router bgp 2000 neighbor 192.1.190.11 remote-as 110 ----- R11 ----- router bgp 110 neighbor 192.1.190.9 remote-as 2000 =========================================================================================== 2. Advertise the Loopback 0 & 1 networks on R11 =========================================================================================== ----- R11 ----- router bgp 110 network 1.11.1.0 mask 255.255.255.0 network 1.11.2.0 mask 255.255.255.0 ******************************************************** Lab 9 - Configuring Multipaths ******************************************************** =========================================================================================== 1. Configure R10 to use both R1 & R2 for Load balancing =========================================================================================== ----- R10 ----- router bgp 100 maximum-paths 2 Note: It turns on multi-pathing by comparing 2 eBGP routes. =========================================================================================== 2. Configure R9 to use both R7 & R8 for Load balancing =========================================================================================== ----- R9 ----- router bgp 2000 maximum-paths ibgp 2 Note: It turns on multi-pathing by comparing 2 iBGP routes. =========================================================================================== 3. Configure R3 to use both R1 & R4 for Load balancing towards AS 12 & AS 100 =========================================================================================== ----- R3 ----- router bgp 1000 maximum-paths eibgp 2 Note: It turns on multi-pathing by comparing routes from either iBGP or eBGP. ******************************************************** Lab 10 - Configuring Local Preference ******************************************************** ----------------------- Characteristics: ----------------------- -> It allows you to choose the preferred router for Outbound Traffic leaving your AS -> It affects the forwarding of routers within your AS -> It is a Number -> Default to 100 -> Higher the Better ================================================================================================== 1. Configure AS 2000 such that R7 is preffered for all outgoing traffic towards AS 1000 & beyond ================================================================================================== ----- R7 ----- route-map SETLP set local-preference 111 ! router bgp 2000 neighbor 192.1.47.4 route-map SETLP in ================================================================================================== 2. Configure AS 2000 such that R8 is preffered exit for the 1.4.x.x/16 and 1.5.x.x/16 networks. ================================================================================================== ----- R8 ----- access-list 1 permit 1.4.0.0 0.0.255.255 access-list 1 permit 1.5.0.0 0.0.255.255 ! route-map SETLP 10 match ip address 1 set local-preference 125 route-map SETLP 20 ! router bgp 2000 neighbor 192.1.48.4 route-map SETLP in ******************************************************** Lab 11 - Configuring MED ******************************************************** ----------------------- Characteristics: ----------------------- -> It allows you to choose the preferred router for Inbound Traffic coming into your AS -> It affects the way the adjoining AS sends traffic towards your AS -> It is a Number -> Default to 0 -> Lower the Better ================================================================================================== 1. Configure AS 2000 such that R8 is the preferred router for incoming traffic ================================================================================================== ----- R7 ----- route-map SETMED set metric 77 ! router bgp 2000 neighbor 192.1.47.4 route-map SETMED out ******************************************************** Lab 12 - Configuring Weight ******************************************************** ----------------------- Characteristics: ----------------------- -> Cisco Prop. Attribute -> It allows you to choose the preferred router for Outbound Traffic -> It is a locally significant attribute and is not sent to any neighbor -> It only affects the way the local router propagates outbound Traffic -> It is a Number -> Default to 0 for all remote routes -> Higher the Better ================================================================================================== 1. Configure R8 such that it uses the R4-R8 for Outbound traffic towards AS 1000 ================================================================================================== ----- R8 ----- route-map SETWT set weight 80 ! router bgp 2000 neighbor 192.1.48.4 route-map SETWT in route-map SETMED set metric 77 ! router bgp 2000 neighbor 192.1.47.4 route-map SETMED out ******************************************************** Lab 13 - Configuring the AS-Path Attribute ******************************************************** ----------------------- Characteristics: ----------------------- -> It allows you to choose the preferred router for both Inbound & Outbound Traffic -> It affects the Global BGP Domain -> Gets created automatically by each AS. -> Shorter the better -> When prepending for incoming routes, prepend the adjoining AS #. -> When prepending for outgoing routes, prepend the Local AS #. ================================================================================================== 1. De-Configure the previous labs ================================================================================================== ----- R7 ----- router bgp 2000 no neighbor 192.1.47.4 route-map SETLP in no neighbor 192.1.47.4 route-map SETMED out ----- R8 ----- router bgp 2000 no neighbor 192.1.48.4 route-map SETWT in ================================================================================================== 2. Configure AS 2000 such that R7 is preffered for all outgoing traffic towards AS 1000 & beyond ================================================================================================== ----- R8 ----- route-map SETAS set as-path prepend 1000 ! router bgp 2000 neighbor 192.1.48.4 route-map SETAS in ================================================================================================== 3. Configure AS 2000 such that R8 is preffered for all incoming traffic from AS 1000 & beyond ================================================================================================== ----- R7 ----- route-map SETAS set as-path prepend 2000 ! router bgp 2000 neighbor 192.1.47.4 route-map SETAS out ******************************************************** Lab 14 - Configuring the No-export Standard Community ******************************************************** ----------------------- Characteristics: ----------------------- -> Requires your routers to be enabled to send the Standard Community Attribute -> It indicates to the neighboring router that the route tagged with the no-export community can be propagated to an iBGP neighbor but cannot be export/propagated to other AS. -> It relies on the neighboring AS also to have enabled the sending of the Standard community attribute. ================================================================================================== 1. Configure R11 such that it propagates the 1.11.1.0/24 route to R9. R9 should not propagate the route outside of AS 2000. Do not use any filtering mechanism to accomplish this task ================================================================================================== ----- R11 ----- access-list 1 permit 1.11.1.0 0.0.0.255 ! route-map ABC 10 match ip address 1 set community no-export ! route-map ABC 100 ! router bgp 110 neighbor 192.1.190.9 route-map ABC out neighbor 192.1.190.9 send-community standard ******************************************************** Lab 15 - Configuring the No-advertise Standard Community ******************************************************** ----------------------- Characteristics: ----------------------- -> Requires your routers to be enabled to send the Standard Community Attribute -> It indicates to the neighboring router that the route tagged with the no-advertise community cannot be propagated to any neighbor, iBGP or eBGP. ================================================================================================== 1. Configure R11 such that it propagates the 1.11.2.0/24 route to R9. R9 should not propagate the route to any of its neighbors. ================================================================================================== ----- R11 ----- access-list 2 permit 1.11.2.0 0.0.0.255 ! route-map ABC 20 match ip address 2 set community no-advertise ******************************************************** Lab 16 - Configuring Conditional Advertisement ******************************************************** ================================================================================================== 1. De-Configure the AS-Path lab on R7 & R8 ================================================================================================== ----- R7 ----- router bgp 2000 no neighbor 192.1.47.4 route-map SETAS out ----- R8 ----- router bgp 2000 no neighbor 192.1.48.4 route-map SETAS in ================================================================================================== 2. Configure AS 2000 such that R8 advertise the BGP networks towards R4 only if R7 is down. ================================================================================================== ======================================================= 1. Configure a Loopback on R7 and advertise it in BGP ======================================================= ----- R7 ----- Interface loopback 99 ip address 10.1.1.99 255.255.255.255 ! router bgp 2000 network 10.1.1.99 mask 255.255.255.255 ===================================================================================================================== 2. Configure R8 to propagate the 1.7.0.0/16, 1.8.0.0/16, 1.9.0.0/16 & 1.11.0.0/16 routes to R4 only if 10.1.1.99/32 is not available in the BGP Table ===================================================================================================================== ----- R8 ----- access-list 51 permit 10.1.1.99 0.0.0.0 ! access-list 52 permit 1.7.0.0 0.0.255.255 access-list 52 permit 1.8.0.0 0.0.255.255 access-list 52 permit 1.9.0.0 0.0.255.255 access-list 52 permit 1.11.0.0 0.0.255.255 ! route-map R7 match ip address 51 route-map AMAP match ip address 52 !