1.交换机S6850_1配置
<H3C>system
System View: return to User View with Ctrl+Z.
[H3C]sysname SW1
[SW1]vlan 10 20
[SW1]interface gigabitethernet 1/0/1
[SW1-GigabitEthernet1/0/1]port link-type access
[SW1-GigabitEthernet1/0/1]port access vlan 10
[SW1-GigabitEthernet1/0/1]interface gigabitethernet 1/0/2
[SW1-GigabitEthernet1/0/2]port link-type access
[SW1-GigabitEthernet1/0/2]port access vlan 20
[SW1-GigabitEthernet1/0/2]interface gigabitethernet 1/0/3
[SW1-GigabitEthernet1/0/3]port link-type trunk
[SW1-GigabitEthernet1/0/3]port trunk permit vlan 10 20
[SW1-GigabitEthernet1/0/3]quit
2.交换机S6850_2配置
<H3C>system
System View: return to User View with Ctrl+Z.
[H3C]sysname SW2
[SW2]vlan 10 20
[SW2]interface gigabitethernet 1/0/1
[SW2-GigabitEthernet1/0/1]port link-type access
[SW2-GigabitEthernet1/0/1]port access vlan 10
[SW2-GigabitEthernet1/0/1]interface gigabitethernet 1/0/2
[SW2-GigabitEthernet1/0/2]port access vlan 20
[SW2-GigabitEthernet1/0/2]interface gigabitethernet 1/0/3
[SW2-GigabitEthernet1/0/3]port link-type trunk
[SW2-GigabitEthernet1/0/3]port trunk permit vlan 10 20
[SW2-GigabitEthernet1/0/3]quit
3.配置PC的IP地址,PC1-4分别配置192.168.1-4,各PC配置方法类似;因不做三层转发,此处网关可以不配置。
4.配置完成后进行测试,达到实验目标。