交换机的基本配置
1、在用户模式、特权模式、全局模式及接口模式之间转换
SW1# //用户模式
SW1>enable 率秤 //特权模式
SW1#config terminal //全局模式
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#interface f0/0 倘柱霸 //接口模式
SW1(config-if)#exit 恩腊 //退回全局模式
SW1(config)#exit //退回特权模式
SW1#
2、将交换机的名称该为”student”;
student#enable
student#config t
Enter configuration commands, one per line. End with CNTL/Z.
student(config)#hostname student
student(config)#
3、 将交换机的各个配置模式设置密码为”cisco”;
student(config)#enable password cisco
student(config)#line console 0
student(config-line)#line vty 0 4
student(config-line)#password cisco
student(config-line)#login
student(config-line)#end
4、将交换机指定一个IP地址 10.10.10.x/24;
student(config)#interface vlan 1
student(config-if)#ip address 10.10.10.1 255.255.255.0
student(config-if)#no shutdown
student(config-if)#end
5、 开启交换机的Telnet服务功能,并建立Telnet用户admin,口令cisco,并指定只能从10.10.10.y/24登入Telnet服务器;
上面的陪我配置中远程服务已经开启,现在只需要将pc配置好就可以尝试远程登入了


6、开启交换机的www服务功能。
student>enable
student#config ter
student(config)#enable services web-sever
7、查看配置情况
student#show running-config
如下图为结果部分截图,我们可以看到版本为12.1、主机名为student、用户模式进入密码为cisco等等信息
