How to divide broadcast domain and isolate collision domain in the same local area network
Vlan: virtual local area network
Local area network: the same network segment exists in the same area
The role of vlan: divide the broadcast domain, isolate the conflict domain, so that the two can not communicate with each other.
First enter the system and attempt to system-view and then create a vlan
[huawei] vlan batch id id batch creation
[huawei] vlan id created separately
[huawei] display vlan View vlan
System-view enters the system view
[huawei] vlan batch 10 20. Batch create vlan to create as many vlan as there are ports.
Next, set a different vlan for each port
[huawei] interface gigabitethernet 0/0/1
[huawei-gigabitethernet0/0/1] port link-type access
[huawei-gigabitethernet0/0/1] port default vlan 10
Set the vlan to which the port belongs
As shown in the figure:
[huawei-gigabitethernet0/0/1] quit
[Huawei] interface gigabitethernet 0/0/2
[huawei-gigabitethernet0/0/2] port link-type access
[huawei-gigabitethernet0/0/2] port default vlan 20
After setting up the vlan, you can no longer communicate with each other.