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]