cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
297
Views
0
Helpful
1
Replies

Looking for guidence on OSPF and default route

burleyman
Level 8
Level 8

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 1

Vibhor Amrodia
Cisco Employee
Cisco Employee

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

Review Cisco Networking for a $25 gift card