wiki:WikiImunesOSPFExample

OSPF

Open the topology Examples/OSPF/OSPF.imn and you should see this:

OSPF example - topology picture.

Execute the experiment, right click on the router2 node and use Wireshark to listen to the eth2 interface.

You will see pairs of OSPF Hello Packet packets for exchanging routes: from router2 to router3 and from router3 to router2.

Next example shows what happens when one of the routers stop working.

Terminate the current experiment, open the topology Examples/OSPF/OSPF1.imn and you should see this:

OSPF1 example - topology picture.

Execute the experiment, right click on the router2 node and use Wireshark to listen to the eth2 interface.
To show the router2 route table, right click on the router2 node, open the Quagga console shell (vtysh) and execute:

show ip route

The output should be:

router2# show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, A - Babel,
       > - selected route, * - FIB route

O   10.0.0.0/24 [110/10] is directly connected, eth0, 00:00:08
C>* 10.0.0.0/24 is directly connected, eth0
O   10.0.1.0/24 [110/10] is directly connected, eth1, 00:00:08
C>* 10.0.1.0/24 is directly connected, eth1
O   10.0.7.0/24 [110/10] is directly connected, eth2, 00:00:08
C>* 10.0.7.0/24 is directly connected, eth2
C>* 127.0.0.0/24 is directly connected, lo0
O>* 127.0.0.1/32 [110/10] is directly connected, lo0, 00:00:08

If you ping the server node from the pc node, you will get the ping reply and if you check the table again, router2 should send every packet
with the destination address for the 10.0.4.0/24 subnet via router 10.0.7.2 (router7). You can turn the router7 off by
right clicking on the router7 node and selecting Stop. Now the pc node will not be able to ping the server node until routes are changed
or router7 starts again.

You can also check every route status in the vtysh shell with the show ip rip status command.

Last modified 3 years ago Last modified on Dec 2, 2013 1:30:38 PM

Attachments (4)

Download all attachments as: .zip