In a huawei switch of model S2720-52TP-EI I want 5 Eth ports in vlan 16 as access, one…
- User
In a huawei switch of model S2720-52TP-EI I want 5 Eth ports in vlan 16 as access, one ethport in vlan 1000 as access and one Gigabiteth port as trunk passing 1 to 4094, please provide cli commands for that
- Assistant
- Configuring 5 Ethernet ports in VLAN 16 as access:
system-view vlan 16 quit interface Ethernet 0/0/1 to 0/0/5 port link-type access port default vlan 16
- Configuring one Ethernet port in VLAN 1000 as access:
system-view vlan 1000 quit interface Ethernet 0/0/6 port link-type access port default vlan 1000
- Configuring one Gigabit Ethernet port as trunk passing 1 to 4094:
system-view interface GigabitEthernet 0/0/7 port link-type trunk port trunk allow-pass vlan 1 to 4094
- User
Ethernet0/0/1 16 Access -- Ethernet0/0/10 16 Access -- Ethernet0/0/11 16 Access -- Ethernet0/0/12 16 Access -- Ethernet0/0/13 16 Access -- Ethernet0/0/14 16 Access -- Ethernet0/0/15 16 Access -- Ethernet0/0/16 16 Access -- Ethernet0/0/2 16 Access -- Ethernet0/0/3 16 Access -- Ethernet0/0/4 16 Access -- Ethernet0/0/5 16 Access -- Ethernet0/0/6 16 Access -- Ethernet0/0/7 16 Access -- Ethernet0/0/8 16 Access -- Ethernet0/0/9 16 Access -- GigabitEthernet0/0/1 16 Access -- GigabitEthernet0/0/10 16 Access -- GigabitEthernet0/0/11 16 Access -- GigabitEthernet0/0/12 1 Auto 1 to 4094 GigabitEthernet0/0/2 16 Access -- GigabitEthernet0/0/3 16 Access -- GigabitEthernet0/0/4 16 Access -- GigabitEthernet0/0/5 16 Access -- GigabitEthernet0/0/6 16 Access -- GigabitEthernet0/0/7 16 Access -- GigabitEthernet0/0/8 1000 Access -- GigabitEthernet0/0/9 16 Access -- configure this for huawei switch mentioned above
- Assistant
Please follow the steps below to configure the Huawei switch model S2720-52TP-EI as per your requirement:
- Configure VLAN 16:
system-view vlan 16 quit
- Configure Ethernet ports 0/0/1 to 0/0/16 for VLAN 16 as access ports:
interface range ethernet 0/0/1 to 0/0/16 port link-type access port default vlan 16
- Configure GigabitEthernet0/0/1 to GigabitEthernet0/0/9 for VLAN 16 as access ports:
interface range gigabitethernet 0/0/1 to 0/0/9 port link-type access port default vlan 16
- Configure GigabitEthernet0/0/8 for VLAN 1000 as access port:
interface gigabitethernet 0/0/8 port link-type access port default vlan 1000
- Configure GigabitEthernet0/0/12 as trunk port passing VLAN 1 to VLAN 4094:
interface gigabitethernet 0/0/12 port link-type trunk port trunk allow-pass vlan 1 to 4094
Once you have entered these commands, please save the configuration by typing "save" and pressing enter.
Note: Please make sure to replace the existing configuration as this may overwrite some of the previous settings.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.