show interfaces [interface-id] switchport
顯示二層端口的狀態(tài) , 可以用來決定此口是否為二層或三層口 。
show interfaces [interface-id] description
顯示端口描述
show running-config interface [interface-id]
顯示當(dāng)前配置中的端口配置情況
show version
顯示軟硬件等情況
舉例如下:
Switch# show interfaces statusSwitch# show interfaces fastethernet 0/1 switchportSwitch# show running-config interface fastethernet0/2刷新、重置端口及計(jì)數(shù)器Clear命令
目的
clear counters [interface-id]
清除端口計(jì)數(shù)器.
clear line [numberconsole 0vty number]
重置異步串口的硬件邏輯
Noteclear counters 命令只清除用show interface所顯示的計(jì)數(shù) , 不影響用snmp得到的計(jì)數(shù)
舉例如下:
Switch# clear counters fastethernet0/5 Clear "show interface" counters on this interface [confirm] y Switch#*Sep 30 08:42:55: %CLEAR-5-COUNTERS: Clear counter on interface FastEthernet0/5by vty1 (171.69.115.10) 可使用clear line 命令來清除或重置某一端口或串口 , 在大部分情況下并不需要這樣做:
Switch# clear interface fastethernet0/5 關(guān)閉和打開端口命令
目的
Step;1;
configure terminal
進(jìn)入配置狀態(tài)
Step;2;
interface {vlan vlan-id}{{fastethernetgigabitethernet} interface-id}{port-channel port-channel-number}
選擇要關(guān)閉的端口
Step;3;
shutdown
關(guān)閉
Step;4;
end
退出
Step;5;
show running-config
驗(yàn)證
使用 no shutdown 命令重新打開端口.
舉例如下:
Switch# configure terminalSwitch(config)# interface fastethernet0/5 Switch(config-if)# shutdown Switch(config-if)#Switch# configure terminalSwitch(config)# interface fastethernet0/5 Switch(config-if)# no shutdown Switch(config-if)# (完)
推薦閱讀
- 選擇智能交換機(jī)
- 三層以太網(wǎng)交換機(jī)CPU收發(fā)包相關(guān)問題分析
- 一加手機(jī)3和OPPO R9哪個(gè)好 一加3和oppo r9配置參數(shù)對(duì)比
- 一 配置三層交換的綜合事例
- 明明白白 識(shí)別交換機(jī)優(yōu)劣的五個(gè)方面
- 三星Galaxy Note 7配置怎么樣 三星Galaxy Note 7介紹
- 1 Cisco Catalyst 智能交換機(jī)介紹
- 交換機(jī)專題 [必讀]
- 交換機(jī)err-disable故障解決方法
- 三星Galaxy S8配置怎么樣 三星galaxy s8消息
