日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

1 交換機命令大全

1.在基于IOS的交換機上設置主機名/系統(tǒng)名:

witch(config)# hostname hostname

在基于CLI的交換機上設置主機名/系統(tǒng)名:

witch(enable) set system name name-string

2.在基于IOS的交換機上設置登錄口令:

witch(config)# enable passWord level 1 password

在基于CLI的交換機上設置登錄口令:

witch(enable) set password

witch(enable) set enalbepass

3.在基于IOS的交換機上設置遠程訪問:

witch(config)# interface vlan 1

witch(config-if)# ip address ip-address netmask

witch(config-if)# ip default-gateway ip-address

在基于CLI的交換機上設置遠程訪問:

witch(enable) set interface sc0 ip-address netmask broadcast-address

witch(enable) set interface sc0 vlan

witch(enable) set ip route default gateway

4.在基于IOS的交換機上啟用和瀏覽CDP信息:

witch(config-if)# cdp enable

witch(config-if)# no cdp enable

為了查看Cisco鄰接設備的CDP通告信息:

witch# show cdp interface [type modle/port]

witch# show cdp neighbors [type module/port] [detail]

在基于CLI的交換機上啟用和瀏覽CDP信息:

witch(enable) set cdp {enabledisable} module/port

為了查看Cisco鄰接設備的CDP通告信息:

witch(enable) show cdp neighbors[module/port] [vlanduplexcapabilitiesdetail]

5.基于IOS的交換機的端口描述:

witch(config-if)# description description-string

基于CLI的交換機的端口描述:

witch(enable)set port name module/number description-string

6.在基于IOS的交換機上設置端口速度:

witch(config-if)# speed{10100auto}

在基于CLI的交換機上設置端口速度:

witch(enable) set port speed moudle/number {10100auto}

witch(enable) set port speed moudle/number {416auto}

7.在基于IOS的交換機上設置以太網(wǎng)的鏈路模式:

witch(config-if)# duplex {autofullhalf}

在基于CLI的交換機上設置以太網(wǎng)的鏈路模式:

witch(enable) set port duplex module/number {fullhalf}

8.在基于IOS的交換機上配置靜態(tài)VLAN:

witch# vlan database

witch(vlan)# vlan vlan-num name vla

witch(vlan)# exit

witch# configure teriminal

witch(config)# interface interface module/number

witch(config-if)# switchport mode Access

witch(config-if)# switchport access vlan vlan-num

witch(config-if)# end

在基于CLI的交換機上配置靜態(tài)VLAN:

witch(enable) set vlan vlan-num [name name]

witch(enable) set vlan vlan-num mod-num/port-list

9. 在基于IOS的交換機上配置VLAN中繼線:

witch(config)# interface interface mod/port

witch(config-if)# switchport mode trunk

witch(config-if)# switchport trunk encapsulation {isldotlq}

witch(config-if)# switchport trunk allowed vlan remove vlan-list


witch(config-if)# switchport trunk allowed vlan add vlan-list

在基于CLI的交換機上配置VLAN中繼線:

witch(enable) set trunk module/port [onoffdesirableautononegotiate]

Vlan-range [isldotlqdotl0lanenegotiate]

10.在基于IOS的交換機上配置VTP治理域:

witch# vlan database

witch(vlan)# vtp domain domain-name

在基于CLI的交換機上配置VTP治理域:

witch(enable) set vtp [domain domain-name]

11.在基于IOS的交換機上配置VTP 模式:

witch# vlan database

witch(vlan)# vtp domain domain-name

witch(vlan)# vtp {severcilenttransparent}

witch(vlan)# vtp password password

在基于CLI的交換機上配置VTP 模式:

witch(enable) set vtp [domain domain-name] [mode{ severcilenttransparent }][password password]

12. 在基于IOS的交換機上配置VTP版本:

witch# vlan database

witch(vlan)# vtp v2-mode

在基于CLI的交換機上配置VTP版本:

witch(enable) set vtp v2 enable

推薦閱讀