Command
IP NAT Enable
Use
This command is used to enable NAT on an interface. This command figures out whether the interface is inside or outside based on the source IP addresses of packets.
IP NAT enable can not translate local router traffic.
Syntax
Router(config-if)#ip bandwidth-percent eigrp <AS> <percent>
Example
In this example we will configure NAT and configure the interfaces to use IP NAT Enable
First we configure NAT and the interfaces.
R2(config)#access-list 25 permit 10.1.1.0 0.0.0.255 R2(config)#ip nat inside source list 25 interface fa1/0 overload R2(config)#int fa0/0 *Mar 1 15:33:14.080: %LINEPROTO-5-UPDOWN: Line protocol on Interface NVI0, changed state to up R2(config)#int fa0/0 R2(config-if)#ip nat enable R2(config-if)#int fa1/0 R2(config-if)#ip nat enable
Here we verify with a ping that routing has been disabled on all routers.
R1(config-if)#do ping 10.2.2.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.2.2.3, timeout is 2 seconds: !!!!!
Checking show ip nat translation we see NAT has translated the packet.
R2(config-if)#do show ip nat trans Pro Inside global Inside local Outside local Outside global icmp 10.2.2.2:11 10.1.1.1:11 10.2.2.3:11 10.2.2.3:11