Overview
Configure NAT/PAT for Internet connectivity, apply ACLs for security, and verify translations.
Prerequisites
Understanding of public vs private IP addressing, basic ACL knowledge
Topology
Enterprise router connecting internal network (10.0.0.0/8) to ISP router (Internet). Single public IP for PAT.
NAT
PAT
ACL
Security
Lab Steps
Mark LAN-facing interface as 'inside' and WAN interface as 'outside'.
Checklist:
- Inside interface configured
- Outside interface configured
Configurations
PAT Configuration
EdgeRouter
EdgeRoutercisco
interface g0/0
ip address 10.0.1.1 255.255.255.0
ip nat inside
!
interface g0/1
ip address dhcp
ip nat outside
!
access-list 1 permit 10.0.0.0 0.255.255.255
!
ip nat inside source list 1 interface g0/1 overloadSecurity ACL
EdgeRouter
EdgeRoutercisco
ip access-list extended INTERNET_FILTER
permit tcp 10.0.0.0 0.255.255.255 any eq 80
permit tcp 10.0.0.0 0.255.255.255 any eq 443
permit icmp 10.0.0.0 0.255.255.255 any echo
deny ip any any
!
interface g0/0
ip access-group INTERNET_FILTER inVerification
Verify NAT translations
Commandscisco
show ip nat translations
show ip nat statisticsExpected Output:
Outputcisco
Pro Inside global Inside local Outside local Outside global
tcp 203.0.113.1:1025 10.0.1.50:52341 8.8.8.8:80 8.8.8.8:80