修改IP地址
#修改 Service console 地址
esxcfg-vswif -i 10.0.0.1 -n 255.255.255.0 vswif0 (网络设备)
# 修改机器IP地址
vi /etc/hosts
#修改机器名和网关
vi /etc/sysconfig/network
#使用此命令重启网卡
service network restart
其它
1:看你的esx版本。
vmware -v
2:列出esx里知道的服务
esxcfg-firewall -s
3:查看具体服务的情况
esxcfg-firewall -q sshclinet
4:重新启动vmware服务
service mgmt-vmware restart
5: 修改root的密码
passwd root
6:列出你当前的虚拟交换机
esxcfg-vswitch -l
7:查看控制台的设置
esxcfg-vswif -l
8:列出系统的网卡
esxcfg-nics -l
9:添加一个虚拟交换机,名字叫(internal)连接到两块物理网卡,(重新启动服务,vi就能看见了)
esxcfg-vswitch -a vSwitch1
esxcfg-vswitch -A internal vSwitch1
esxcfg-vswitch -L vmnic1 vSwitch1
esxcfg-vswitch -L vmnic2 vSwitch1
10:删除交换机,(注意,别把控制台的交换机也删了)
esxcfg-vswitch -D vSwitch1
11:删除交换机上的网卡
esxcfg-vswitch -u vmnic1 vswitch2
12:删除portgroup
esxcfg-vswitch -D internel vswitch1
13:创建 vmkernel switch ,如果你希望使用vmotion,iscsi的这些功能,你必须创建( 通常是不需要添加网关的)
esxcfg-vswitch -l
esxcfg-vswitch -a vswitch2
esxcfg-vswitch -A “vm kernel” vswitch2
esxcfg-vswitch -L vmnic3 vswitch2
esxcfg-vmknic -a “vm kernel” -i 172.16.1.141 -n 255.255.252.0
esxcfg-route 172.16.0.254
14:打开防火墙ssh端口
esxcfg-firewall -e sshClient
esxcfg-firewall -d sshClient
15: 创建控制台
esxcfg-vswitch -a vSwitch0
esxcfg-vswitch -A “service console” vSwitch0
esxcfg-vswitch -L vmnic0 vSwitch0
esxcfg-vswif -a vswif0 -p “service console” -i 172.16.1.140 -n 255.255.252.0
16: 添加nas设备(a 添加标签,-o,是nas服务器的名字或ip,-s 是nas输入的共享名字)
esxcfg-nas -a isos -o nas.vmwar.cn -s isos
17:列出nas连接
esxcfg-nas -l
18: 强迫esx去连接nas服务器(用esxcfg-nas -l 来看看结果)
esxcfg-nas -r
esxcfg-nas -l
19:连接iscsi 设备(e:enable q:查询 d:disable s:强迫搜索)
esxcfg-swiscsi -e
20:设置targetip
vmkiscsi-tool -D -a 172.16.1.133 vmhba40
21:列出和target的连接
vmkiscsi-tool -l -T vmhba40
22:列出当前的磁盘
ls -l mfs/devices/disks
分享到:
相关推荐
VMware ESX Server 常用命令介绍,包含系统管理,网络维护,磁盘管理等等。
列出VMware ESX Server常用命令、用途
VMware ESX Server 常用命令
vmware esx 常用命令集锦,非常实用,希望对大家有用处。
VMWare ESX Server 2.x
Detailing the design and deployment of a VMware ESX Server environment, and written from the practical experience of proven VMware engineers, this book provides IT architects with the insight needed ...
通过网络安装VMware ESX Server
无操作系统的VMWare ESX Server安装方法
ESX Server3.5的安装与破解全过程: ESX Server 是VMWare 虚拟化解决方案中企业级的软件产品,实际上是一个精简的linux底层加上vmware服务。从vmware公司的网站下载ESX Server3.5,最新版本4.0,下载60天试用版,...
ESX_4.1常用命令,可以解决客户端无法解决的问题。
VMware ESX Server 3.5 2 CPU license ,经验证可用。
esx常用命令[借鉴].pdf
详细记录了在Vmware Server下操作一些命令
更改ESX服务器的IP地址-及VMware_ESX常用命令
详细解释VMWare Workstation、GSX Server、ESX Server及区别
vmware esx server 端口连接图
VMware's ESX Server is the enterprise tool to free your infrastructure from its physical limitations providing the great transformation into a virtual environment--this book shows you how. Use ...
ESX Server WEB管理功能默认是禁用的,若要使用WEB管理,则需对系统做一些配置
ESX Server 4.0 安装时 常用命令行
esx server 使用手册 图片演示丰富