# 列出当前虚拟机
esxcfg-vswitch -l
esxcfg-vswif -l
esxcfg-nics -l

# 重启vmware服务
service mgmt-vmware restart

# 查看vmware版本
vmware -v

# 添加标准交换机
esxcfg-vswitch -l
esxcli network vswitch standard list 
esxcfg-vswitch -a vSwitch1
esxcli network vswitch standard add -v vSwitch1
esxcfg-vswitch -L vmnic1 vSwitch1
esxcfg-vswitch -l
esxcli network vswitch standard uplink add -u vmnic1 -v vSwitch1

# 添加端口组
esxcfg-vswitch –A <Port Group Name> <vSwitch name>
esxcfg-vswitch <vSwitch name> –v <VLAN ID> -p <Port groupname>

# 添加vMontion网络
esxcfg-vswitch -A "vMotionNetwork" vSwitch1
esxcfg-vmknic -a -i 19.86.100.199 -n 255.255.255.0 -m 9000 "vMotionNetwork"
vim-cmd hostsvc/vmotion/vnic_set vmk1
esxcfg-vmknic -l
esxcfg-vswitch -m 9000 vSwitch1
esxcli network vswitch standard set --mtu=9000 --vswitch-name=vSwitch1
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-08-25 15:40:04

results matching ""

    No results matching ""