ESXi 6.0 配置

ESXi 6.0 添加静态路由

首先打开ESXi的SSH服务, 在Configuration -> Security Profile -> Services , start SSH

用管理员登录后, 在命令行下执行

~ # esxcli network ip route ipv4 add --gateway 192.168.20.59 --network 10.8.0.0/24
# 检查路由是否正确添加
~ # esxcfg-route -l

对于5.0及5.0之前的ESXi, 执行

esxcfg-route -a 192.168.100.0/24 192.168.0.1
# or
esxcfg-route -a 192.168.100.0 255.255.255.0 192.168.0.1 

因为这个版本还不能持久化路由配置, 需要在 /etc/rc.local 中添加这个路由命令

原文地址:https://www.cnblogs.com/milton/p/5182103.html