OSPF Lab/Assignment 2 - Part 2

The final part of your second assignment involves running RIP and OSPF on your Cisco™ router and redistributing routing information between the two protocols. A small RIP network will be formed using the Ethernet 1/0 interface of your Cisco router. In addition, we're going to configure one of the OpenBSD workstations as a router and run ripd on it. This will result in the following network configuration:

The network used to connect your Linux workstation to your OpenBSD router is subnet 192.168.x4.00/24, 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.x0.253 netmask 255.255.255.224 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 RIP - create a /etc/ripd.conf file which contains something like the following:
    fib-update yes
    redistribute connected
    split-horizon poisoned
    triggered-updates yes
    
    interface vr0 {
    }
    
    interface vr1 {
    }
    
    The configuration should be fairly self explanatory (I hope! :) If in doubt try man ripd.conf and have a read.
  4. Start the RIP daemon by running ripd.
  5. Check out the status of ripd by using the ripctl command - try ripctl show ? for ideas.

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

Laboratory Tasks

  1. Reconfigure your router to use MD5 based authentication for communication within Area 0. To do this, under the configuration for interface Ethernet 0/0 add:
    ip ospf message-digest-key 1 md5 mekmitasdigoat
    And within your router ospf configuration add:
    area 0 authentication message-digest
    
    This will enable MD5 based authentication using mekmitasdigoat as the key. Ensure that communication with other routers is still successful after making this change.
  2. Reconfigure your physical network as per the above diagram.
  3. Configure your OpenBSD router.
  4. Assign your Linux workstation an IP address in the 192.168.x4.0/24 network. You will also need to set an appropriate default gateway.
  5. Configure RIP on your Cisco router - you may want to consider adding some passive-interface commands for the appropriate interfaces.
  6. Enable route redistribution - presumably you will want to redistribute your RIP routes into OSPF and vice versa.
  7. Try the following commands (record their output) and see if your router is learning routes from the other routers:
    show ip protocols
    show ip route
    show ip ospf
    show ip route ospf
    show ip ospf database
    show ip ospf neighbour
    show ip ospf interface
    
    At the very least you should be learning about your own 192.168.x4.0/24 network, as being advertised by your OpenBSD router.
  8. Ensure that you can ping from your Linux workstation to the central computer. Even better, ensure that you can reach the Linux workstation configured by another group!
  9. Apply filters to the redistribution of routing information to make sure your Cisco router learns routes from the right places. At the very least ensure that routes for your own networks cannot be learned via Area 0.

Report

Submit evidence of your excellent work:

  1. A copy of your router's running configuration file for Part 2.
  2. A copy of your router's routing table for Part 2.
  3. A RIP packet sniffed from your routers E1/0 interface (the RIP Network). This packet is to be interpreted by you to discover what networks your router is advertising via RIP. Compare this with your router's routing table.
  4. If possible, include a copy of another group's routing table showing your RIP subnet(s).
  5. Include the analysis requested in Part 1.

Nominally due by 5pm 6th May 2008.