cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
46501
Views
0
Helpful
7
Replies

change ip address and default gateway

techdrv_cisco
Level 1
Level 1

Hi,

How to change ip address and default gateway of cisco nexus 1000v switch (VSM) ?

DV            

7 Replies 7

sachthak
Level 1
Level 1

Hello DV,

To change the VSM's management ip address and gateway you must reconfigure the mgmt0 interface and appropriate ip route.

For example, you could do the following:

conf t

interface mgmt 0

ip address 192.168.0.100/24

exit

vrf context management

ip route 0.0.0.0/0 192.168.0.1

exit

copy run start

In the above situation I assigned 192.168.0.100 as the mgmt ip address of the VSM with gateway 192.168.0.1 and subnet mask corresponding to 255.255.255.0

PS: You may also pass the ip address command as the following if the length of the netmask is not known: ip address 192.168.0.100 255.255.255.0

Hope this helps.

sachin

Thanks for reply

DV

Hi,

would changing the IP of the VSM have any impact on vCenter? Would there be any reconfig work required on the vCenter or the ESXi hosts?

Thanks

Kassim

Hi Kassim,

No reconfiguration will be needed.

However, do note that if your VSM is connected to the VEM via L3, then changing the mgmt0 or control0 interface IP will require the modules to reconnect to the new ip on the interface.

Thanks,

sachin

dear

kindly what is the diference between configuring the managment interface of the nexus switch with :

interface mgmt 0

ip address 192.168.0.100/24

and configuring it with the old way : 

interface vlan 1

ip address 192.168.0.100

interface vlan - in band management

interface mgmt0 - out of band management

simple as that

how to check the Gw info after configuring ?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: