Connect a GNS analog router to the Internet
1. Environment: XP system, GNS3.0.7.2 integrated SecureCRT (or SecureCRT is not available)
Preparation: add the Loopback adapter virtual network card under the XP system, an ADSL dial-up connection
2. Network Connection Configuration:
7. Select R1, right-click, and click Start. Then, right-click R1, click "Console" to display the SecureCRT configuration Console integrated with GNS (if SecureCRT is not integrated, a Console with the same dos will appear ):
3. Open the run and enter services. msc to display the following interface:
Find the following services and make sure these services are started; otherwise, set them to started.
DHCP Client is set to started
Set DNS Client to started
Windows Firewall/Internet Connection Sharing (ICS) is enabled.
4. Open the network connection, double-click "Broadband connection" to "Anyone using this computer" and fill in the password. Then, select "properties" and select "advanced" for setting:
After setting, view the network connection changes:
5. After completing the preceding steps, open GNS3.0.7.2 to build the topology as follows:
Configure Cloud "Loopback", right-click "Loopback" and select "configuration", and perform the following operations in sequence:
Connect the device, click the "add connection" button in the GNS toolbar, connect the device with the mouse, and then press the "show interface names" button, for example:
6. Right-click R1 and choose start from the shortcut menu. Then, right-click R1, click "Console" to display the SecureCRT configuration Console integrated with GNS (if SecureCRT is not integrated, a Console with the same dos will appear ):
7. Configure R1 in SecureCRT. The command is as follows:
Router> en
Router # conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router (config) # host R1
R1 (config) # enable pass cisco
R1 (config) # line con 0
R1 (config-line) # pass cisco
R1 (config-line) # login
R1 (config-line) # logg synchronous
R1 (config-line) # no exec-timeout
R1 (config-line) # line vty 0 15
R1 (config-line) # pass cisco
R1 (config-line) # login
R1 (config-line) # logg syn
R1 (config-line) # no exec-timeout
R1 (config-line) # exit
R1 (config) # int fa0/0
R1 (config-if) # ip add 192.168.0.2 255.255.255.0
R1 (config-if) # no shutdown
R1 (config-if )#
* Mar 1 00:05:53. 659: % LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
* Mar 1 00:05:54. 659: % LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R1 (config-if) # end
R1 #
* Mar 1 00:07:06. 071: % SYS-5-CONFIG_ I: Configured from console by console
R1 # ping 192.168.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 24/41/48 MS
R1 #
8. Failed to test ping Internet:
R1 # ping www.baidu.com
Translating "www.baidu.com"... domain server (255.255.255.255)
% Unrecognized host or address, or protocol not running.
R1 # ping google.com
Translating "google.com"... domain server (255.255.255.255)
% Unrecognized host or address, or protocol not running.
R1 #
9. Add a default route
R1 # conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1 (config) # ip route 0.0.0.0 0.0.0.0 192.168.0.1
R1 (config) # exit
10. The test is successful:
R1 # ping www.baidu.com
Translating "www.baidu.com"... domain server (255.255.255.255) [OK]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 220.181.6.18, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 72/96/120 MS
R1 # ping www.google.com
Translating "www.google.com"... domain server (255.255.255.255) [OK]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 66.249.89.104, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 72/105/144 MS