不废话,直接开工!!
前提: 1 电脑有一块环回网卡.
2 电脑真实网卡可以上网
好,开始!!!
/*请按照顺序操作,否则某些服务启动不了*/
第一部分: 网卡配置
(1)真实网卡流量引给环回网卡.此时将提示环回网卡的ip地址为192.168.137.1 ,若没有提示则没必要再看后面步骤!
(2)流量引过来后, 环回网卡自动获取ip地址(虽然显示DHCP否).
第二部分:开启服务
(1)启动所有依赖服务
(2)启动下述三个服务
第三部分:配置GNS3
(1)添加cloud模块:
(2)配置R1:
R1#conf t
R1#conf terminal
Enter configuration commands, one perline. End with CNTL/Z.
R1(config)#int fa0/0
R1(config-if)#ip add 192.168.137.2255.255.255.0
R1(config-if)#no sh
R1(config-if)#
*Mar 1 00:00:59.871: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed stateto up
*Mar 1 00:01:00.871: %LINEPROTO-5-UPDOWN: Line protocol on InterfaceFastEthernet0/0, changed state to up
R1(config-if)#exit
R1(config)#ip domain-lookup
R1(config)#
R1(config)#ip name-server 192.168.137.1
R1(config)#ip route 0.0.0.0 0.0.0.0192.168.137.1
R1(config)#
R1(config)#
R1(config)#
R1#
*Mar 1 00:02:23.051: %SYS-5-CONFIG_I: Configured from console by console
R1#ping 114.114.114.114
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to114.114.114.114, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5),round-trip min/avg/max = 32/52/72 ms
R1#ping www.google.com
Translating"www.google.com"...domain server (192.168.137.1) [OK]
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to74.125.128.106, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5),round-trip min/avg/max = 64/77/96 ms
R1#
完!!