Verify active links:
esxcli network nic list
Remove disconnected uplinks from the previous step [VMware adds them all]:
esxcli network vswitch standard uplink remove --uplink-name=vmnic0 --vswitch-name=vSwitch0
esxcli network vswitch standard uplink remove --uplink-name=vmnic1 --vswitch-name=vSwitch0
Verify standard vSwitch list:
esxcli network vswitch standard list
Set iphash Load balance and MTU:
esxcli network vswitch standard set --mtu 9000 -v vSwitch0
esxcli network vswitch standard policy failover set -l iphash -v vSwitch0
esxcli network vswitch standard policy failover set --active-uplinks=vmnic2,vmnic3 -v vSwitch0
esxcli network vswitch standard portgroup policy failover set -p "Management Network" -l iphash
esxcli network vswitch standard portgroup policy failover set -p "Management Network" --active-uplinks=vmnic2,vmnic3
Verify iphash load balancing and MTU settings:
esxcli network vswitch standard policy failover get --vswitch-name=vSwitch0
Set DNS server search:
esxcli network ip dns server add --server 10.96.5.43
esxcli network ip dns server add --server 10.96.5.27
esxcli network ip dns search add --domain cscinfo.com
esxcli network ip dns server remove --server 192.168.43.77
Verify DNS server and DNS search:
esxcli network ip dns server list
esxcli network ip dns search list
Configure vmk0 for primary IP:
esxcli network interface ipv4 set --interface-name vmk0 --ipv4 10.133.72.93 --netmask 255.255.254.0 --type static
Create VLANs in ESXi:
Verify portgroup list:
esxcli network standard vswitch portgroup list
Add portgroup:
esxcli network vswitch standard portgroup add --portgroup-name=<portgroup name> --vswitch-name=<vswitch name>
Tag portgroup:
esxcli network vswitch standard portgroup set --portgroup-name=<portgroup name> --vlan-id=<vlan id>
Example:
esxcli network vswitch standard portgroup add --portgroup-name="BK-APIPortal-Preproduction" --vswitch-name="vSwitch0"
esxcli network vswitch standard portgroup set --portgroup-name="BK-APIPortal-Preproduction" --vlan-id=233
No comments:
Post a Comment