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
No comments:
Post a Comment