Summary: This article describes how to change the Management VLAN and IP address on a cnMatrix Switch via cnMaestro and the Switch CLI.
Note: It is not recommended to make a change to the Management IP address remotely. Ensure you have some method of local access (such as a console cable) so if the Switch becomes inaccessible, you can recover it. Alternatively, if you have no option other than to make the change remotely, use the Scheduled Reboot option so that if your configuration fails and you lose access, as long as you do not save the configuration, after the Scheduled Reboot occurs, the configuration will go back to the previous configuration and you can reattempt the change.
cnMaestro
-
Login to your cnMaestro account
-
Click the Devices menu item from the left side menu
-
Click the Switch tab and select the Switch you wish to change the Management VLAN and IP of
-
Select the Configuration tab and expand Advanced Settings
-
On the VLANs tab, you can Add a new VLAN or modify an existing VLAN to add or remove IP addresses.
-
Before applying the configuration, ensure the Default Gateway is reachable from your new Management IP address by clicking the IP Routes tab
-
Click Apply Configuration to push out your change
CLI
-
Login to the Switch via PuTTy or similar SSH terminal application
-
Type the following commands to create a new L3 interface (assuming you have already created a Layer 2 VLAN and applied it to the necessary ports)
configure terminal
interface vlan <vlan>
IP address <IP_address> <subnet mask>
no shutdown
exit
Example
To change the Default Gateway to match your new Management VLAN
configure terminal
ip route 0.0.0.0 0.0.0.0 <defaultgateway>
Example
-
Test that you are able to access via the new management IP address and once you are happy, shutdown the previous L3 Management interface
config terminal
interface vlan <vlan>
shutdown
Example
-
Once you are happy that everything is working, save the configuration
copy running-config startup-config