BGP Lab Exercise 1 ------------------ 1. Remove OSPF from your router and shutdown your serial links. We will only be using the Ethernet link for this exercise. OSPF can be removed by doing "no router ospf ". The instructors will reconfigure the network following the completion of the OSPF exercise. You should also remove any IPv6 OSPF configuration by doing "no ipv6 router ospf ". 2. Confirm that you are no longer receiving IPv4 or IPv6 OSPF routes by doing a "show ip route ospf" and "show ipv6 route ospf". 3. Figure out your AS number from the diagram and write it down here: AS: 4. Verify the IP address block used for your PC link. Your group was assigned an address block. You will need to sub-divide it for these BGP exercises, using part of it for the LAN with your PC, and the rest for other requirements later on. Address block: Mask: More-specific block used for LAN: 5. We will set up peering sessions according to the diagram. Your router is connecting to the AS 100 router. Ask the workshop instructors what IP address you should use for the Point-to-Point link with your upstream. Address block used for point to point link to AS 100: 6. Configure BGP on your router to announce your network. This is an example for RouterA team: RouterA# config term Enter configuration commands, one per line. End with CNTL/Z. RouterA(config)# ip bgp-community new-format RouterA(config)# router bgp 1 ! use your AS number RouterA(config-router)# network 196.200.220.32 mask 255.255.255.240 ! use your network and mask RouterA(config-router)# no synchronization RouterA(config-router)# no auto-summary BGP is now configured on your router, but not yet talking to any other routers yet. 7. Set up a peering session with your upstream neighbour, for example: RouterA(config)# router bgp 1 ! use your AS number RouterA(config-router)# neighbor 196.200.222.1 remote-as 100 ! use the IP address and AS number of your neighbour RouterA(config-router)# neighbor 196.200.222.1 descr My-Peer-with-AS100 8. Check to see if the peering session is up: RouterA# show ip bgp summary BGP router identifier 196.200.220.47, local AS number 1 BGP table version is 3, main routing table version 3 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 196.200.222.1 4 100 0 0 0 0 0 never Idle 9. Check to see if you are sending routes to your neighbour? Why or why not? If you aren't, what do you think could be wrong? RouterA# sh ip bgp neighbor x.x.x.x advertised-routes 10. Check to see if you are receiving routes from your neighbour. RouterA# show ip bgp What routes are you receiving? Other commands to monitor BGP: RouterA# sh ip route RouterA# sh ip bgp RouterA# sh ip bgp neighbor RouterA# sh ip bgp neighbor x.x.x.x routes 11. We will now repeat the above steps to add IPv6 to the workshop network. Your group was assigned an IPv6 address block during the OSPF exercise. You need to sub-divide it, using part of it for the LAN with your PC, and part of it for point to point links between routers. Address block: Mask: More-specific (/64) block used for LAN: Ask the workshop instructors what IPv6 address you should use for the Point-to-Point link with your upstream. Address block used for point to point link to AS 100: 12. Configure BGP on your router to announce your IPv6 network. This is an example for RouterA team: RouterA# config term Enter configuration commands, one per line. End with CNTL/Z. RouterA(config)# router bgp 1 ! use your AS number RouterA(config)# no bgp default ipv4-unicast RouterA(config-router)# address-family ipv6 ! IPv6 address family RouterA(config-router)# network 2001:4348:220:10::/60 ! use your network and mask What was the purpose of the "no bgp default ipv4-unicast" configuration line? Can you remember from the presentation? Write the reason down here: BGP is now configured on your router, but not yet talking to any other IPv6 routers yet. 13. Set up a peering session with your upstream neighbour, for example: RouterA(config)# router bgp 1 ! use your AS number RouterA(config-router)# address-family ipv6 ! IPv6 address family RouterA(config-router)# neighbor 2001:4348:220:1::1 remote-as 100 ! use the IPv6 address and AS number of your neighbour RouterA(config-router)# neighbor 2001:4348:220:1::1 descr My-Peer-with-AS100 14. Check to see if the peering session is up: RouterA# show bgp ipv6 unicast summary BGP router identifier 196.200.220.47, local AS number 1 BGP table version is 3, main routing table version 3 Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 2001:4348:220:1::1 4 100 0 0 0 0 0 never Idle 15. Check to see if you are sending routes to your neighbour? Why or why not? If you aren't, what do you think could be wrong? Review the presentation slides - they will give you the hint as to what might be wrong. RouterA# sh bgp ipv6 unicast neighbor x.x.x.x advertised-routes 16. Check to see if you are receiving routes from your neighbour. RouterA# show bgp ipv6 unicast What routes are you receiving? Other commands to monitor BGP: RouterA# sh ipv6 route RouterA# sh bgp ipv6 unicast RouterA# sh bgp ipv6 unicast neighbor RouterA# sh bgp ipv6 unicast neighbor x.x.x.x routes 17. Finally, take a look at the BGP configuration on the router. What do you see? Is there anything unusual with the output? Once you enable the IPv6 address family, you will see that the router will "tidy" up the BGP configuration, separating generic, IPv4 and IPv6 configuration into different sections. When making configuration changes, it is important to specify which address family the changes are required in. The best advice is to simply enter the chosen address family before any configuration changes are required. Print out the configuration, or make a copy of it below here. It will be a useful reference point for you in future as you work through the rest of the exercises in this workshop.