所处视图 |
命令格式 |
命令说明 |
备注 |
view视图 |
configure terminal |
进入config视图 |
|
erase start-config |
恢复出厂配置 |
隐藏命令 |
exit |
退出后台命令行 |
|
list |
显示当前视图所有命令 |
|
list find_wac |
显示发现控制器ip配置 |
|
list interface |
显示每个端口、接口的详细信息(物理端口、vlan口) |
|
list interface WORD |
显示指定端口、接口的详细信息(物理端口、vlan口) |
|
list interface brief |
显示每个端口、接口的简要信息(物理端口、vlan口) |
|
list interface eth-trunk |
显示聚合口的信息 |
|
list interface transceiver |
显示光功率信息 |
|
list ip interface |
显示三层接口详细信息(三层口、三层聚合口、vlanif口) |
|
list ip interface brief |
显示三层接口简要信息(三层口、三层聚合口、vlanif口) |
|
list ip route |
显示ipv4路由表 |
|
list ipv6 interface |
显示ipv6三层接口详细信息(三层口、三层聚合口、vlanif口) |
|
list ipv6 route |
显示ipv6路由表 |
|
list spanning-tree mst |
显示生成树配置信息 |
|
list arp |
显示arp地址表 |
|
list mac address-table |
显示mac地址表 |
|
list running_config |
显示当前正在运行的配置 |
|
list sshd |
显示当前ssh开启关闭情况 |
|
list startup-config |
显示当前flash中保存的配置 |
|
list telnetd |
显示当前telnet开启关闭情况 |
|
list vlan |
显示所有vlan信息 |
|
list vlan WORD |
显示指定vlan信息 |
|
ping (A.B.C.D|WORD) |
ping命令,支持ping ip地址和域名 |
|
reset_pwd |
重置密码 |
隐藏命令 |
ssh WORD A.B.C.D WORD |
远程ssh到指定地址、端口 |
|
telnet WORD A.B.C.D WORD |
远程telnet到指定地址、端口 |
|
tracert A.B.C.D |
路由追踪指定ip地址 |
|
config视图 |
end |
返回至view视图 |
|
exit |
退出到上一层 |
|
find_wac address A.B.C.D |
配置发现控制器ip地址 |
|
find_wac domain WORD |
配置发现控制器域名 |
|
interface IFNAME |
进入物理端口视图 |
|
interface range WORD |
进入批量编辑视图 |
|
interface vlan (<1-4094>) |
接入vlanif接口视图 |
|
ip name-server A.B.C.D |
配置dns服务器地址 |
|
ip route A.B.C.D/M A.B.C.D |
配置静态路由 |
|
list |
显示当前视图所有命令 |
|
no find_wac address |
删除发现控制器ip地址配置 |
|
no find_wac domain |
删除发现控制器域名配置 |
|
no interface vlan (<1-4094>) |
删除指定vlanif接口 |
|
no ip name-server |
删除dns服务器配置 |
|
no ip route A.B.C.D/M A.B.C.D |
删除静态路由配置 |
|
sshd disable |
关闭ssh调试选项 |
|
sshd enable |
开启ssh调试选项 |
|
telnetd disable |
关闭telnet调试选项 |
|
telnetd enable |
开启telnet调试选项 |
|
write |
保存当前配置到flash中 |
|
端口视图 |
end |
返回至view视图 |
|
exit |
退出到上一层 |
|
ip address A.B.C.D/M |
为物理端口配置ip地址 |
|
ip address A.B.C.D/M secondary |
为物理端口配置子ip地址 |
|
ip address dhcp |
为物理端口配置为自动获取地址 |
|
list |
查看当前视图所有命令 |
|
no ip address |
删除当前配置的ip地址 |
|
no ip address A.B.C.D/M |
删除配置的指定ip地址 |
|
no shutdown |
启用该端口 |
|
no switchport |
将端口切换为三层口 |
|
no switchport access vlan |
清除端口的access vlan |
|
no switchport access vlan <1-4094> |
清除端口指定access vlan |
|
no switchport trunk allowed vlan |
清除端口trunk allowed vlan |
|
no switchport trunk native vlan |
清除端口trunk native vlan |
|
shutdown |
禁用端口 |
|
speed (10|100|1000|10000|40000|100000) (full|half|auto) |
配置端口双工速率 |
|
speed auto |
配置端口速率为10/100/1000M自协商 |
|
switchport |
将端口切换为二层口 |
|
switchport access vlan (<1-4094>) |
为端口配置access vlan |
|
switchport hybrid native vlan (<1-4094>) |
为端口配置hybrid native vlan |
|
switchport hybrid tagged vlan (<1-4094>) |
为端口配置hybrid tagged vlan |
|
switchport hybrid tagged vlan WORD |
为端口配置多个hybrid tagged vlan |
|
switchport hybrid untagged vlan (<1-4094>) |
为端口配置hybrid unttagged vlan |
|
switchport hybrid untagged vlan WORD |
为端口配置多个hybrid untagged vlan |
|
switchport trunk allowed vlan (<1-4094>) |
为端口配置trunk allowed vlan |
|
switchport trunk allowed vlan WORD |
为端口配置多个trunk allowed vlan |
|
switchport trunk allowed vlan add (<1-4094>) |
为端口的trunk allowed vlan继续添加vlan |
|
switchport trunk allowed vlan add WORD |
为端口的trunk allowed vlan继续添加多个vlan |
|
switchport trunk allowed vlan remove (<1-4094>) |
为端口的trunk allowed vlan移除vlan |
|
switchport trunk allowed vlan remove WORD |
为端口的trunk allowed vlan移除多个vlan |
|
switchport trunk native vlan (<1-4094>) |
为端口配置trunk native vlan |
|
vlanif视图 |
end |
返回至view视图 |
|
exit |
退出到上一层 |
|
list |
查看当前视图所有命令 |
|
end |
返回至view视图 |
|
exit |
退出到上一层 |
|
ip address A.B.C.D/M |
为vlanif口配置ip地址 |
|
ip address A.B.C.D/M secondary |
为vlanif口配置子ip地址 |
|
ip address dhcp |
将vlanif口修改为自动获取 |
|
list |
查看当前视图所有命令 |
|
no ip address |
删除当前配置的ip地址 |
|
no ip address A.B.C.D/M |
删除配置的指定ip地址 |
|
range视图 |
end |
返回至view视图 |
|
exit |
退出到上一层 |
|
list |
查看当前视图所有命令 |
|
no shutdown |
启用范围内端口 |
|
no switchport access vlan |
清除范围内端口的access vlan |
|
no switchport trunk allowed vlan |
清除范围内端口trunk allowed vlan |
|
no switchport trunk native vlan |
清除范围内端口trunk native vlan |
|
shutdown |
禁用范围内端口 |
|
switchport access vlan (<1-4094>) |
为范围内端口配置access vlan |
|
switchport hybrid native vlan (<1-4094>) |
为范围内端口配置hybrid native vlan |
|
switchport hybrid tagged vlan (<1-4094>) |
为范围内端口配置hybrid tagged vlan |
|
switchport hybrid tagged vlan WORD |
为范围内端口配置多个hybrid tagged vlan |
|
switchport hybrid untagged vlan (<1-4094>) |
为范围内端口配置hybrid unttagged vlan |
|
switchport hybrid untagged vlan WORD |
为范围内端口配置多个hybrid untagged vlan |
|
switchport trunk allowed vlan (<1-4094>) |
为范围内端口配置trunk allowed vlan |
|
switchport trunk allowed vlan WORD |
为范围内端口配置多个trunk allowed vlan |
|
switchport trunk native vlan (<1-4094>) |
为范围内端口配置trunk native vlan |
|