作业1

来源:百度文库 编辑:神马文学网 时间:2024/06/13 05:35:42
1.用配置线,从主机的超级终端进行配置。
A、更改交换机名字sw01
B、设置明文或者密文口令abc
C、给管理接口VLAN 1设置IP地址192.168.1.100
D、设置线路终端密码为xyz
2、给主机配置IP地址192.168.1.1,用直通线,远程登录交换机,更改交换机名字sw02
Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#host sw01
sw01(config)#
sw01(config)#ena pass 123
sw01(config)#ena sec  abc
sw01(config)#
sw01(config)#inte vlan 1
sw01(config-if)#ip add 192.168.1.100 255.255.255.0
sw01(config-if)#
sw01(config-if)#no shut
sw01(config-if)#
sw01(config-if)#line vty 0 4
sw01(config-line)#login
% Login disabled on line 1, until 'password' is set
% Login disabled on line 2, until 'password' is set