思科交换机命令大全
(一)
序号/类别基于ios的交换机命令基于CLI的交换机命令
switch(config)# hostname "hostname" switch(enable) set system name name-string
switch(config)# enable password level 1 password switch(enable) set password
switch(enable) set enalbepass
switch(config)# inte***ce vlan 1
switch(config-if)# ip address ip-mask
switch(config-if)# ip default-gateway ip-address switch(enable) set inte***ce sc0 ip-mask broadcast-address
switch(enable) set inte***ce sc0 vlan
switch(enable) set ip route default gateway
switch(config-if)# cdp enable
switch(config-if)# no cdp enable switch(enable) set cdp {enable|disable} module/port
switch# show cdp inte***ce [type modle/port]
switch# show cdp neighbors [type module/port] [detail] switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail]
switch(config-if)#description escription-string switch(enable)set port name module/number description-string
switch(config-if)# speed{10|100|auto} switch(enable) set port speed moudle/number {10|100|auto}
switch(enable) set port speed moudle/number {4|16|auto}
switch(config-if)# duplex {auto|full|half} switch(enable) set port duplex module/number {full|half
switch# vlan database
switch(vlan)# vlan vlan-num name vla
switch(vlan)# exit
switch# configure teriminal
sw
思科交换机命令大全 来自淘豆网www.taodocs.com转载请标明出处.