现在先启动 0.虚拟服务Dynamips-XP&2003.cmd,然后启动 5_1.控制台NA交换版.cmd 在==>下启动PC1, 命令是start PC1,然后用SecureCRT登录到PC1上,(连接localhost,端口号3006,取名字为PC1),登录后在提示下 Would you like to enter the initial configuration dialog? [yes/no]: 输入no PC1配置清单: Router> en Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# hostname PC1 PC1(config)# int fa0/0 PC1(config-if)# ip add 192.168.1.1 255.255.255.0 PC1(config-if)# no shut PC1(config-if)# speed 100 PC1(config-if)# duplex full PC1(config-if)# exit
在==>下启动PC2, 命令是start PC2,然后用SecureCRT登录到PC2上,(连接localhost,端口号3007,取名字为PC2),登录后在提示下 Would you like to enter the initial configuration dialog? [yes/no]: 输入no PC2配置清单: Router> en Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# hostname PC2 PC2(config)# int fa0/0 PC2(config-if)# ip add 192.168.1.2 255.255.255.0 PC2(config-if)# no shut PC2(config-if)# speed 100 PC2(config-if)# duplex full PC2(config-if)# exit
在==>下启动PC3, 命令是start PC3,然后用SecureCRT登录到PC3上,(连接localhost,端口号3008,取名字为PC3),登录后在提示下 Would you like to enter the initial configuration dialog? [yes/no]: 输入no PC3配置清单: Router> en Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# hostname PC3 PC3(config)# int fa0/1 PC3(config-if)# ip add 192.168.1.3 255.255.255.0 PC3(config-if)# no shut PC3(config-if)# speed 100 PC3(config-if)# duplex full PC3(config-if)# exit
在==>下启动PC4, 命令是start PC4,然后用SecureCRT登录到PC4上,(连接localhost,端口号3009,取名字为PC4),登录后在提示下 Would you like to enter the initial configuration dialog? [yes/no]: 输入no PC4配置清单: Router> en Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# hostname PC4 PC4(config)# int fa0/1 PC4(config-if)# ip add 192.168.1.4 255.255.255.0 PC4(config-if)# no shut PC4(config-if)# speed 100 PC4(config-if)# duplex full PC4(config-if)# exit
在==>下启动SW1, 命令是start SW1,然后用SecureCRT登录到SW1上,(连接localhost,端口号3003,取名字为SW1),登录后在提示下 Would you like to enter the initial configuration dialog? [yes/no]: 输入no SW1启动完毕以后,就可以测试PC1,PC2,PC3,PC4是否是相互的ping通 PC1>en PC1#ping 192.168.1.2 可以通 PC1#ping 192.168.1.3 可以通 PC1#ping 192.168.1.4 可以通