搜档网
当前位置:搜档网 > H3C交换机配置

H3C交换机配置

1、win7通过超级终端进入H3C交换机,端口设置需要修改

H3C交换机配置

2、输入sys进入配置模式

H3C交换机配置

3、进入24端口(在输入命令时按Tab键会智能补全命令)[H3C]interface GigabitEthernet 1/0/24

H3C交换机配置

4、设置24端口为trunk口

[H3C- GigabitEthernet 1/0/24]port link-type trunk

[H3C- GigabitEthernet 1/0/24]port trunk permit vlan all [H3C- GigabitEthernet 1/0/24]quit

H3C交换机配置

[H3C]interface GigabitEthernet 1/0/1

[H3C- GigabitEthernet 1/0/1]port access vlan 101 [H3C- GigabitEthernet 1/0/1]quit

H3C交换机配置

6、进入端口2,设置端口2为vlan102

[H3C]interface GigabitEthernet 1/0/2

[H3C- GigabitEthernet 1/0/1]port access vlan 102 [H3C- GigabitEthernet 1/0/1]quit

H3C交换机配置

[H3C]interface GigabitEthernet 1/0/3

[H3C- GigabitEthernet 1/0/1]port access vlan 103 [H3C- GigabitEthernet 1/0/1]quit

H3C交换机配置

8、进入端口4,设置端口4为vlan104

[H3C]interface GigabitEthernet 1/0/4

[H3C- GigabitEthernet 1/0/1]port access vlan 104 [H3C- GigabitEthernet 1/0/1]quit

H3C交换机配置

9、输入save保存配置

H3C交换机配置

10、进入vlan101,设置端口9-16为vlan101(给vlan批量添加端口)[H3C]vlan 101

[H3C-vlan101] port GigabitEthernet 1/0/9 to GigabitEthernet 1/0/16 [H3C-vlan101]quit

H3C交换机配置

11、进入vlan102,设置端口17-20为端口102(给vlan批量添加端口)[H3C]vlan 101

[H3C-vlan101] port GigabitEthernet 1/0/9 to GigabitEthernet 1/0/16 [H3C-vlan101]quit

H3C交换机配置

相关文档