To the Internet: NAT + DNS + web

Practise this lab in the free NanoTech-kw Network Lab - a Cisco-style simulator that runs in your browser, with hints, an event log and automatic checking.

â–¶ Open the free Network Lab

Devices: NET1, R1, SW1, PC1, LAP1

Your task

NET1 is the Internet (its link to you is 203.0.113.1). Task on R1:
 ip route 0.0.0.0 0.0.0.0 203.0.113.1
 access-list 1 permit 192.168.1.0 0.0.0.255
 ip nat inside source list 1 interface g0/0 overload
 g0/1: ip nat inside · g0/0: ip nat outside
Then from PC1: ping 8.8.8.8 and http www.example.com

Step by step

  1. Add a default route on R1 to 203.0.113.1.
  2. Configure PAT (access-list 1 + ip nat inside/outside + overload).
  3. From PC1: ping 8.8.8.8
  4. From PC1: http www.example.com (DNS 8.8.8.8 resolves it).

▶ Start this lab in the browser📖 Command guide🧭 Watch how DNS works

More labs

Two PCs on a switchRouter between two networksVLANs on a switchStatic routingInter-VLAN routing (router-on-a-stick)Layer-3 switch with SVIsDHCP server on a routerDHCP server + relay + DNSOSPF between three routersRIP v2NAT/PAT to the InternetACL: protect a serverWireless access pointIPv6 static routingEIGRP between three routersProject: build a small office networkHuawei switch VLANs + Cisco routerOSPF between Huawei and Cisco routersSpanning Tree: who blocks?EtherChannel (LACP)HSRP: a gateway that never diesPort securitySecure remote access (SSH)IPv6 SLAAC + OSPFv3🔧 Fix 1: PC can't leave its network🔧 Fix 2: same VLAN, no ping🔧 Fix 3: one-way routing🔧 Fix 4: inter-VLAN broken🔧 Fix 5: odd subnet problem