CentOS 7 VMware 联网

dhclient –v
ip addr


Add this in auto-startup
cd /etc/init.d

vi net-autostart
#!/bin/bash
# Solution for "No Internet Connection from VMware"
#
### BEGIN INIT INFO
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
dhclient -v


chmod 755 net-autostart
chkconfig --add net-autostart

restart vm to test

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

1 × 4 =