Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

Looking for guidence on OSPF and default route

I have this config and it works great.....

router ospf 1
 router-id 1.1.1.190
 network 10.200.200.0 255.255.255.0 area 0
 network 1.1.1.190 255.255.255.255 area 0
 network 192.168.36.0 255.255.255.0 area 0
 log-adj-changes detail
 redistribute static subnets

route external 0.0.0.0 0.0.0.0 1.1.1.189 1

 

Now I want to advertize the default route to the down stream routers and switches
in OSPF area 0

Would way would be best?

router ospf 1
 router-id 1.1.1.190
 network 10.200.200.0 255.255.255.0 area 0
 network 1.1.1.190 255.255.255.255 area 0
 network 192.168.36.0 255.255.255.0 area 0
 log-adj-changes detail
 redistribute static subnets
 Default-information originate always metric 30 metric-type 1


or

router ospf 1
 router-id 1.1.1.190
 network 10.200.200.0 255.255.255.0 area 0
 network 1.1.1.190 255.255.255.255 area 0
 network 192.168.36.0 255.255.255.0 area 0
 log-adj-changes detail
 redistribute static subnets
 Default-information originate always route-map INTERNET


route-map INTERNET permit 10
 match ip address 1
 set metric 30
 set metric-type type-1

access-list 1 standard permit 10.0.0.0 255.255.255.0
access-list 1 standard permit 192.168.0.0 255.255.0.0

 

 

Thanks,

Mike

 

1 REPLY
Cisco Employee

Hi,Although the default is

Hi,

Although the default is Always but if you want to restrict the devices where this will be published , you can use the route map with the Default Information command.

Thanks and Regards,

Vibhor Amrodia

69
Views
0
Helpful
1
Replies