Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save noslin005/4aa0da1a3591a11faea2433fde78e2e6 to your computer and use it in GitHub Desktop.
Save noslin005/4aa0da1a3591a11faea2433fde78e2e6 to your computer and use it in GitHub Desktop.
GNS3: Configuring NAT for connecting to the internet
On the router (R1) connected to NAT device:
R1(config)#access-list 10 permit any
R1(config)#ip nat inside source list 10 interface FastEthernet 1/0 overload
R1(config)#interface FastEthernet1/0
R1(config-if)#description "Connected to NAT"
R1(config-if)#ip nat outside
R1(config)#interface FastEthernet0/0
R1(config-if)#description "Connected to LAN"
R1(config-if)#ip nat inside
R1(config)#interface FastEthernet0/1
R1(config-if)#description "Connected to LAN"
R1(config-if)#ip nat inside
Configure DNS on Cisco IOS
R1(config)#ip domain-lookup
R1(config)#ip name-server 8.8.8.8 8.8.4.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment