DYNAMIC NAT
interface xxx(inside)
ip nat inside
interface XXX(outside)
ip nat ouside
access-list 1 permit X.X.X.X(LOCAL IP ADDRESS)
ip nat pool ant x.x.x.x(destination) netmask 255.255.255.0
ip nat inside source list 1 pool ant
show ip nat translations
---------------------------------------------------------------------------------
CMD
int gig 0
ip nat inside
int serial 0
ip nat outside
access-list 5 permit 192.168.0.0 0.0.0.255
ip nat pool ant 1.1.1.2 1.1.1.2 netmask 255.255.255.0
ip nat inside source list 5 pool ant
-----------------------------------------------------------------------------------
CONFIGURATION
Router#SHO RUN
Building configuration...
Current configuration : 1377 bytes
!
version 15.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
ip dhcp excluded-address 10.10.10.1
!
ip dhcp pool ccp-pool
network 10.10.10.0 255.255.255.248
default-router 10.10.10.1
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid C819HGW-PT-K9 sn FTX1806BFM3
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0
ip address 192.168.0.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface FastEthernet0
!
interface FastEthernet1
!
interface FastEthernet2
!
interface FastEthernet3
!
interface Serial0
ip address 1.1.1.2 255.255.255.0
ip nat outside
!
interface Wlan-GigabitEthernet0
description Internal switch interface connecting to the embedded AP
!
interface wlan-ap0
description Service module interface to manage the embedded AP
ip unnumbered Vlan1
!
interface Cellular0
no ip address
shutdown
!
interface Vlan1
description $ETH-SW-LAUNCH$$INTF-INFO-HWIC 4ESW$
ip address 10.10.10.1 255.255.255.248
!
ip nat pool ant 1.1.1.2 1.1.1.2 netmask 255.255.255.0
ip nat inside source list 5 pool ant
ip classless
ip route 0.0.0.0 0.0.0.0 Serial0
!
ip flow-export version 9
!
!
access-list 23 permit 10.10.10.0 0.0.0.7
access-list 5 permit 192.168.0.0 0.0.0.255
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
Router#
BY ANTONY MELVIN