esxcli 命令行手动配置esxi负载平衡

 

esxcfg-vswitch -l                                       #查看当前vswitch交换机配置

esxcli network vswitch standard uplink add --uplink-name=vmnic1 --vswitch-name=vSwitch0     #添加vmnic1网卡到vSwitch0中

esxcli network vswitch standard policy failover get -v vSwitch0                  #查看vSwitch0的配置

esxcli network vswitch standard policy failover set -l iphash -v vSwitch0             #配置vSwitch0的策略为iphash 模式

esxcli network vswitch standard portgroup policy failover set -p "Management Network" -l iphash   #配置【管理端口组】的模式也为iphash

 

要更改负载平衡策略,需要为NIC或一组端口分配特定的策略:
explicit – 使用明确故障切换顺序
portid – 基于源虚拟端口的路由
mac – 基于源MAC哈希的路由
iphash – 基于IP哈希的路由

posted on 2022-08-04 15:30  tengq  阅读(262)  评论(0编辑  收藏  举报

导航