華為交換機重啟命令

來源:魅力女性吧 2.38W
華為交換機重啟命令

restart。

華為交換機配置命令有以下幾種:

1、用户模式:交換機啟動後在控制枱直接按車就進入用户模式(遠程管理telnet 交換機ip時需要口令)。

——幫助

quit——退出當前模式返上一級

<switchone>ping ip-address——測試網絡連通性

<switchone>telnet ip-address——從交換機登陸其它設備<switchone>super--從用户模式進入特權模式

2、特權模式:進入特權模式一般需要口令,可以防止非法登陸交換機

<switchone>display current——顯示當前運行的配置

<switchone>save——保存當前運行的配置

<switchone>reboot——重啟交換機

<switchone>display mac——顯示mac地址表

<switchone>display inteface ethernet 0/1——查看以太網口狀態

<switchone>system-view——從特權模式進入全局模式

3、全局模式:更改配置

a. 進入以太網口配置模式及相關配置

[switchone]interface ethernet ——0/1

[switchone-Ethernet0/1]shutdown/undo shutdown ——關閉/打開接口

[switchone-Ethernet0/1]port link-type access/trunk ——接口類型設為untagged端口(默認)/tagged端口(用於上行口和級聯口)

access端口發出和接收的幀不帶vlan標記,即untagged端口

trunk端口發出和接收的幀一般要帶vlan標記,即tagged端口

設為tagged口後,還要做以下操作:

[switchone-Ethernet0/1]port trunk permit vlan 225 to 250——這條命令是允許有vlan標記225到250的幀上載

b. 進入vlan配置模式(為了便於操作,不用在接口模式下配置access,而在vlan模式下進行相關操作)

[switchone]vlan 225

[switchone-vlan225] port Ethernet 1/1將ethernet 1/1加入vlan225

c. 設置super口令

[switchone]super password simple 2403h 特權口令為2403h

熱門標籤