I just had my VPS server migrated to upgraded hardware and afterwards I was not getting a network connection. I am running Gentoo server.
I first ran the command ifconfig and only the lo adapter was up. So I ran ifconfig eth0 up then ifconfig. The eth0 adapter was there but it did not have an IP address.
I checked the config file /etc/conf.d/net it looks like:
config_eth0=("70.42.74.192 netmask 255.255.255.0")
routes_eth0=("default via 70.42.74.254")
I have run /etc/init.d/network restart and rebooted the machine several times. All results with no IP address for the eth0 adapter.
Any help will be appreciated.
VPS Is Not Using Network Address in /etc/conf.d/net
-
- New to forums
- Posts: 3
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Mon May 10, 2010 3:18 pm
Re: VPS Is Not Using Network Address in /etc/conf.d/net
It is likely that you either do not have /etc/init.d/net.eth0 defined or it is not in your default runlevel. Try this:
/etc/init.d/net.eth0 restart
If that is not a valid command, copy the net.lo file over and try again:
ln -s /etc/init.d/net.lo /etc/init.d/net.eth0
If this gives you a valid IP in "ifconfig", make sure that it's also in the default runlevel:
rc-update add net.eth0 default
/etc/init.d/net.eth0 restart
If that is not a valid command, copy the net.lo file over and try again:
ln -s /etc/init.d/net.lo /etc/init.d/net.eth0
If this gives you a valid IP in "ifconfig", make sure that it's also in the default runlevel:
rc-update add net.eth0 default
Re: VPS Is Not Using Network Address in /etc/conf.d/net
Thank you this resolved my issue.