思科交换机开局命令

  Switch>    #表示普通用户模式,只能进行配置查看
  Switch#    #表示管理员模式,可以进行配置
  Switch(config)#    #表示全局模式

Switch>enable        #进入特权模式
Switch#configure terminal        #进入全局模式
Switch(config)#exit        #退出当前模式
Switch#?        #获取帮助
Switch(config)#hostname SW    #对设备进行重新命名
Switch(vlan)#no shutdown        #开启当前vlan
Switch(config-if)#no shutdown        #开启当前接口
Switch(vlan)#no vlan 10 name a        #取消或删除vlan 10的创建(命令前面加no为取消或删除)
Switch(config)#enable password 123456        #明文显示设置密码
Switch(config)#enable secret 123456        #密文显示设置密码
Switch#line vty 0 15        #进入到虚拟终端模式
Switch(config-line)#password 123456        #设置telnet密码为123456
Switch(config-line)#login        #设置虚拟终端连接密码验证

猜你喜欢

转载自www.cnblogs.com/Dpkg/p/12185849.html