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
-
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
-
Enable IP routing (the equivalent to
ip routingon IOS):sysctl net.inet.ip.forwarding=1
-
Configure RIP - create a
/etc/ripd.conffile which contains something like the following:
The configuration should be fairly self explanatory (I hope! :) If in doubt tryfib-update yes redistribute connected split-horizon poisoned triggered-updates yes interface vr0 { } interface vr1 { }man ripd.confand have a read. -
Start the RIP daemon by running
ripd. -
Check out the status of
ripdby using theripctlcommand - tryripctl show ?for ideas.
You should now have a second router that is running RIP!
Laboratory Tasks
-
Reconfigure your router to use MD5 based authentication for communication
within Area 0. To do this, under the configuration for
interface Ethernet 0/0add:
And within yourip ospf message-digest-key 1 md5 mekmitasdigoat
router ospfconfiguration add:
This will enable MD5 based authentication usingarea 0 authentication message-digest
mekmitasdigoatas the key. Ensure that communication with other routers is still successful after making this change. - Reconfigure your physical network as per the above diagram.
- Configure your OpenBSD router.
- 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.
-
Configure RIP on your Cisco router - you may want to consider adding some
passive-interfacecommands for the appropriate interfaces. - Enable route redistribution - presumably you will want to redistribute your RIP routes into OSPF and vice versa.
-
Try the following commands (record their output) and see if your router is
learning routes from the other routers:
At the very least you should be learning about your own 192.168.x4.0/24 network, as being advertised by your OpenBSD router.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
- 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!
- 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:
- A copy of your router's running configuration file for Part 2.
- A copy of your router's routing table for Part 2.
- 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.
- If possible, include a copy of another group's routing table showing your RIP subnet(s).
- Include the analysis requested in Part 1.
Nominally due by 5pm 6th May 2008.