01-10-2018 05:20 PM - edited 03-08-2019 01:22 PM
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
Solved! Go to Solution.
01-10-2018 07:24 PM - edited 01-10-2018 07:29 PM
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.
:-)
01-10-2018 07:40 PM
Hi Mahesh,
OSPF only redistribute the classfull prefixes by default. please confgure the "subnets" keyword on the "redistribute connected" and "redistribute static".
Regards,
01-10-2018 07:24 PM - edited 01-10-2018 07:29 PM
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.
:-)
01-10-2018 07:57 PM - edited 01-10-2018 07:58 PM
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
01-10-2018 07:40 PM
Hi Mahesh,
OSPF only redistribute the classfull prefixes by default. please confgure the "subnets" keyword on the "redistribute connected" and "redistribute static".
Regards,
01-10-2018 08:04 PM
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
01-10-2018 08:07 PM
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,
01-10-2018 08:12 PM
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?
01-10-2018 08:31 PM
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,
02-27-2018 08:47 PM
Many thanks to everyone for answering the questions.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide