You are on page 1of 3

Basic OSPF lab tutorial 64

By vanikad

OSPF - Open Shortest Path First, a wide used routing protocol. It uses link-state algorithms to send routing information to all nodes in an internetwork by calculating the shortest path to each node based on a topography of the Internet constructed by each node. In this hub we will describe a lab tutorial of Single area OSPF configuration. For lab we used Cisco routers in GNS3. Our topology will consist of 3 routers 3700 and one ethernet switch to get a multi access network. Topology is shown bellow.

In picture is shown that multiaccess network is formed of R1, R2, R3 and a ethernet switch. Another network consist of R3 and R4 being connected with a serial cable.

The first we need to configure interfaces for our Routers


?

R1 interface Loopback0 ip address 10.10.10.1 255.255.255.0 interface FastEthernet0/0 ip address 192.168.0.1 255.255.255.0 R2 interface Loopback0 ip address 10.10.20.1 255.255.255.0 interface FastEthernet0/0 ip address 192.168.0.2 255.255.255.0

R3 interface Loopback0 ip address 10.10.30.1 255.255.255.0 interface FastEthernet0/0 ip address 192.168.0.3 255.255.255.0 interface Serial0/0 ip address 172.16.0.1 255.255.255.252 R4 interface Loopback0 ip address 10.10.40.1 255.255.255.0 interface Serial0/0 ip address 172.16.0.2 255.255.255.252

Next will configure OSPF on Routers


?

R1 router ospf 1 router-id 10.1.1.1 network 10.10.10.0 0.0.0.255 area 0 network 192.168.0.0 0.0.0.255 area 0 R2 router ospf 1 router-id 10.2.2.2 network 10.10.20.0 0.0.0.255 area 0 network 192.168.0.0 0.0.0.255 area 0 R3 router ospf 1 router-id 10.3.3.3 network 10.10.30.0 0.0.0.255 area 0 network 172.16.0.0 0.0.0.3 area 0 network 192.168.0.0 0.0.0.255 area 0 R4 router ospf 1 router-id 10.4.4.4 network 10.10.40.0 0.0.0.255 area 0 network 172.16.0.0 0.0.0.3 area 0

That's all you have to do to set Routing Protocol OSPF to make your network work.

You might also like