Lab 11: BGP - NetwaxLab

Breaking

Facebook Popup

BANNER 728X90

Saturday, January 17, 2015

Lab 11: BGP


Task

Topology

  1. Configure IP Addresses as per given in topology.
  2. Configure IBGP neighbourship as per given in topology. Advertise loopback 1 and loopback 2 in IBGP.
  3. Configure Internal BGP neighbour as per given in topology.
  4. Make sure Loopback 3 and loopback 4 introduce in BGP network.
  5. R3 to R7 receives all the loopback network information in BGP table. (Verify after completion of this task).
  6. Configuration Sub-AS's in BGP AS 300. Make sure R10 and R12 make neighbourship with R8 and R11.
  7. Make sure R1 and R2 advertise all the loopbacks in BGP.
  8. Configure EBGP neighbourship as per given in topology. Make sure EBGP neighbourship is configure using loopback 1 only.
  9. Make sure all routers ping loopback addresses. (Do possible Configuration)
  10. On R2, Configure R14 as a best path for Network 3.3.3.0 and R8 as a best path for Network 3.3.4.0.
  11. Configure weight as 1440 on R8 to make R7 as a best path for BGP routes.
  12. Make sure R7 Receives metric 10000 for Network 2.2.1.0 from R3.

Solution

Tasks 2: Configure IBGP Neighborship as per given in topology. Advertise loopback 1 and loopback 2 in IBGP.

On R3
=====

router eigrp 100
 network 3.3.1.0 0.0.0.255
 network 3.3.2.0 0.0.0.255
 network 10.0.34.0 0.0.0.255
 network 10.0.37.0 0.0.0.255
 no auto-summary


On R4
=====

router eigrp 100
 network 4.4.1.0 0.0.0.255
 network 4.4.2.0 0.0.0.255
 network 10.0.34.0 0.0.0.255
 network 10.0.45.0 0.0.0.255
 network 10.0.46.0 0.0.0.255
 no auto-summary

On R5
=====

router eigrp 100
 network 5.5.1.0 0.0.0.255
 network 5.5.2.0 0.0.0.255
 network 10.0.45.0 0.0.0.255
 network 10.0.56.0 0.0.0.255
 network 10.0.57.0 0.0.0.255
 no auto-summary


On R6
=====

router eigrp 100
 network 6.6.1.0 0.0.0.255
 network 6.6.2.0 0.0.0.255
 network 10.0.46.0 0.0.0.255
 network 10.0.56.0 0.0.0.255
 network 10.0.67.0 0.0.0.255
 no auto-summary


On R7
=====

router eigrp 100
 network 7.7.1.0 0.0.0.255
 network 7.7.2.0 0.0.0.255
 network 10.0.37.0 0.0.0.255
 network 10.0.57.0 0.0.0.255
 network 10.0.67.0 0.0.0.255
 auto-summary


On R8
=====

router ospf 1
 network 8.8.1.0 0.0.0.255 area 0
 network 8.8.2.0 0.0.0.255 area 0
 network 10.0.80.0 0.0.0.255 area 0
 network 10.0.89.0 0.0.0.255 area 0

On R9
=====

router ospf 1
 network 9.9.1.0 0.0.0.255 area 0
 network 9.9.2.0 0.0.0.255 area 0
 network 10.0.89.0 0.0.0.255 area 0

On R10
======

router ospf 1
 network 10.0.80.0 0.0.0.255 area 0
 network 10.0.110.0 0.0.0.255 area 0
 network 10.10.1.0 0.0.0.255 area 0
 network 10.10.2.0 0.0.0.255 area 0

On R11
======

router ospf 1
 network 10.0.110.0 0.0.0.255 area 0
 network 10.0.112.0 0.0.0.255 area 0
 network 11.11.1.0 0.0.0.255 area 0
 network 11.11.2.0 0.0.0.255 area 0

On R12
======

