cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
325
Views
0
Helpful
2
Replies

ospf announcing nat network

daniel f.
Level 1
Level 1

hello,

i have a question about how to not distribute a nat range when real interface is down.

interface Loopback0
 ip address 10.0.0.3 255.255.255.0
 ip ospf network point-to-point

interface Vlan1
 ip address 192.168.5.3 255.255.255.0
 ip nat inside

interface Vlan2
 ip address 172.16.0.5 255.255.255.252
 ip nat inside
 

ip nat inside source static network 192.168.5.0 10.0.0.0 /24

ip route 192.168.5.0 255.255.255.0 172.16.0.6 1

router ospf 1
 area 1 range 10.0.0.0 255.255.255.0
 redistribute connected metric 2000 subnets route-map 2ospf

route-map 2ospf permit 10
 match ip address prefix-list Connected

ip prefix-list Connected seq 5 permit 10.0.0.0/24
!

when interface vlan1 AND interface vlan2 are down. then 10.0.0.0/24 is still being redistributed.

but i dont want that, what would be a good solution?

2 Replies 2

Erico Verissimo
Level 1
Level 1

Hi, Daniel.

I think the EEM scripting will be a good solution for you.

design1balu1
Level 1
Level 1

I think the EEM scripting will be a good solution for you.

Review Cisco Networking products for a $25 gift card