HCL configures communication experiments between different VLANs

VLAN configuration example

Insert picture description here
Experimental topology
Insert picture description here

The configuration commands are as follows:

  • First configure the IP address of the 4 evaluation machines
  • See the red box in the topology map is the IP and mask of each PC
  • Connect, the number of each interface in the topology diagram
  • Note: The PC may be in the down state after being activated. The solution is to reconnect or reconnect a PC; the switch may also fail to find the command on the switch. Perform the save command (save), and then reboot (reboot).
    Insert picture description here
    After configuring the IP and mask, enable it. Make sure that the status is UP

Switch S5820V2-54QS-GE_1

[H3C]vlan 10
[H3C-vlan10]qu
[H3C]vlan 20
[H3C-vlan20]qu
[H3C]int g 1/0/1
[H3C-GigabitEthernet1/0/1]port link-type access
[H3C-GigabitEthernet1/0/1]port access vlan 10
[H3C-GigabitEthernet1/0/1]qu
[H3C]int g1/0/2
[H3C-GigabitEthernet1/0/2]port link-type access
[H3C-GigabitEthernet1/0/2]port access vlan 20
[H3C-GigabitEthernet1/0/2]qu
[H3C]int g1/0/24
[H3C-GigabitEthernet1/0/24]port link-type trunk
[H3C-GigabitEthernet1/0/24]port trunk permit vlan 10 20
[H3C-GigabitEthernet1/0/24]qu
[H3C]int g 1/0/1
[H3C-GigabitEthernet1/0/1]port link-type hybrid
[H3C-GigabitEthernet1/0/1]port hybrid vlan 10 20 untagged
[H3C-GigabitEthernet1/0/1]qu
[H3C]int g1/0/2
[H3C-GigabitEthernet1/0/2]port link-type hybrid
[H3C-GigabitEthernet1/0/2]port hybrid vlan 10 20 untagged
[H3C-GigabitEthernet1/0/2]qu

Switch S5820V2-54QS-GE_2

[H3C]vlan 10
[H3C-vlan10]qu
[H3C]vlan 20
[H3C-vlan20]qu
[H3C]int g1/0/1
[H3C-GigabitEthernet1/0/1]port link-type access     //设置为access端口
[H3C-GigabitEthernet1/0/1]port access vlan 10     //把端口加入VLAN里
[H3C-GigabitEthernet1/0/1]qu
[H3C]int g1/0/2
[H3C-GigabitEthernet1/0/2]port link-type access
[H3C-GigabitEthernet1/0/2]port access vlan 20
[H3C-GigabitEthernet1/0/2]qu
[H3C]int g 1/0/24
[H3C-GigabitEthernet1/0/24]port link-type trunk
[H3C-GigabitEthernet1/0/24]port trunk permit vlan 10 20
[H3C-GigabitEthernet1/0/24]qu
[H3C]int g1/0/1
[H3C-GigabitEthernet1/0/1]port link-type hybrid     //设置为混杂端口
[H3C-GigabitEthernet1/0/1]port hybrid vlan 10 20 untagged     //去掉VLAN10,20的标签
[H3C-GigabitEthernet1/0/1]qu
[H3C]int g1/0/2
[H3C-GigabitEthernet1/0/2]port link-type hybrid
[H3C-GigabitEthernet1/0/2]port hybrid vlan 10 20 untagged
[H3C-GigabitEthernet1/0/2]qu

After the configuration is complete, use one pc to ping the remaining three pcs
.
Insert picture description here

Published 13 original articles · Like 43 · Visits 1189

Guess you like

Origin blog.csdn.net/Long_UP/article/details/105147593