router ospf 1
 network 10.0.112.0 0.0.0.255 area 0
 network 12.12.1.0 0.0.0.255 area 0
 network 12.12.2.0 0.0.0.255 area 0

On R13
======

router eigrp 200
 network 10.0.134.0 0.0.0.255
 network 13.13.1.0 0.0.0.255
 network 13.13.2.0 0.0.0.255
 no auto-summary


On R14
======

router eigrp 200
 network 10.0.134.0 0.0.0.255
 network 14.14.1.0 0.0.0.255
 network 14.14.2.0 0.0.0.255
 no auto-summary


Task 3: Configure Internal BGP neighbor as per given in topology. (Task 6 also complete)

On R3
=====

router bgp 1100
 neighbor 10.0.34.4 remote-as 1100
 neighbor 10.0.37.7 remote-as 1100

On R4
=====

router bgp 1100
 neighbor 10.0.34.3 remote-as 1100
 neighbor 10.0.45.5 remote-as 1100
 neighbor 10.0.46.6 remote-as 1100

On R5
=====

router bgp 1100
 neighbor 10.0.45.4 remote-as 1100
 neighbor 10.0.56.6 remote-as 1100
 neighbor 10.0.57.7 remote-as 1100

On R6
=====

router bgp 1100
 neighbor 10.0.46.4 remote-as 1100
 neighbor 10.0.56.5 remote-as 1100
 neighbor 10.0.67.7 remote-as 1100

On R7
=====

router bgp 1100
 neighbor 10.0.37.3 remote-as 1100
 neighbor 10.0.57.5 remote-as 1100
 neighbor 10.0.67.6 remote-as 1100

On R8
=====

router bgp 300
 bgp confederation identifier 300
 bgp confederation peers 600
 neighbor 10.0.80.10 remote-as 600
 neighbor 10.0.89.9 remote-as 300

On R9
=====

router bgp 300
 neighbor 10.0.89.8 remote-as 300

On R10
======

router bgp 600
 bgp confederation identifier 300
 bgp confederation peers 300
 neighbor 10.0.80.8 remote-as 300
 neighbor 10.0.110.11 remote-as 300

On R11
======

router bgp 300
 bgp confederation identifier 300
 bgp confederation peers 600 700
 neighbor 10.0.110.10 remote-as 600
 neighbor 10.0.112.12 remote-as 700

On R12
======

router bgp 700
 bgp confederation identifier 300
 bgp confederation peers 300
 neighbor 10.0.112.11 remote-as 300

On R13
======

router bgp 60
 neighbor 10.0.134.14 remote-as 60

On R14
======

router bgp 60
 neighbor 10.0.134.13 remote-as 60

 

Task 4: Make sure Loopback 3 and loopback 4 introduce in BGP network.

On R3
=====

router bgp 1100
 network 3.3.3.0 mask 255.255.255.0
 network 3.3.4.0 mask 255.255.255.0


On R4
=====

router bgp 1100
 network 4.4.3.0 mask 255.255.255.0
 network 4.4.4.0 mask 255.255.255.0

On R5
=====

router bgp 1100
 network 5.5.3.0 mask 255.255.255.0
 network 5.5.4.0 mask 255.255.255.0

On R6
=====

router bgp 1100
 network 6.6.3.0 mask 255.255.255.0
 network 6.6.4.0 mask 255.255.255.0

On R7
=====

router bgp 1100
 network 7.7.3.0 mask 255.255.255.0
 network 7.7.4.0 mask 255.255.255.0

On R8
=====

router bgp 300
 network 8.8.3.0 mask 255.255.255.0
 network 8.8.4.0 mask 255.255.255.0

On R9
=====

router bgp 300
 network 9.9.3.0 mask 255.255.255.0
 network 9.9.4.0 mask 255.255.255.0

On R10
======

router bgp 600
 network 10.10.3.0 mask 255.255.255.0
 network 10.10.4.0 mask 255.255.255.0

