1.vlan配置
[Huawei]vlan 100 創建一個vlan100
[Huawei]vlan batch 100 200 300 to 310 400 同時創建多個vlan 100 200 300 to 310 400 ,其中 300 to 310 共創建了10個連續的 301 302 到310
[Huawei-vlan1]dis this 使用dis 可以查看ip地址
[Huawei]display vlan 顯示全部vlan
[Huawei]undo vlan 100 刪除vlan100
[Huawei]undo vlan 100
[Huawei]undo vlan batch 200 300 刪除 200和300兩個vlan
[Huawei-vlan300]port GigabitEthernet 0/0/1 to 0/0/10 添加多個接口
[Huawei-vlan300]port GigabitEthernet 0/0/11 添加一個接口
[Huawei-Vlanif300]ip address 168.168.100.1 255.255.255.0 添加ip地址
[Huawei-Vlanif300]ip address 168.168.101.1 255.255.255.0 sub 添加子接口 一個vlan內配置多個網段
2.恢復出廠設置
華為恢復出廠設置
<HUAWEI>reset factory-configuration
------------------------------------------------------
H3C恢復出廠設置
<H3C>reset saved-configuration
The saved configuration file will be erased. Are you sure? [Y/N]:y
Configuration file in flash: is being cleared.
Please wait ...
MainBoard:
Configuration file is cleared.
<H3C>reb
<H3C>reboot
Start to check configuration with next startup configuration file, please wait..
.......DONE!
Current configuration may be lost after the reboot, save current configuration?
[Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):y
The file name is invalid(does not end with .cfg).
This command will reboot the device. Continue? [Y/N]:y
3.WEB界面
<H3C>system-view
# 進入系統視圖,並開啟web服務。
<H3C> system-view
[H3C] ip http enable
[H3C] ip https enable
# 給交換機配置管理vlan1配置ip地址
[H3C] interface vlan-interface 1
[H3C-VLAN-interface1] ip address 192.168.100.254 255.255.0.0
[H3C-VLAN-interface1] quit
# 創建本地賬號admin,密碼為a12345678,權限級別為管理員權限。
[H3C] local-user admin class manage
[H3C-luser-abc] password simple a123456789
[H3C-luser-abc] service-type http https
[H3C-luser-abc] authorization-attribute user-role network-admin
[H3C-luser-abc] quitqui
# 保存配置。
[H3C] save force
4.關閉信息提示
解決辦法關閉信息中心。
undo info-center enable
5.查看配置信息
[Huawei]display current-configuration 顯示全部的配置信息
6.關閉stp生成樹
兩個三層交換機多網線連接只有一個能通 其他的不同 是因為 stp 服務,stp生成樹 模式是打開的
undo stp global enable
7.dhcp中繼
[Huawei]dhcp enable 打開dhcp功能
[Huawei]interface Vlanif 300 進入vlan 300
[Huawei-Vlanif300]dhcp select relay 設置為中繼模式
[Huawei-Vlanif300]dhcp relay server-ip 192.168.1.1 配置提供dhcp服務器的地址
[Huawei-Vlanif300]quit
[Huawei]