I will give an example of setting up ports on Huawei switches. For the test, I will execute commands on the Huawei Quidway S2326TP-EI.
After we connect to the switch, go to the configuration mode:
1 | system-view |
Example for create Layer 2 vlans:| <Huawei> system-view [RouterA] vlan 1009 [RouterA] description MPLS-VLAN [RouterA] quit
Example of setting access port (only one VLAN and no tag):
1234 | interface Ethernet0/0/1 port link-type access port default vlan 226 quit |
Example of configuring the trunk port (all VLANs with tag only):
1234 | interface GigabitEthernet 0/0/1 port link-type trunk port trunk allow-pass vlan 207 226 quit |
An example of setting up a hybrid port (there may be several VLANs with a tag, and only one VLAN without a tag):
1234 | interface Ethernet0/0/1 port hybrid pvid vlan 226 port hybrid tagged vlan 207 port hybrid untagged vlan 226 |
Suppose you need to reconfigure the configured access port to hybrid, then you need to cancel the already specified commands:
123 | interface Ethernet0/0/1 undo port default vlan undo port link-type |
After configuring the ports, check the configuration and save it:
123 | quit display current-configuration save |
See also my article:
Setting up a switch Huawei Quidway S2326TP-EI
Reference:
https://ixnfo.com/en/configuring-ports-on-huawei-switches.html
Comments are closed