思科交换机设置

en   进入特权模式

config terminal   启动配置

1) 设置特权模式的密码

password <密码>

2) 全局密码

    enable secret  <密码>,启动之后,使用en命令,就需要你输入这个密码。

3) 设置远程telnet密码

Switcher(config)# line vty0 4     进入虚拟线程配置模式,在这个模式里可对telnet功能进行配置
Switcher(config-line)# login
Switcher(config-line)# password XXX 配置telnet密码,默认的网络设备telnet的功能是关闭的,配了密码之后会自动打开
Switcher(config)# enable password XXX 配置进入enable模式的密码, 区分大小写
Switcher(config-line)# login
Switcher(config-line)# password XXX 配置进入用户模式的密码
Switcher# copy running-config startup-config 保存配置

  

4) 保存设置

#copy running-config strat-config

5) 设定端口过程

switcher> en

password: <password>

switcher# interface <portName>

switcher(if-config)# switchport access vlan <vlanName>

switcher(if-config)#exit

switcher# exit

6) 显示所有端口 mac信息

show mac-address-table dynamic

原文地址:https://www.cnblogs.com/fantasylu/p/1957299.html