esxcli network vswitch standard portgroup set -p=
"Management Network"
-v=3064
esxcli network vswitch standard uplink remove -u=vmnic5 -v=vSwitch0
esxcli network vswitch standard uplink add -u=vmnic5 -v=vSwitch0
esxcli network vswitch standard uplink remove -u=vmnic4 -v=vSwitch0
esxcli network vswitch standard uplink add -u=vmnic4 -v=vSwitch0
esxcli network vswitch standard uplink remove -u=vmnic1 -v=vSwitch0
esxcli network vswitch standard uplink add -u=vmnic1 -v=vSwitch0
esxcli network ip interface ipv4 set -i=vmk0 -I=10.71.64.107 -N=255.255.255.0 -t=static
esxcli network vswitch standard policy failover set -a=vmnic0,vmnic1,vmnic4,vmnic5 -l=iphash -v=vSwitch0
esxcli network vswitch standard portgroup policy failover set -p=
"Management Network"
-u
esxcfg-route 10.71.64.1
esxcli network vswitch standard portgroup remove -p=
"VM Network"
-v=vSwitch0
esxcli network vswitch standard uplink remove -u=vmnic0 -v=vSwitch0
esxcli network vswitch standard uplink add -u=vmnic0 -v=vSwitch0
===========================================================================================
esxcli network vswitch standard add -v=vSwitch1
esxcli network vswitch standard uplink add -u=vmnic7 -v=vSwitch1
esxcli network vswitch standard uplink add -u=vmnic6 -v=vSwitch1
esxcli network vswitch standard uplink add -u=vmnic3 -v=vSwitch1
esxcli network vswitch standard uplink add -u=vmnic2 -v=vSwitch1
esxcli network vswitch standard portgroup add -p=
"C1_VLAN10"
-v=vSwitch1
esxcli network vswitch standard portgroup set -p=
"C1_VLAN10"
-v=10
esxcli network vswitch standard portgroup add -p=
"DMZ"
-v=vSwitch1
esxcli network vswitch standard portgroup set -p=
"DMZ"
-v=3127
esxcli network vswitch standard policy failover set -a=vmnic2,vmnic3,vmnic6,vmnic7 -l=iphash -v=vSwitch1
=============================================================================================
esxcli system hostname set --host aunswesx07
esxcli network ip dns search add --domain=test.com.au
esxcli network ip dns server add --server=10.70.0.19
esxcli network ip dns server add --server=10.70.0.12
esxcli system settings advanced set -o=
"/UserVars/SuppressShellWarning"
-i=1
================================================================================================
================================================================================================
esxcli system syslog config set --loghost
'udp://auttnm01.test.com.au:514'
esxcli network firewall ruleset set --ruleset-id syslog --enabled true
esxcli network firewall refresh
================================================================================================
================================================================================================
esxcli system snmp set --communities=EsxSNMP --enable=yes --targets=10.71.32.203/EsxSNMP
================================================================================================
================================================================================================
esxcli network firewall ruleset set --ruleset-id ntpClient --enabled true
echo restrict 127.0.0.1 > /etc/ntp.conf
echo restrict
default
kod nomodify notrap noquerynopeer >> /etc/ntp.conf
echo server 10.71.64.125 >> /etc/ntp.conf
echo server 10.71.3.125 >> /etc/ntp.conf
echo driftfile /etc/ntp.drift >> /etc/ntp.conf
/sbin/chkconfig ntpd on
=================================================================================================
esxcli network vswitch standard add -v vSwitchISCSI
esxcli network vswitch standard set -m 9000 -v vSwitchISCSI
esxcli network vswitch standard uplink add -u vmnic11 -v vSwitchISCSI
esxcli network vswitch standard uplink add -u vmnic9 -v vSwitchISCSI
esxcli network vswitch standard portgroup add -p iSCSI0 -v vSwitchISCSI
esxcli network vswitch standard portgroup set -p iSCSI0 -v 10
esxcli network ip interface add -p iSCSI0 -i vmk1
esxcli network ip interface set -m 9000 -i vmk1
esxcli network ip interface ipv4 set -i=vmk1 -I=192.168.0.22 -N=255.255.255.0 -t=static
esxcli network vswitch standard portgroup add -p iSCSI1 -v vSwitchISCSI
esxcli network vswitch standard portgroup set -p iSCSI1 -v 10
esxcli network ip interface add -p iSCSI1 -i vmk2
esxcli network ip interface set -m 9000 -i vmk2
esxcli network ip interface ipv4 set -i=vmk2 -I=192.168.0.23 -N=255.255.255.0 -t=static
esxcli network vswitch standard portgroup add -p=
"iSCSI_Passthrough"
-v=vSwitchISCSI
esxcli network vswitch standard portgroup set -p=
"iSCSI_Passthrough"
-v=4095
esxcli network vswitch standard portgroup add -p vMotion -v vSwitchISCSI
esxcli network vswitch standard portgroup set -p vMotion -v 4050
esxcli network ip interface add -p vMotion -i vmk3
esxcli network ip interface set -m 9000 -i vmk3
esxcli network ip interface ipv4 set -i=vmk3 -I=172.0.0.105 -N=255.255.255.0 -t=static
esxcli network vswitch standard policy failover set -a=vmnic9,vmnic11 -v=vSwitchISCSI
vim-cmd hostsvc/vmotion/vnic_set vmk3