On R11
======

router bgp 300
 network 11.11.3.0 mask 255.255.255.0
 network 11.11.4.0 mask 255.255.255.0

On R12
======

router bgp 700
 network 12.12.3.0 mask 255.255.255.0
 network 12.12.4.0 mask 255.255.255.0

On R13
======

router bgp 60
 network 13.13.3.0 mask 255.255.255.0
 network 13.13.4.0 mask 255.255.255.0

On R14
======

router bgp 60
 network 14.14.3.0 mask 255.255.255.0
 network 14.14.4.0 mask 255.255.255.0


Task 5: R3 to R7 receives all the loopback network information in bgp table. (verify after completion of this task).

On R4
=====

router bgp 1100
 neighbor 10.0.34.3 route-reflector-client
 neighbor 10.0.45.5 route-reflector-client
 neighbor 10.0.46.6 route-reflector-client

On R6
=====

router bgp 1100
 neighbor 10.0.67.7 route-reflector-client

 

Task 6: Task 6 also complete in Task 3

Task 7: Make sure R1 and R2 advertise all the loopbacks in BGP.

On R1
=====

router bgp 100
 network 1.1.1.0 mask 255.255.255.0
 network 1.1.2.0 mask 255.255.255.0
 network 1.1.3.0 mask 255.255.255.0
 network 1.1.4.0 mask 255.255.255.0

On R2
=====

router bgp 200
 network 2.2.1.0 mask 255.255.255.0
 network 2.2.2.0 mask 255.255.255.0
 network 2.2.3.0 mask 255.255.255.0
 network 2.2.4.0 mask 255.255.255.0


Task 8: Configure EBGP Neighborship as per given in topology. Make sure EBGP neighborship is configure using loopback 1 only.

On R1
=====

ip route 2.2.1.0 255.255.255.0 10.0.12.2
ip route 3.3.1.0 255.255.255.0 10.0.13.3

router bgp 100
 neighbor 2.2.1.1 remote-as 200
 neighbor 2.2.1.1 ebgp-multihop 2
 neighbor 2.2.1.1 update-source Loopback1
 neighbor 3.3.1.1 remote-as 1100
 neighbor 3.3.1.1 ebgp-multihop 2
 neighbor 3.3.1.1 update-source Loopback1
 neighbor 10.0.12.2 remote-as 200
 neighbor 10.0.13.3 remote-as 1100


On R2
=====

ip route 1.1.1.0 255.255.255.0 10.0.12.1
ip route 8.8.1.0 255.255.255.0 10.0.28.8
ip route 14.14.1.0 255.255.255.0 10.0.124.14

router bgp 200
 neighbor 1.1.1.1 remote-as 100
 neighbor 1.1.1.1 ebgp-multihop 2
 neighbor 1.1.1.1 update-source Loopback1
 neighbor 8.8.1.1 remote-as 300
 neighbor 8.8.1.1 ebgp-multihop 2
 neighbor 8.8.1.1 update-source Loopback1
 neighbor 10.0.12.1 remote-as 100
 neighbor 10.0.28.8 remote-as 300
 neighbor 10.0.124.14 remote-as 60
 neighbor 14.14.1.1 remote-as 60
 neighbor 14.14.1.1 ebgp-multihop 2
 neighbor 14.14.1.1 update-source Loopback1

On R3
=====

router bgp 1100
 neighbor 1.1.1.1 remote-as 100
 neighbor 1.1.1.1 ebgp-multihop 2
 neighbor 1.1.1.1 update-source Loopback1
 neighbor 10.0.13.1 remote-as 100

On R5
=====

router bgp 1100
 neighbor 10.0.53.13 remote-as 60
 neighbor 13.13.1.1 remote-as 60
 neighbor 13.13.1.1 ebgp-multihop 2
 neighbor 13.13.1.1 update-source Loopback1

On R7
=====

