Connect the GNS3 Cisco router to the author’s home network and allow it to access the Internet.

Fig. Example of link to the host OS
Fig. Example of link to the host OS

Configuration Procedure

  1. Connecting R1 Fa0/0 on GNS3 to home network
  2. DHCP Client Configuration
  3. Verifying communication between R1 and the Internet

1.Connecting R1 Fa0/0 on GNS3 to home network

Connect the R1 Fa0/0 on GNS3 to your home network. To do this, place a “Cloud” object in the workspace and set up a link between the “Cloud” and the R1 Fa0/0. The network adapter that the host connects to the home network is “Ethernet”. Therefore, the link between the “Cloud” and R1 Fa0/0 is set up with “Ethernet”.

The R1 Fa0/0 is now bridged to the home network through the host.

2.DHCP Client Configuration

To enable R1 Fa0/0 to be assigned an IP address via DHCP from the BB router. enter the following command from the R1 console.


interface FastEthernet0/0
 ip address dhcp 
 no shutdown

sYou can use the show dhcp lease command to verify IP addresses and other information assigned by DHCP. It also registers the default route in the routing table. The next hop of the default route is the IP address of the default gateway as notified by DHCP.


R1#show dhcp lease
Temp IP addr:  for peer on Interface: FastEthernet0/0
Temp  sub net mask:
   DHCP Lease server:, state: 3 Bound
   DHCP transaction id: 333
   Lease: 86400 secs,  Renewal: 43200 secs,  Rebind: 75600 secs
Temp default-gateway addr:
   Next timer fires after: 11:56:51
   Retry count: 0   Client-ID: cisco-cc01.05ac.0000-Fa0/0
   Client-ID hex dump: 636973636F2D636330312E303561632E
   Hostname: R1
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is to network

C is directly connected, FastEthernet0/0
S* [254/0] via

3.Verifying communication between R1 and the Internet

Verify the communication between R1 and the Internet: ping Google’s Public DNS server at IP address and you’ll get a response, indicating that you have a connection to the Internet.



Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/10/12 ms