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

Change dynamic IP in NATs

Posted By:

carlos.velasco@nimastelecom.com

Posted Date:

Jan 15, 2009

Category:

Routing

Version:

1

License:

Cisco-Style BSD

Summary:

Monitors track object and changes all static NATs with route map to the new IP address

Script Modified Date:

Jan 15, 2009

Cisco IOS Version tested:

12.4(22)T

Cisco Products Tested:

877

Environment Variables used:

_natdynchg_interface _natdynchg_track_number

Rating Count:

0

Average Rating:

0

File Size:

2.2 KB

Script Info URL:

This script is triggered but a change up in object tracked, should be  a change up in ip routing tracked object. It then obtain the new IP  address from the specified interface and then changes all static NATs  with route-maps to the new IP address. Example: ip nat inside source  static tcp 10.10.10.1 30000 [NEW-IPADDRESS] 30000 route-map NONATVPN  extendable The NAT entry is copied exactly as in the running  configuration but the new IP address that is obtained from interface.  This is a workaround because IOS doesn't support route-map applied to  static NATs with interface.


366
Views
0
Helpful
0
Comments