router bgp 1100
 neighbor 8.8.1.1 remote-as 300
 neighbor 8.8.1.1 ebgp-multihop 2
 neighbor 8.8.1.1 update-source Loopback1
 neighbor 10.0.78.8 remote-as 300

On R8
=====

router bgp 300
 neighbor 2.2.1.1 remote-as 200
 neighbor 2.2.1.1 ebgp-multihop 2
 neighbor 2.2.1.1 update-source Loopback1
 neighbor 7.7.1.1 remote-as 1100
 neighbor 7.7.1.1 ebgp-multihop 2
 neighbor 7.7.1.1 update-source Loopback1
 neighbor 10.0.28.2 remote-as 200
 neighbor 10.0.78.7 remote-as 1100

On R11
======

router bgp 300
 neighbor 10.0.114.14 remote-as 60
 neighbor 14.14.1.1 remote-as 60
 neighbor 14.14.1.1 ebgp-multihop 2
 neighbor 14.14.1.1 update-source Loopback1

On R13
======

router bgp 60
 neighbor 5.5.1.1 remote-as 1100
 neighbor 5.5.1.1 ebgp-multihop 2
 neighbor 5.5.1.1 update-source Loopback1
 neighbor 10.0.53.5 remote-as 1100

On R14
======

router bgp 60
 neighbor 2.2.1.1 remote-as 200
 neighbor 2.2.1.1 ebgp-multihop 2
 neighbor 2.2.1.1 update-source Loopback1
 neighbor 10.0.114.11 remote-as 300
 neighbor 10.0.124.2 remote-as 200
 neighbor 11.11.1.1 remote-as 300
 neighbor 11.11.1.1 ebgp-multihop 2
 neighbor 11.11.1.1 update-source Loopback1


Task 9: Make sure all routers ping loopback addresses. (Do possible Configuration)

On R3
=====

router bgp 1100
 neighbor 10.0.34.4 next-hop-self
 neighbor 10.0.37.7 next-hop-self

On R5
=====

router bgp 1100
 neighbor 10.0.45.4 next-hop-self
 neighbor 10.0.56.6 next-hop-self
 neighbor 10.0.57.7 next-hop-self

On R8
=====

router bgp 300
 neighbor 10.0.80.10 next-hop-self
 neighbor 10.0.89.9 next-hop-self

On R11
======

router bgp 300
 neighbor 10.0.110.10 next-hop-self
 neighbor 10.0.112.12 next-hop-self

On R13
======

router bgp 60
 neighbor 10.0.134.14 next-hop-self

On R14
======

router bgp 60
 neighbor 10.0.134.13 next-hop-self

Note: verify using ping command with source address like:

R3# ping 1.1.1.1 source l3


Task 10: On R2, Configure R14 as a best path for Network 3.3.3.0 and R8 as a best path for Network 3.3.4.0.

On R2
=====

access-list 10 permit 3.3.3.0 0.0.0.255
access-list 20 permit 3.3.4.0 0.0.0.255

route-map Local permit 10
 match ip address 10
 set local-preference 500
 exit

route-map Local permit 20
 exit

route-map R8 permit 21
 match ip address 20
 set local-preference 600
 exit

route-map R8 permit 30
 exit

router bgp 200
 neighbor 14.14.1.1 route-map Local in
 neighbor 8.8.1.1 route-map R8 in


Task 11: Configure weight as 1440 on R8 to make R7 as a best path for BGP routes.

On R8
=====

router bgp 300
 neighbor 10.0.78.7 weight 1440


Task 12: Make sure R7 Receives metric 10000 for Network 2.2.1.0 from R3.

On R7
=====

access-list 10 permit 2.2.1.0 0.0.0.255

route-map Filter permit 10
 match ip address 10
 set metric 10000
 exit

route-map Filter permit 20
 exit

router bgp 1100
 neighbor 10.0.37.3 route-map Filter in

No comments:

Post a Comment