Huawei switches configure communication between different VLANs

Target:

      The three switches are connected through twisted pairs, and the user PCs of VLAN4 and VLAN5 are connected to Z-AS-1 and Z-AS-2 respectively. Users PC1 and PC2 in VLAN 4 need to communicate with each other, and users in VLAN 4 and VLAN 5 are isolated from each other.

Network topology diagram:

configuration steps

(1) Create a VLAN

     ① Z-AS-1。

     [Z-AS-1]vlan 4

     #Create Vlan4#

     [Z-AS-1-vlan4]quit

     ② Z-AS-2。

      [Z-AS-2]vlan 4

      [Z-AS-2-vlan4]quit

      [Z-AS-2]vlan 5

      [Z-AS-2-vlan5]quit

  (2) Configure the Access port

     ① Z-AS-1。 

       [Z-AS-1]interface Ethernet 0/0/1

       [Z-AS-1-Ethernet0/0/1]port link-type access

       #The default port type is Hybrid, change it to Access#

       [Z-AS-1-Ethernet0/0/1]port default vlan 4

       #Add port to Vlan4#

      ② Z-AS-2。

       [Z-A

Guess you like

Origin blog.csdn.net/basyn/article/details/130814645