1、这是网络的拓扑,是10.10.10.0/24的网络,网上的都是172.16.1.0/24的网络
2、先配置两台电脑,电脑的最好配了,这是NetAdmin 端的配置
3、这是H1端的 配置
4、开始配置路由器,路由器用con线进去,因为是都加了锁的,只能从电脑进去配置
5、路由配置:Router>enRouter#conf tRouter(config)#ho HQHQ(config)#enable secret classHQ(config)#lin vty 0 4HQ(config-line)#password ciscoHQ(config-line)#loginHQ(config)#lin co 0HQ(config-line)#password ciscoHQ(config-line)#loginHQ(config)#banner motd #Unauthorized access is prohibited#HQ(config-if)#int f0/0HQ(config-if)#ip add 10.10.10.1 255.255.255.192HQ(config-if)#no shHQ(config-if)#description NetAdminHQ(config-if)#int f0/1HQ(config-if)#ip add 10.10.10.65 255.255.255.248Router(config-if)#no shHQ(config-if)#description H1HQ(config)#exi
6、交换机的配置,吧con线撤掉,连接到交换机上
7、交换机配置:Switch(config)ho S2S2(config)#enable secret classS2(config像粜杵泳)#lin vty 0 4S2(config-line)#password ciscoS2(config-line)#loginS2(config)#lin co 0S2(config-line)#password ciscoS2(config-line)#loginS2(config)#banner motd #Unauthorized access is prohibited#S2(config)#int v 1S2(config-if)#ip add 10.10.10.2 255.255.255.192S2(config-if)#no shS2(config-if)#exiS2(config)#ip default-gateway 10.10.10.1
8、配置完毕,开始测试,全网通了就配置好了,说明配置都是正确的,如下图