OSPF and Forcing a Subnet

Jon Lewis jlewis at lewis.org
Sat Jul 20 19:52:00 UTC 2013


You don't have a route for 172.16/16 in the config below, so ospf will not 
advertise it.  You do have a route for a subnet of 172.16/16, so either 
use summary-address 172.16.0.0 255.255.0.0 or nail up a static route for 
172.16.0.0 255.255.0.0 to null0 and redistribute static subnets, and then 
ospf can redistribute that static route.

On Sun, 21 Jul 2013, Shahab Vahabzadeh wrote:

> Dear Friends,
> I have an OSPF over GRE configuration sending you below in which I have
> problem.
> I want to force OSPF to advertise 172.16/16 range without checking anything.
> And as you see I have an static route for it in routing table but again
> OSPF do not advertise it, only it advertise when I put one /32 subnet on
> loopback interface.
> even I put "redistribute static subnets" command with/without route-map but
> again do not work.
> I think because of having my providers address range in my static routes,
> routers and ospf confused when wanna advertise routers.
>
>
> interface Tunnel0
>>  ip address 128.140.40.2 255.255.255.252
>>  tunnel source 10.20.76.2
>>  tunnel destination 10.20.75.2
>> interface GigabitEthernet0/0
>>  description UPSTREAM - INTRANET
>>  ip address 10.20.76.2 255.255.255.248
>> interface GigabitEthernet0/1
>>  description CONNECTED ROUTER
>>  ip address 10.20.76.9 255.255.255.248
>>
>> router ospf 10
>>  log-adjacency-changes
>>  area 10 range 172.16.0.0 255.255.0.0
>>  passive-interface default
>>  no passive-interface Tunnel0
>>  network 172.16.0.0 0.0.255.255 area 10
>>  network 128.140.40.0 0.0.0.3 area 0
>> ip route 0.0.0.0 0.0.0.0 10.20.76.1
>> ip route 172.16.0.0 255.255.224.0 10.20.76.12
>> ip route 10.20.76.0 255.255.255.0 10.20.76.12
>> ip route 10.20.77.0 255.255.255.0 10.20.76.12
>
>
>
> Thanks
>
> -- 
> Regards,
> Shahab Vahabzadeh, Network Engineer and System Administrator
>
> Cell Phone: +1 (415) 871 0742
> PGP Key Fingerprint = 8E34 B335 D702 0CA7 5A81  C2EE 76A2 46C2 5367 BF90
>

----------------------------------------------------------------------
  Jon Lewis, MCP :)           |  I route
                              |  therefore you are
_________ http://www.lewis.org/~jlewis/pgp for PGP public key_________




More information about the NANOG mailing list