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
-
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
-
Enable IP routing (the equivalent to
ip routingon IOS):sysctl net.inet.ip.forwarding=1
-
Configure OSPF - create an
/etc/ospfd.conffile which contains something like the following:
The configuration should be fairly self explanatory (I hope! :) If in doubt tryfib-update yes stub-router no redistribute 192.168.x4.0/24 area 0 { interface vr0 }man ospfd.confand have a read. -
Start the OSPF daemon by running
ospfd. -
Check out the status of
ospfdby using theospfctlcommand - tryospfctl show ?for ideas.
You should now have a second router that is running OSPF!
Laboratory Tasks
- Configure your OpenBSD router, as detailed above.
- Load your previous BGP configuration and ensure that everything is functioning correctly.
-
Configure OSPF on your Cisco router. Remember to include the appropriate
network statements. You may also want to add some
passive-interfacestatements to prevent OSPF traffic from appearing on your BGP network. - 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.
- Issue the appropriate commands to enable route sharing between OSPF and BGP on your Cisco router.
- Ensure that your OpenBSD router is learning BGP advertised routes via OSPF.
- Ensure that your router is advertising your 192.168.x4.0/24 network via BGP.
- Ensure that other routers are learning about OSPF routes that are being advertised via BGP from your router.
- 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.
- Record your router's running configuration - you'll need this for the next lab!
- Record a copy of your routing table.
- Record a copy of your BGP table.
- Get a copy of a routing table from another group's Cisco router.
- Try to identify the AS Path that your router uses for each group's 192.168.x4.0/24 network.