Add an interface to different VLANs

5

An access interface cannot be added to different VLANs. Run the port default vlan command to configure a default VLAN.
A trunk interface can be added to multiple VLANs by running the port trunk allow-pass vlan command.
A hybrid interface can be added to multiple VLANs in untagged or tagged mode by running the port hybrid untagged vlan or port hybrid tagged vlan command.

Other related questions:
How to add interfaces to a VLAN in a batch
You can add interfaces to a VLAN in a batch using a port group, and directly add access interfaces to a VLAN in a batch in the system view. Access interface # Add GE0/0/1-GE0/0/5 to VLAN 10 in a batch. Add interfaces to a VLAN in a batch using a port group. system-view [HUAWEI] port-group pg1 [HUAWEI-port-group-pg1] group-member gigabitethernet0/0/1 to gigabitethernet0/0/5 [HUAWEI-port-group-pg1] port link-type access [HUAWEI-port-group-pg1] port default vlan 10 Add interfaces to a VLAN in a batch in the VLAN view. system-view [HUAWEI] vlan 10 [HUAWEI-vlan10] port gigabitethernet 0/0/1 to 0/0/5 NOTE: Before performing this operation, configure interfaces to be added to a VLAN as access interface. Trunk interface # Add GE0/0/1-GE0/0/5 to VLAN 10 and VLAN 20 in a batch. system-view [HUAWEI] port-group pg1 [HUAWEI-port-group-pg1] group-member gigabitethernet0/0/1 to gigabitethernet0/0/5 [HUAWEI-port-group-pg1] port link-type trunk [HUAWEI-port-group-pg1] port trunk allow-pass vlan 10 20Hybrid interface # Add GE0/0/1-GE0/0/5 to VLAN 10 and VLAN 20 in a batch. system-view [HUAWEI] port-group pg1 [HUAWEI-port-group-pg1] group-member gigabitethernet0/0/1 to gigabitethernet0/0/5 [HUAWEI-port-group-pg1] port link-type hybrid [HUAWEI-port-group-pg1] port hybrid tagged vlan 10 [HUAWEI-port-group-pg1] port hybrid untagged vlan 20

Configure a VLAN on the S1728GWR-4P switch
Configure a VLAN on an S1728GWR-4P switch as follows: 1. Create a VLAN. Choose VLAN > Static and select Add from the Action list box. Enter a VLAN ID, and click Apply. 2. Add VLAN members. Choose VLAN >Static. From the Action drop-down list box, select Modify, Edit/Show Member by Interface, Edit Member by Interface Range, or Edit/Show Member by VLAN to configure members for a specified VLAN, interface, or interface range. In the interface list displayed, configure the VLAN attributes of interfaces.

Configure link aggregation among cards on S series switches.
Note the following when you configure link aggregation on S series modular switches: 1. Interfaces of different Ethernet types or rates cannot be added to the same Eth-Trunk. For example, you cannot add GE interfaces and FE interfaces to the same Eth-Trunk, but you can add GE electrical interfaces and GE optical interfaces to the same Eth-Trunk. 2. The two ends of the Eth-Trunk must use the same number of interfaces, interface rate, duplex mode, and flow control configuration. 3. The remote interfaces directly connected to the local Eth-Trunk member interfaces must also be added to an Eth-Trunk; otherwise, the two ends cannot communicate. 4. When you connect the two devices, ensure the link aggregation modes on the two devices are the same. 5. There are strict limitations in link aggregation between boards. For more information about link aggregation configuration, see: Ethernet Switching-Link Aggregation in the S7700&S9700 Product Use Precautions. Ethernet Switching-Link Aggregation in the S9300&S9300E&S9300X Product Use Precautions. Ethernet Switching-Link Aggregation in the S12700 Product Use Precautions.

Configuring communication between interfaces in different VLANs
A Fat AP can connect to a switch or router. If interfaces of a device are added to two VLANs, the interfaces can communicate with each other by default. If interfaces are added to two VLANs on different devices, routes need to be configured to enable communication between the interfaces.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top