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/1port link-type accessport default vlan 226quit |
Example of configuring the trunk port (all VLANs with tag only):
| 1234 | interface GigabitEthernet 0/0/1port link-type trunkport trunk allow-pass vlan 207 226quit |
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/1port hybrid pvid vlan 226port hybrid tagged vlan 207port 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/1undo port default vlanundo port link-type |
After configuring the ports, check the configuration and save it:
| 123 | quitdisplay current-configurationsave |
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