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
推薦閱讀
- 交換機的數(shù)據(jù)監(jiān)控
- 千兆接入交換機
- 千兆交換機性能測試指標詳解
- 千兆骨干交換機
- Cisco交換機集群技術:提供具備可伸縮性能的突破性堆疊架構(gòu)
- 測試第三層交換機
- 上 首發(fā)專題:交換機群集創(chuàng)建與管理
- 下 首發(fā)專題:交換機群集創(chuàng)建與管理
- 如何在三層交換機上實現(xiàn)跨VLAN 的DHCP配置
- FR交換機
