1.拓扑图
2.交换机配置
Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname nima
nima(config)#enable password 000000
nima(config)#interface vlan //配置交换机登录地址
nima(config)#interface vlan 1
nima(config-if)#ip address 192.168.1.1 255.255.255.0
nima(config-if)#no shutdown
nima(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
nima(config)#username nidaye password 123456
nima(config)#line vty 0 4
nima(config-line)#login local
nima(config-line)#exit
nima(config)#
3.路由器配置
001(config)#interface gigabitEthernet 0/0
001(config-if)#ip address 192.168.1.1 255.255.255.0
001(config-i