Showing posts with label 1000v Configuration. Show all posts
Showing posts with label 1000v Configuration. Show all posts

8.11.2011

Temporarily Add System VLAN to VEM

You can temporarily add system vlans with vemset if someone forgot and rebooted an ESXi host:
vemset system-vlan <vlan-id> ltl <ltl-num>


Example: If someone forgot to add management as a system vlan on their vEthernet port profile, and is now locked out of the host.

Check which vmk port you want:
~ # esxcfg-vmknic -l
Interface  Port Group/DVPort   IP Family IP Address                              Netmask         Broadcast       MAC Address       MTU     TSO MSS   Enabled Type   
vmk0       130                 IPv4      14.17.125.14                            255.255.255.0   14.17.125.255   00:50:56:7c:24:a9 1500    65535     true    STATIC 

Find the ltl:
~ # vemcmd show port
  LTL   VSM Port  Admin Link  State  PC-LTL  SGID  Vem Port
   17     Eth4/1     UP   UP    F/B*    305     0  vmnic0
   18     Eth4/2     UP   UP    F/B*    305     0  vmnic1
   49      Veth3     UP   UP    FWD       0     0  vmk0

Find the vlan:
~ # vemcmd show port vlans
                        Native  VLAN   Allowed
  LTL   VSM Port  Mode  VLAN    State  Vlans
   17     Eth4/1   T        1   FWD    64,125,129,225,325
   18     Eth4/2   T        1   FWD    64,125,129,225,325
   49      Veth3   A      125   FWD    125

Make it a system VLAN:
~ # vemset system-vlan 125 ltl 49

3.29.2011

Change vCenter Data Center Name for 1000v

If you have changed your vCenter Data Center name and are in need of changing it in your Nexus 1000v switch, the following procedure can be followed:

From the 1000v, disconnect the VSM from vCenter:
JenN1K# conf t
JenN1K(config)# svs connection vc
JenN1K(config-svs-conn)# no connect

Change the name in the 1000v's running configuration to reflect the Data Center name change:
JenN1K(config-svs-conn)# vmware dvs datacenter-name <New name>

Reconnect the svs connection:
JenN1K(config-svs-conn)# connect

Ensure the configuration is saved in the event of a reboot or switchover:
JenN1K# copy running-config startup-config