需求描述:vcenter是用来管理esxi的工具。这里我需要配置一个公网地址。由于我已经把第一个网卡配置了内网地址,所以需要再添加一个网卡
原因分析:这是因为没有网卡的配置,需要自己手动配置
1
2
3
|
localhost:
/etc/sysconfig/networking/devices
# ifup eth1
eth1 device: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
No configuration found
for
eth1
|
解决:
1
2
3
4
5
6
7
8
9
|
1.
cd
/etc/sysconfig/networking/devices
cp
ifcfg-eth0 ifcfg-eth1
vim ifcfg-eth1 手动配置ip
cd
/etc/sysconfig/network
ln
-s
/etc/sysconfig/networking/devices/ifcfg-eth1
.
2.
cd
/dev/
.sysconfig
/network
cp
ifup-eth0 ifup-eth1
cp
config-eth0 config-eth1
3.ifup eth1
|
本文转自 shouhou2581314 51CTO博客,原文链接:http://blog.51cto.com/thedream/1905412,如需转载请自行联系原作者