❶ 在CISCO設備(路由、交換機)上用什麼命令可以查看線路連接類型,帶寬等
首先登錄進入路由器enable模式,然後用show run查看當前配置。
用問號可以看到命令提示,知道哪些命令可以使用。
show run
這個命令可以查看當前路由器裡面做了的所有配置和策略。
show ? 可以查看所有能看到的東西
❷ 交換機埠查看命令
不同的交換機查看命令和方法不一樣,最好有說明書,上面都有。
有的命令是 show port * (*代表埠號1,2,3...)
show port all (顯示所有埠狀態)
❸ 華為交換機如何查看埠狀態和光模塊信息
華為交換機查看埠狀態和光模塊信息的方法和詳細的操作步驟如下:
1、首先,使用命令「 dis interface brief」查看交換機的哪個埠是萬兆埠, 這將有助於之後的查詢工作。在圖中,您可以看到「 XGigabitEthernet0 / 1/1,XGigabitEthernet0 / 1/2」都是萬兆光埠,見下圖。
❹ 銳捷交換機查看埠光衰命令
、輸入登陸名與密碼後在當前界面輸入"dis brief interface "命令後顯專示當前設備屬埠上線狀態。
1、確認電百腦與交換機網路通暢(也可採用Console介面直連配置)。 2、在電腦度端打開模擬程序(secuerCRT)。 3、在secuerCRT 程序上選擇「快速鏈接」選擇TELNET方式訪問要連接交換機問。 4、登陸答到交換機。 5、輸入登陸名與密碼後在當前界面輸入"dis brief interface "命令後顯專示當前設備屬埠上線狀態。
❺ 如何導入導出交換機配置
用TFTP、FTP或者用web管理頁面導入導出。實在不行還可以在命令行使用dis cur命令導出。
❻ 華為交換機怎麼查看光口能不能收到光
[huawei]_h //進入隱藏模式(為華為工程師調測專用命令)
[huawei-hidecmd]sfp-debug 1 0 9 //看埠 1/0/9的光路情況
❼ 交換機的基本命令
交換機的啟動及基本配置
1924交換機上配置
sw1924_b#delete nvram
全部清除交換機的所有配置
sw1924_b#reload
重新啟動交換機(初始提示符為> )
sw1924_b#hostname sw1924
設置交換機的主機名
sw1924_b#enable secret cisco
設置加密密碼
sw1924_b#enable password level 1 cisco1
設置等級密碼(1最低)
sw1924_b#enable password level 15 cisco15
設置等級密碼(15最高)
sw1924_b#ip address 192.168.14.1 255.255.255.0
設置交換機的管理IP地址
sw1924_b#ip default-gateway 192.168.198.2
設置交換機的網關地址
sw1924_b#ip domain-name pctc.com.cn
設置交換機所連域的域名
sw1924_b#ip name-server 218.87.18.230
設置交換機所連域的域名伺服器IP
sw1924_b#show ip
查看上述設置環境
sw1924_b#show version
查看交換機的版本等信息
sw1924_b#show running-config
查看交換機的當前運行配置等全部信息
sw1924_b#show int e0/1
查看交換機的第1個埠信息
1924交換機配置埠屬性
sw1924_b#conf t
sw1924_b#interface ethernet 0/1
進入第1個埠
sw1924_b#description sw1924_b-e0/1-pc1
給埠寫入注釋信息
sw1924_b#plex auto/full/full-flow-control/half
設置埠的工作模式
sw1924_b#port secure
啟用埠安全性
sw1924_b#port secure max-mac-count 1
設置該埠允許對應的MAC地址數(默認132個)
sw1924_b#sh mac-address-table security
查看埠安全性
sw1912_a#conf t
進入全局配置模式
sw1912_a#interface fastethernet 0/1
進入第1個埠
sw1912_a#description sw2912_a-f0/1-pc1
給埠寫入注釋信息
sw1912_a#plex auto/full/half
設置埠的工作模式
sw1912_a#port security
啟用埠安全性
sw1912_a#port security max-mac-count 1
設置該埠允許對應的MAC地址數(默認132個)
sw1912_a#end
返回特權模式
sw1912_a#sh port security
查看埠安全性
配置和查看MAC地址表
1924交換機配置MAC地址表
sw1924_b#mac-address-table aging-time 600
設置動態地址超時時間
sw1924_b#mac-address-table permanent 0000.0cdd.5a4d e0/3
定義永久MAC地址(綁定MAC地址)
sw1924_b#mac-address-table restricted static 0000.0cdd.aaed e0/6 e0/7
定義受限MAC地址
sw1924_b#address-violation disable/ignore/suspend
定義地址安全違規
sw1924_b#show mac-address-table
查看上述配置
sw1924_b#clear mac-addr restric static
清除受限MAC地址表項
2912交換機配置MAC地址表
sw2912_a#mac-address-table aging-time 700
設置動態地址超時時間
sw2912_a#mac-address-table static 0000.0cdd.5a4d e0/3
定義永久MAC地址(綁定MAC地址)
sw2912_a#mac-address-table secure 00d0.f80d.3333 f0/3 vlan 1
定義受限MAC地址
sw2912_a#port security action shutdown/trap
定義地址安全違規
sw2912_a#show port security
查看上述配置
配置VTP、VLAN、VLAN Trunk和STP
配置VTP
sw1924_a#conf t
sw1924_a#vtp server
定義VTP的工作模式
sw1924_a#vtp domain cisco
定義VTP的域名
sw1924_a#trunk on
啟用幹道
sw1924_b#vtp domain cisco
加入VTP域
sw1924_b#vtp client
定義VTP的工作模式
sw1924_b#trunk on
啟用幹道
sw1924_a#show trunk b
sw1924_a#show trunk b allowed-vlans
查看幹道信息
配置VLAN
sw1924_a#vlan 10 dept1
sw1924_a#vlan 20 dept2
sw1924_a#vlan 30 dept3
sw1924_a#vlan 40 dept4
定義所需VLAN
sw1924_a#show vlan
查看VLAN信息
sw1924_b#show vlan
sw1924_b#show vtp
查看VTP的信息
sw1924_b#int e0/1
sw1924_b#vlan-membership static 10
sw1924_b#int e0/2
sw1924_b#vlan-membership static 20
sw1924_b#int e0/3
sw1924_b#vlan-membership static 30
sw1924_b#int e0/4
sw1924_b#vlan-membership static 40
把介面劃入各自VLAN
配置spanning tree
sw1924_b#spantree 1
啟用生成樹協議
sw1924_b#sh spantree 1
查看生成樹信息
sw1924_b#no spantree 1
關閉生成樹協議
sw1924_b#sh spantree 1
查看生成樹信息
❽ 華為交換機如何查看光模塊信息有哪些參數和命令
以下是華為交換機查看光模塊的參數和命令:slot-id
非堆疊情況下,表示槽位號。堆疊情況下,表示堆疊ID。verbose
顯示埠上光模塊的詳細信息,包括光模塊的常規、製造、告警信息及診斷信息。Display
interface
某光口插入的光模塊的信息display
transceiver
光口的收發光功率信息關於查看光模塊的細節和具體說明,可以搜下飛速光纖!
❾ 交換機追蹤命令
交換機是沒有該命令的。
H3C Switch命令:
一、模式命令:
1. 用戶模式:Switch>
2. 特權模式:Switch>enable
Switch#
3. 全局配置模式:Switch#config terminal
Switch(config)#
4. 介面配置模式:Switch(config)#interface fastethernet0/1
Switch(config-if)#
5. Line模式:Switch(config)#line console 0
Switch(config-line)#
二、特權模式下的命令:
1. 查看機MAC地址:Switch#show mac-address-table
2. 發現(CDP):
Switch#show cdp
Switch#show cdp interface fastethernet0/1
Switch#show cdp neighbors
Switch#show cdp neighbors detail
Switch#show cdp entry
3. 保存機配置:
Switch# running-config startup-config或者Switch#write
4. 恢復交換機出廠值:
Switch#erase startup-config
Switch#reload
三、全局配置模式下的命令:
1. 配置主機名:Switch(config)#hostname Sw1
Sw1(config)#
2、 設置登陸台密碼:Switch(config)#line console 0
Switch(config-line)#password 密碼
Switch(config-line)#login
3. 使能口令:Switch(config)#enable Password 密碼
4. 加密保存的使能口令:Switch(config)#enable secret 密碼
5. 配置IP地址:
Switch(config)#interface vlan 1
Switch(config-if)#ip address IP地址 網關
Switch(config-if)#no shutdown
6. 配置交換機網關:Switch(config)#ip default-gateway 網關
四、VLAN配置命令:
1. 創建vlan命令:
a) 全局配置模式下:
Switch(config)#vlan 2
Switch(config)#name v2
Switch(config)#mtu 數值
Switch(config)#end
b) Vlan資料庫下:
Switch#vlan database
Switch#vlan 2 name v2
Switch#vlan 2 mut 數值
Switch#exit
2. 刪除vlan命令:
a) 全局配置模式下:
Switch(config)#no vlan 2
Switch(config)#end
b) Vlan資料庫下:
Switch#no vlan 2 name v2
Switch#exit
3. 在vlan中添加埠:
Switch#config terminal
Switch(config)#interface f0/1(埠)
Switch(config-if)#Switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#end
一次將多個埠添加到vlan中:
Switch#config terminal
Switch(config)#interface range f0/1 - 5(埠)
Switch(config-if)#switchport access vlan 2
Switch(config-if)#end
註:switch#show vlan biref(查看vlan信息)
4. 配置vlan trunk:
1. 配置介面為trunk命令:
Switch(config)# interface f0/1(埠)
Switch(config-if)#Switchport mode trunk
2. 配置介面為動態協商模式的命令:
Switch(config)# interface f0/1(埠)
Switch(config-if)#switchport mode dynamic desirable/auto
3. 從trunk中刪除vlan:
Switch(config)# interface f0/1(埠)
Switch(config-if)#Switchport trunk allowed vlan remove 2
4. 在trunk中添加vlan:
Switch(config)# interface f0/1(埠)
Switch(config-if)#Switchport trunk allowed vlan add 2
-----------------------------------------------------------
Catalyst 2950交換機密碼恢復
(1)拔下交換機的電源。
(2)用手按再交換機的MODE按鍵上,插上電源線。
(3)看到控制台出現如下提示,松開MODE建。
switch:
(4)再switch:後執行flash_init命令。
(5)查看Flash中的文件。
(6)把config.text文件改名為config.old文件。
(7)執行boot命令,啟動交換機。
(8)進入特權模式查看flash里的文件。
(9)把文件config.old改為config.text文件。
(10)把config.text復制為系統的running-config.
(11)進入配置模式重新設置密碼並存檔,密碼恢復完成。