cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
846
Views
0
Helpful
8
Replies

need to verify if ospf is redistributing static route to domain

mahesh18
Level 6
Level 6

Hi everyone,

 

I can see the OSPF running on 3750 is advertising the default route to the ospf but not static routes.

her eis config 

 


interface Vlan3500

ip address 10.0.12.62 255.255.255.252
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5
ip ospf cost 100
!
interface Vlan3600

ip address 10.0.12.66 255.255.255.252
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5
ip ospf cost 100


router ospf 2
router-id 10.0.24.10
log-adjacency-changes
redistribute connected metric 10 metric-type 1
redistribute static
network 10.0.12.62 0.0.0.0 area 0
network 10.0.12.66 0.0.0.0 area 0
default-information originate metric 10 metric-type 1

below are static routes

 

ip classless

ip route 192.42.158.32 255.255.255.224 192.42.158.186
ip route 192.42.158.64 255.255.255.224 192.42.158.186

 

Regards

Mahesh

2 Accepted Solutions

Accepted Solutions

Hi

Please correct me if I am understanding wrong the question, but you want to verify if the Cisco 3750 is advertising a default route to other L3 devices, is that correct?

 

If you dont have a static route on the 3750 a default route will not be advertised, unless you add the "always" word on default-information originate. Example:

 

default-information originate always metric 10 metric-type 1

 

It can be verified through:

show ip route

show ip route ospf

show ip ospf database

show ip ospf route

 

Now if you dont want to use "always" you have to create a default static route. 

 

Hope it is useful.

:-)

 

 




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

View solution in original post

Harold Ritter
Level 12
Level 12

Hi Mahesh,

 

OSPF only redistribute the classfull prefixes by default. please confgure the "subnets" keyword on the "redistribute connected" and "redistribute static".

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

8 Replies 8

Hi

Please correct me if I am understanding wrong the question, but you want to verify if the Cisco 3750 is advertising a default route to other L3 devices, is that correct?

 

If you dont have a static route on the 3750 a default route will not be advertised, unless you add the "always" word on default-information originate. Example:

 

default-information originate always metric 10 metric-type 1

 

It can be verified through:

show ip route

show ip route ospf

show ip ospf database

show ip ospf route

 

Now if you dont want to use "always" you have to create a default static route. 

 

Hope it is useful.

:-)

 

 




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Hi,

 

No I want to verify if OSPF is advertising the static route to L3 devices.

It is already advertising the default route to other L3 devices.

 

Regards

Mahesh

 

 

 

Harold Ritter
Level 12
Level 12

Hi Mahesh,

 

OSPF only redistribute the classfull prefixes by default. please confgure the "subnets" keyword on the "redistribute connected" and "redistribute static".

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Hi Harlod,

 

I do not want to add the subnet keyword to the redistribute connected routes for now as this switch

is already advertising the default route.

 

But we need to do some changes in the current environment for that I need this switch to advertise the

static routes to other L3 devices.

 

Once I add the subnet keyword with "redistribute static subnet "

then it will start advertising the static routes?

it should not cause any outages right as it is already advertising the default route?

 

Regards

Mahesh

Hi Mahesh,

 

>Once I add the subnet keyword with "redistribute static subnet "

>then it will start advertising the static routes?

 

Correct.

 

>it should not cause any outages right as it is already advertising the default route?

 

Correct.

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

one last thing as nei device is non cisco router so without subnet keyword should not it learn route with

default subnet mask  /24 of class 3 network?

Hi Mahesh,

 

The "subnets" keyword is only relevant on the originating router, so it doesn't really matter what the other router is, but yes, if the static route is a class A with a mask of 255.0.0.0 or a class B with a mask of 255.255.0.0 or a class C with a mask of 255.255.255.0 then the route should be redistributed. Otherwise, the static routes will not be redistributed unless you specify the said keyword.

 

Regards,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Many thanks to everyone for answering the questions.

Review Cisco Networking for a $25 gift card