NAT devices own Inside Global (IG) and Outside Local (OL) addresses and they are responsible for responding to any ARP requests
directed to these addresses. When the IG/OL address subnet matches with the local interface subnet, NAT installs an IP alias
and an ARP entry, in this case the device uses local-proxy-arp to respond to ARP requests.
The no-alias feature responds to ARP requests of all the translated IPs from a given NAT pool address range if the address range is in
same subnet of the outside interface.
If no-alias is enabled on an interface with NAT configuration, the outside interface will not respond to any ARP requests
in its subnet. When no-alias is disabled, the ARP requests for IPs in same subnet as of outside interface are served.
Note
|
When you downgrade to any older releases that does not support this feature, configurations with no-alias option may be deleted.
|
This example shows the interface information:
switch# configure terminal
switch(config)# show ip int b
IP Interface Status for VRF "default"(1)
Interface IP Address Interface Status
Lo0 100.1.1.1 protocol-up/link-up/admin-up
Eth1/1 7.7.7.1 protocol-up/link-up/admin-up
Eth1/3 8.8.8.1 protocol-up/link-up/admin-up
This example shows the running configuration:
switch# configure terminal
switch(config)# show running-config nat
!Command: show running-config nat
!Running configuration last done at: Thu Aug 23 11:57:01 2018
!Time: Thu Aug 23 11:58:13 2018
version 9.2(2) Bios:version 07.64
feature nat
interface Ethernet1/1
ip nat inside
interface Ethernet1/3
ip nat outside
switch(config)#
This example shows how to configure alias:
switch# configure terminal
switch(config)# ip nat inside source static 1.1.1.2 8.8.8.3
switch(config)# ip nat outside source static 2.2.2.1 7.7.7.3
switch(config)# show ip nat-alias
Alias Information for Context: default
Address Interface
7.7.7.2 Ethernet1/1
8.8.8.2 Ethernet1/3
switch(config)#
This example shows the output of show ip nat-alias. By default, alias is enabled.
switch# configure terminal
switch(config)# show ip nat-alias
Alias Information for Context: default
Address Interface
7.7.7.2 Ethernet1/1
8.8.8.2 Ethernet1/3
switch(config)#
This example shows how to disable alias:
switch# configure terminal
switch(config)# ip nat inside source static 1.1.1.2 8.8.8.3 no-alias
switch(config)# ip nat outside source static 2.2.2.1 7.7.7.3 no-alias
switch(config)# show ip nat-alias
Alias Information for Context: default
Address Interface
7.7.7.2 Ethernet1/1
8.8.8.2 Ethernet1/3
switch(config)#
** None of the entry got appended as alias is disabled for above CLIs.
switch(config)#
This example shows how to clear alias. Use clear ip nat-alias to remove an entry from alias list. You can remove a single entry by specifying the IP address or remove all the alias entries.
switch# configure terminal
switch(config)# clear ip nat-alias address 7.7.7.2
switch(config)# show ip nat-alias
Alias Information for Context: default
Address Interface
8.8.8.2 Ethernet1/3
switch(config)#
switch(config)# clear ip nat-alias all
switch(config)# show ip nat-alias
switch(config)#