Sunday, May 20, 2012

Frame Relay with OSPF



Using a similar topology from previous Frame Relay lab, I created a OSPF environment . Frame Relay by default doesn't forward broadcast or multicast traffic. Adding the broadcast option at the end of frame map statements allows broadcast to be forwarded.

After configuring OSPF on all the routers, I can see with the show ip protocols command that adjacencies haven't formed yet.  The router ID can be verified here, for R1 it took the loopback address as the RID.

R1#show ip protocols
Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 1.1.1.1
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    1.1.1.1 0.0.0.0 area 0
  Routing Information Sources:
    Gateway         Distance      Last Update
  Distance: (default is 110)


Neighbors have not established adjacencies as I can see with the show ip ospf neighbor command.

R1#show ip ospf neighbor

R1#





R1 will need additional commands to make OSPF work because even though I set the PVC to broadcast, OSPF won't send hello packets because it knows it's on a NBMA network. Manually setting the neighbors with the neighbor command will get OSPF working.In a hub and spoke enviroment I want to make sure the hub router is the DR, this can be done by setting the ospf interfaces on the other routers to a priority zero. 


R2(config)#interface serial 0/0
R2(config-if)#ip ospf priority 0

R3(config)#interface serial 0/0
R3(config-if)#ip ospf priority 0


R1(config-router)#neighbor 172.12.123.2
R1(config-router)#neighbor 172.12.123.3
R1(config-router)#
*Mar  1 00:07:50.767: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on Serial0/0 from LOADING to FULL, Loading Done
R1(config-router)#
R1#
R1#show
*Mar  1 00:08:28.168: %SYS-5-CONFIG_I: Configured from console by console
R1#show
*Mar  1 00:08:30.768: %OSPF-5-ADJCHG: Process 1, Nbr 3.3.3.3 on Serial0/0 from LOADING to FULL, Loading Done


Here the two neighbors can be seen as DR/OTHER meaning they aren't DR or BDR and R1 is the only DR.

R1#show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           0   FULL/DROTHER    00:01:53    172.12.123.2    Serial0/0
3.3.3.3           0   FULL/DROTHER    00:01:43    172.12.123.3    Serial0/0


R3#show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
1.1.1.1           1   FULL/DR         00:01:39    172.12.123.1    Serial0/0

All routes are learned from LSAs that the DR sends when needed. The show ip route ospf displays the routes learned from OSPF. 

R1#show ip route ospf
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 172.12.123.2, 00:01:16, Serial0/0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 172.12.123.3, 00:01:16, Serial0/0
     10.0.0.0/24 is subnetted, 2 subnets
O       10.2.2.0 [110/65] via 172.12.123.3, 00:01:16, Serial0/0
O       10.1.1.0 [110/65] via 172.12.123.2, 00:01:16, Serial0/0


No comments:

Post a Comment