一、开机
1、如是新设备,开机需跳过系统默认配置模式,进入手动配置模式。
2、进入用户模式,系统提示符为 >,此模式只能查看统计信息,无配置功能。
3、用户模式下,输入 enable ,进入特权模式,系统提示符为 #。
二、一些常用设置
1、设置enable密码
(config)#enable password XXX
2、设置主机名
(config)#hostname XXX
3、关闭http访问
(config)#no httpserver
4、关闭密码明文显示
(config)#service password-encryption
5、配置consol口密码
(config)#line con 0
(config-line)#password XXX
(config-line)#login
(config-line)#exit
6、启用三层交换机路由功能(如三层交换机有多个VLAN需要开启此功能)
(config)#ip routing //启用三层交换机的路由的功能
7、开启/关闭telnet访问
(config)#line vty 0 4
开启:
switch(config-line)#password 你的密码
switch(config-line)#login
关闭:
(config-line)#no password
(config-line)#exit
8、配置端口IP地址
Switch>e