Search My Techie Guy

Wednesday, August 12, 2015

Quick Check - Simple CISCO NAT Configuration

Refer to the network layout below:



Configuration: 
Note:- Replace the private IPs at the p2p with the public IPs supplied by your ISP.
           Replace the public dns 8.8.8.8 with your ISP DNS(s)

interface GigabitEthernet0/0
 description Connects-to-ISP-router
 ip address 192.168.201.2 255.255.255.252
 ip nat outside
 ip virtual-reassembly in
end

!
interface GigabitEthernet0/1
 description Connects-to-LAN
 ip address 192.168.1.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly in
 duplex auto
 speed auto
end

interface Loopback1
 ip address 192.168.1.200 255.255.255.255

ip route 0.0.0.0 0.0.0.0 192.168.201.1
ip nat inside source list my-access-list interface GigabitEthernet0/0 overload

ip access-list extended my-access-list
 permit ip any any

ip dhcp pool my-office-dhcp
 network 192.168.1.0 255.255.255.0
 default-router 192.168.1.1 
 dns-server 8.8.8.8
 lease 7

If you have any questions! Please leave a comment.

No comments: