Configuring an mVLAN
Management VLAN (mVLAN) allows you to use the VLANIF interface of the mVLAN to log in to the management switch to manage devices in a centralized manner.
Context
To use a remote network management system (NMS) to manage devices in a centralized manner, configure a management IP address on the switch. You can then log in to the switch in Telnet mode and manage the switch by using the management IP address. The management IP address can be configured on a management interface or VLANIF interface. If a user-side interface is added to the VLAN, users connected to the interface can also log in to the switch. This brings security risks to the switch.
After a VLAN is configured as an mVLAN, no access interface or Dot1q tunnel interface can be added to the VLAN. Access and Dot1q tunnel interfaces are often connected to users. When these interfaces are prevented from joining the mVLAN, users connected to the interfaces cannot log in to the device, improving device security.
Usually, a VLANIF interface needs to be configured with only one management IP addresses. However, in certain scenarios you need to configure a primary management IP address and multiple secondary management IP addresses, for example, when users in the same mVLAN belong to multiple different network segments.
You can only log in to the local device using the management interface, whereas you can log in to both local and remote devices using a VLANIF interface of an mVLAN. When logging in to the remote device using the VLANIF interface of an mVLAN, you need to configure VLANIF interfaces on both local and remote devices and assign IP addresses on the same network segment to them.
Pre-configuration Tasks
Before configuring an mVLAN, perform the task of assign VLANs.
Only trunk and hybrid interfaces can join the mVLAN.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
vlan vlan-id
The VLAN view is displayed.
- Run:
management-vlan
The VLAN is configured as the mVLAN.
VLAN 1 cannot be configured as the mVLAN.
- Run:
quit
Exit from the VLAN view.
- Run:
interface vlanif vlan-id
A VLANIF interface is created and its view is displayed.
- Run:
ip address ip-address { mask | mask-length } [ sub ]
An IP address is assigned to the VLANIF interface.
Follow-up Procedure
- To manage local devices, log in to the local switch using Telnet, STelnet, HTTPS. For details, see Configuring Telnet Login, Configuring STelnet Login, or Web System Login Configuration in the S12700 V200R010C00 Configuration Guide - Basic Configurations.
- To manage remote devices, log in to the local device using Telnet or STelnet and log in to remote devices using Telnet or STelnet from the local device.see (Optional) Using Telnet to Log In to Another Device From the Local Device in "Configuring Telnet Login", or (Optional) Using STelnet to Log In to Another Device From the Local Device in "Configuring STelnet Login" in the S12700 V200R010C00 Configuration Guide - Basic Configurations.
The login IP address is the IP address of the VLANIF interface of an mVLAN.