BGP Lab/Assignment 3 - Part 2

Now that you have a working BGP network it is time to configure OSPF as your interior routing protocol.

To do this you will connect your OpenBSD router to the Ethernet1/1 interface of your Cisco router. Connect your Linux workstation to your OpenBSD router and configure a 192.168.x4/20 subnet for these devices to use (where x is your group's major subnet number - 1, 2, 3 or 4).

To Configure Your OpenBSD Router

  1. Configure each network interface (vr0 and vr1) using appropriate IP addresses:
    ifconfig vr0 192.168.x1.253 netmask 255.255.255.0 up
    ifconfig vr1 192.168.x4.254 netmask 255.255.255.0 up
    
  2. Enable IP routing (the equivalent to ip routing on IOS):
    sysctl net.inet.ip.forwarding=1
    
  3. Configure OSPF - create an /etc/ospfd.conf file which contains something like the following:
    fib-update yes
    stub-router no
    
    redistribute 192.168.x4.0/24
    
    area 0 {
    	interface vr0
    }
    
    The configuration should be fairly self explanatory (I hope! :) If in doubt try man ospfd.conf and have a read.
  4. Start the OSPF daemon by running ospfd.
  5. Check out the status of ospfd by using the ospfctl command - try ospfctl show ? for ideas.

You should now have a second router that is running OSPF!

Laboratory Tasks

  1. Configure your OpenBSD router, as detailed above.
  2. Load your previous BGP configuration and ensure that everything is functioning correctly.
  3. Configure OSPF on your Cisco router. Remember to include the appropriate network statements. You may also want to add some passive-interface statements to prevent OSPF traffic from appearing on your BGP network.
  4. Ensure that your OpenBSD router is learning routes from your Cisco router. Also check that your Cisco is learning about the 192.168.x4.0/24 network from your OpenBSD router.
  5. Issue the appropriate commands to enable route sharing between OSPF and BGP on your Cisco router.
  6. Ensure that your OpenBSD router is learning BGP advertised routes via OSPF.
  7. Ensure that your router is advertising your 192.168.x4.0/24 network via BGP.
  8. Ensure that other routers are learning about OSPF routes that are being advertised via BGP from your router.
  9. Configure your Linux workstation with an IP address in the 192.168.x4.0/24 network. Verify that you can ping another group's workstation, which should be on their 192.168.x4.0/24 network.
  10. Record your router's running configuration - you'll need this for the next lab!
  11. Record a copy of your routing table.
  12. Record a copy of your BGP table.
  13. Get a copy of a routing table from another group's Cisco router.
  14. Try to identify the AS Path that your router uses for each group's 192.168.x4.0/24 network.