Getting Internet in GNS3 using a Cisco Router

Nerd Cafe

Topology

Your topology consists of:

  • R1 (Router)

    • f0/0 (Connected to NAT1) - Acts as a DHCP client (gets IP from NAT)

    • f1/0 (Connected to PC1) - 192.168.0.1/24

  • PC1

    • e0 (Connected to R1's f1/0) - 192.168.0.100/24

  • NAT1 (Internet Simulation)

Step 1: Configure the NAT Interface (f0/0)

  • Enter the router's configuration mode:

R1#configure terminal
  • Configure f0/0 to get an IP via DHCP:

R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address dhcp
R1(config-if)#no shutdown
R1(config-if)#

Step 2: Configure LAN Interface (f1/0)

  • Assign an IP to f1/0 and enable it:

Step 3: Configure NAT for Internet Access

  • Enable NAT on f0/0 (outside) and f1/0 (inside):

  • Create an ACL to allow local network traffic:

  • Configure NAT overload:

  • Verify NAT:

Step 4: Configure and Test PC1

  • Assign an IP and default gateway to PC1:

  • Test connectivity to R1:

  • Test internet connectivity:

Step 5: Configure and Verify Routing

  • Ensure R1 has a default route to the internet:

Step 6: Test and Troubleshoot

  • Check if NAT is translating:

Keywords

GNS3, Cisco Router, Internet Access, NAT Configuration, DHCP Client, FastEthernet, IP Address, Default Gateway, Routing, ACL, NAT Overload, Ping Test, Network Topology, Packet Forwarding, Troubleshooting, Static Route, Dynamic IP, PC Connectivity, NAT Translations, Show Commands, سیسکو

Last updated