NAT Extendable on Cisco IOS
Network Address Translation (NAT) is used to translate internal IPv4 addresses, which are typically private IPs to external IP addresses, typically public addresses. However, when there are two or more ISPs that serve a particular network, you may want to translate a private address to multiple public addresses.
This can be achieved using the NAT extendable feature. This feature is configured using the following commands with the
R1(config)#ip nat inside source static 192.168.1.1 22.214.171.124 extendable R1(config)#ip nat inside source static 192.168.1.1 126.96.36.199 extendable
The above configuration allows the 192.168.1.1 address to be translated to two different outside addresses.
If the extendable key word is not used, the IOS will respond with an error:
R1(config)#ip nat inside source static 192.168.1.1 188.8.131.52 R1(config)#ip nat inside source static 192.168.1.1 184.108.40.206 % 192.168.1.1 already mapped (192.168.1.1 -> 220.127.116.11)
The purpose of the
extendible keyword here is to allow multiple OUTSIDE to INSIDE NAT translations to take place to the same inside host address. This is useful because users on the Internet can be routed via either ISP to reach that host.
However, having the host reach the Internet via two different ISPs is not a problem that the
extendible keyword is used to solve. If you want to achieve this, for redundancy for example, there are other ways to do it such as SD-WAN, Equal-cost Multi-path routing , or EtherChannel for example.