H3C交换机简单配置
日期:2017-03-22
1.进入console口或telnet(界面上开启telnet功能)
2.查看初始配置
<H3C>display current-configuration
3进入配置模式
<H3C>system-view
4给默认VLAN1配置IP
[H3C]interface vlan-interface 1
[H3C-Vlan-interface1]ip address 192.168.1.15 255.255.240.0
[H3C]quit
<H3C>save //保存配置
<H3C>display interface vlan-interface 1 //查看VLAN1 IP
----VLAN相关----
//新键vlan 11
[H3C]vlan 11
//查看vlan
[H3C]display vlan
VLAN function is enabled
Now the following VLAN exist(s):
1 (default), 11
//将20号端口加入vlan11
[H3C]interface GigabitEthernet 0/20
[H3C-GigabitEthernet0/20]port link-type access
[H3C-GigabitEthernet0/20]port access vlan 11
//删除20号端口vlan11
[H3C-GigabitEthernet0/20]undo port access vlan
//删除vlan11
[H3C]undo vlan 11
Please wait...
----End-----
----链路聚合----
//给47,48端口创建端口汇聚
[H3C]link-aggregation group 1 mode manual // 创建group1组
[H3C]link-aggregation mode both
//进入47,48接口配置
[H3C]interface GigabitEthernet 0/47
[H3C-GigabitEthernet0/47]port link-aggregation group 1
[H3C-GigabitEthernet0/47]speed 1000
[H3C-GigabitEthernet0/47]duplex full
[H3C]interface GigabitEthernet 0/48
[H3C-GigabitEthernet0/48]port link-aggregation group 1
[H3C-GigabitEthernet0/48]speed 1000
[H3C-GigabitEthernet0/48]duplex full
//删除47,48端口汇聚
[H3C]interface GigabitEthernet 0/47
[H3C-GigabitEthernet0/47]undo speed 1000
[H3C-GigabitEthernet0/47]undo duplex full
[H3C-GigabitEthernet0/47]undo port link-aggregation group
[H3C]interface GigabitEthernet 0/48
[H3C-GigabitEthernet0/48]undo speed 1000
[H3C-GigabitEthernet0/48]undo duplex full
[H3C-GigabitEthernet0/48]undo port link-aggregation group
//删除group1组
[H3C]undo link-aggregation group 1
----End-----
上一篇:没有了
下一篇:华为交换机维护命令