VPS Is Not Using Network Address in /etc/conf.d/net

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Soloist
New to forums
New to forums
Posts: 3
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon May 10, 2010 3:18 pm

VPS Is Not Using Network Address in /etc/conf.d/net

Post by Soloist »

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.
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: VPS Is Not Using Network Address in /etc/conf.d/net

Post by Edge100x »

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
Soloist
New to forums
New to forums
Posts: 3
Joined: Mon May 10, 2010 3:18 pm

Re: VPS Is Not Using Network Address in /etc/conf.d/net

Post by Soloist »

Thank you this resolved my issue.
Post Reply