其他分享
首页 > 其他分享> > ESXI安装megacli

ESXI安装megacli

作者:互联网

# 一 vmware ESXI安装megacli

vmware-esx-MegaCli-8.04.07.vib

将此安装文件上传至服务器,可使用vmware vsphere client客户端。

开启ssh服务,

使用vmware vsphere client连接服务器,

依次点击“配置”——“安全文件配置”——“服务”——“属性”中开启ssh。

使用ssh连接服务器后:

#开始安装,安装文件使用绝对路径
esxcli software vib install -v /vmware-esx-MegaCli-8.04.07.vib --no-sig-check
#安装完毕后cd到MegaCli的目录
cd /opt/lsi/MegaCLI
#打印一下help
./MegaCli -help

./MegaCli -LdPdInfo -aALL


# 二 添加静态路由

 

打开esxi主机的ssh,通过ssh登陆到命令行界面下

## 1 临时添加静态路由如下:

添加静态路由命令
esxcli network ip route ipv4 add --gateway 10.195.1.254 --network 10.0.0.0/8
esxcli network ip route ipv4 add --gateway 10.195.1.254 --network 172.27.0.0/24
## 2 查看当前路由
[root@ESXI043:~] esxcfg-route -l
VMkernel Routes:
Network Netmask Gateway Interface
172.27.0.0 255.255.255.0 10.195.1.254 vmk0
10.195.0.0 255.255.254.0 Local Subnet vmk0
172.27.0.0 255.255.0.0 10.195.1.254 vmk0
10.0.0.0 255.0.0.0 10.195.1.254 vmk0
default 0.0.0.0 10.195.0.25 vmk0
## 3 永久添加

该路由添加后重启机器会失效,添加到启动脚本开机自动运行

vi /etc/rc.local.d/local.sh
#!/bin/sh
# local configuration options

# Note: modify at your own risk! If you do/use anything in this
# script that is not part of a stable API (relying on files to be in
# specific places, specific tools, specific output, etc) there is a
# possibility you will end up with a broken system after patching or
# upgrading. Changes are not supported unless under direction of
# VMware support.
esxcli network ip route ipv4 add --gateway 10.195.1.254 --network 10.0.0.0/8
esxcli network ip route ipv4 add --gateway 10.195.1.254 --network 172.27.0.0/24
重启后也能生效

标签:network,megacli,--,0.0,10.195,ssh,ESXI,安装,1.254
来源: https://www.cnblogs.com/python-uuu/p/16633725.html