12-21-2015 02:41 AM - edited 03-05-2019 02:58 AM
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?
12-21-2015 05:37 AM
Hi, Daniel.
I think the EEM scripting will be a good solution for you.
12-21-2015 06:49 AM
I think the EEM scripting will be a good solution for you.
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