Operations 7 min read

Configuring Management IP, SSH/Telnet Access, VLANs, and Port Groups on a Huawei S5700 Switch via Console

This guide details step‑by‑step console commands for setting a management IP address, enabling SSH and Telnet remote login, creating VLANs, assigning ports, and managing VLAN and port groups on a Huawei S5700 switch, including batch operations and web‑based admin account setup.

Practical DevOps Architecture
Practical DevOps Architecture
Practical DevOps Architecture
Configuring Management IP, SSH/Telnet Access, VLANs, and Port Groups on a Huawei S5700 Switch via Console

Configure the management IP address on the S5700 by connecting a console cable to the switch, entering system view, and assigning an IP to the MEth interface, then adding a static default route.

<Quidway> system-view [Quidway] interface MEth 0/0/1 [Quidway-MEth0/0/1] ip address x.x.x.x 255.255.255.0 [Quidway] ip route-static 0.0.0.0 0.0.0.0 x.x.x.x

Add a local user for SSH/Telnet access, set the password, service type, privilege level, and verify the SSH/Telnet server status.

[Quidway] aaa [Quidway-aaa] local-user chy password cipher qaz123456 [Quidway-aaa] local-user chy service-type ssh telnet [Quidway-aaa] local-user chy privilege level 15

Configure VTY lines 0‑4 for remote login, set AAA authentication, privilege level, and enable inbound protocols (all, telnet, ssh).

[Quidway] user-interface vty 0 4 [Quidway-ui-vty0-4] authentication-mode aaa [Quidway-ui-vty0-4] user privilege level 15 [Quidway-ui-vty0-4] protocol inbound all [Quidway-ui-vty0-4] protocol inbound telnet [Quidway-ui-vty0-4] protocol inbound ssh

Set up SSH user authentication and service type.

[Quidway] ssh user chy authentication-type password [Quidway] ssh authentication-type default password [Quidway] ssh user chy service-type stelnet

Configure a VLAN interface for login IP address.

[Quidway] system-view [Quidway] interface Vlanif 1 [Quidway-Vlanif1] ip address 192.168.0.1 255.255.255.0

Create a web management account by enabling HTTP/HTTPS servers and adding a local admin user with privilege level 15.

[Quidway] http server enable [Quidway] http secure-server enable [Quidway] aaa [Quidway-aaa] local-user admin privilege level 15 [Quidway-aaa] local-user admin service-type http

Create VLAN 10, assign an IP address, and bind access ports to the VLAN.

[Quidway] vlan 10 [Quidway] interface Vlanif 10 [Quidway-Vlanif10] ip address 192.168.0.1 255.255.255.0 [Quidway-GigabitEthernet0/0/2] port link-type access [Quidway-GigabitEthernet0/0/2] port default vlan 10

Batch create VLANs 2‑19 and later batch delete them.

[Quidway] vlan batch 2 to 19 [Quidway] undo vlan batch 2 to 19

Batch add ports 0/0/1‑0/0/6 to VLAN 10 using a range command, or create a port‑group and assign it to a VLAN.

[Quidway] interface range GigabitEthernet 0/0/1 to GigabitEthernet 0/0/6 [Quidway-port-group] port link-type access [Quidway-port-group] port default vlan 10

[Quidway] port-group 1 [Quidway-port-group-1] group-member GigabitEthernet 0/0/7 to GigabitEthernet 0/0/17 [Quidway-port-group-1] port link-type access [Quidway-port-group-1] port default vlan 20

Delete a VLAN by first removing its Vlanif interface, then undoing the VLAN itself.

[Quidway] undo interface Vlanif 10 [Quidway] undo vlan 10

Batch delete port configurations using a port‑group, undoing default VLAN and link‑type settings, then display the current configuration.

[Quidway] port-group 2 [Quidway-port-group-2] group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/6 [Quidway-port-group-2] undo port default vlan [Quidway-port-group-2] undo port link-type

clinetwork configurationSSHHuaweitelnetVLANs5700
Practical DevOps Architecture
Written by

Practical DevOps Architecture

Hands‑on DevOps operations using Docker, K8s, Jenkins, and Ansible—empowering ops professionals to grow together through sharing, discussion, knowledge consolidation, and continuous improvement.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.