一、交换机接口批量配置
system 进入系统视图
vlan 2 创建vlan2
quit 退出vlan视图
interface g1/0/1 确定能否进入第一个接口视图
quit 退出
interface range name example interface g1/0/1 to g1/0/10 进入接口批量配置视图,以配置带别名“example”为例
port access vlan 2 执行配置命令将接口1-10加入vlan2
displaya this 查看接口列表第一个接口当前生效的配置
quit 退出
display interface brief 查看批量配置后的接口
二、忘记登录密码配置
1、断电重启
按ctrl b进入配置菜单
skip authentication for console login
跳过控制台登录的身份验证
选择8,跳过console认证
2、重新配置用户密码
local-user cd
password simple A123456789
quit
line aux 1
authentication-mode scheme
quit
save
3、恢复出厂设置
断电重启
按ctrl b进入配置菜单
skip current system configuration 跳过当前系统配置
选7,跳过当前系统配置
再选择 reboot 重启系统
automatic configuration is running,press ctrl_c or ctrl_d to break
自动配置正在运行,按ctrl_c或ctrl_d可中断
出现提示时输入CTRL c,跳过自动配置 进入用户视图
save 保存设备空配置,即可恢复设备出厂配置
三、带管理接口的交换机接口配置
interface MGE0/0/0
ip address 192.168.1.86 24
quit
telnet server enable
line vty 0 63
authentication-mode scheme
quit
local-user admin
password simple admin
authorization-attribute user-role network-admin
service-type telnet
quit
save
开启telnet
控制面板——程序——启用或关闭windows功能——Telnet客户端
,