网络交换机命令有哪些,交换机配置命令大全( 二 )

4、接口配置模式:Switch(config)#interface fastethernet0/1 Switch(config-if) #

5、Line模式:Switch(config)#line console 0 Switch(config-line) #

二、特权模式下的命令

1、查看机MAC地址:Switch#show mac-address-table

2、发现(CDP): Switch#show cdp Switch#show cdp interface fastethernet0/1 Switch#show cdp neighbors Switch#show cdp neighbors detail Switch#show cdp entry

3、保存机配置: Switch#copy running-config startup-config或者Switch#write

4、恢复交换机出厂值: Switch#erase startup-config Switch#reload

三、全局配置模式下的命令

1、配置主机名:Switch(config)#hostname Sw1 Sw1(config) # 2、设置登陆台密码:Switch(config)#line console 0 Switch(config-line)#password 密码 Switch(config-line)#login

推荐阅读