Vmware useful command

# Displaying the vSwitch configurations
   esxcfg-vswitch -l

# Add/Delete the vSwitch
   esxcfg-vswitch -a esxcfg-vswitch -d

# Display all the NIC's   
   esxcfg-nics -l

# Link another NIC to the switch   
   esxcfg-vswitch -L vmnic1 vSwitch0

# Unlink a NIC from a Switch  
   esxcfg-vswitch -U vmnic0 vSwitch0

# Display current IP address settings  
   esxcfg-vmknic -l

# Change the Service console network  
   esxcfg-vmknic "Management Network" -i 192.168.0.190 -n 255.255.255.0

# Delete/Add the Service Console from a vWsiwtchx  
   escxfg-vswitch vSwitch0 -D "Service_Console_name"  
   esxcfg-vswitch -A "Service_Console_name" vSwitch0

# Add VLAN to the Service Console  
   esxcfg-vswitch vSwitch0 -p "Service_Console_name" -v 0

# Delete/add the Service Console interface  
   esxcfg-vswif -d vswif0  
   esxcfg-vswif -a vswif0 -p "Service_Console_name" -i -n

# Restart the network services   
   service network restart

# Display current CDP settings, it should return "listen"  
   esxcfg-vswitch -b vSwitch0

# Make the vSwitch bidirectional   
   esxcfg-vswitch -B both vSwitch0

# Display CDP data  
   esxcfg-info | more +/CDP\ Summary

# Change the MTU value  
   esxcfg-vswitch -m 1500 vSwitch0

Comments

Popular posts from this blog

VIOS TIPs

Configure Solaris 10 LDOM on Solaris 11.4

Change P410i from HBA mode to Raid mdoe