I setup a simple frame relay config between two routers in a lab and I can't get OSPF routes to populate the routing tables on each router. Everything worked fine when I wasn't using subinterfaces. The DCE side says up and up for both the physical interface and the subinerface however on the DTE side only the physical interface says up and up. The subinterface on that side says down and down. I tried adding frame-relay map commands on both sides but that didn't help. Each router and their connected switch shows up on one another's 'show cdp neighbor' so layer two seems to be working fine so I don't understand why the serial0.1 subinterface says down and down. I included the interface configs below. Any help would be appreciated. Thanks.
no ip address
clock rate 64000
frame-relay intf-type dce
interface Serial1/0.1 point-to-point
ip address 192.168.126.162 255.255.255.252
frame-relay interface-dlci 162
no ip address
interface Serial0.1 point-to-point
ip address 192.168.126.161 255.255.255.252
ip ospf network broadcast
frame-relay interface-dlci 161
I would suggest at least 2 changes in the config in this post:
- remove the no keepalive under interface serial0. You needed that for your test environment. You do not want it in production.
- I would remove the ip ospf network broadcast from the subinterface. The subinterface defaults to OSPF network point-to-point which will work well. The network broadcast would work but it introduces more overhead into what OSPF must do (check for DR/BDR, elect DR/BDR, the point to point knows there will be only a single neighbor while the broadcast maintains the possibility of other neighbors).
While some people do ip unnumbered in a hub and spoke with many spokes, my experience is that it is more common to configure IP addresses and subnets on each link.