Need help setting up a second public IP address
Any help would be great.
5 Replies
Can you ping the second IP address? Looks like could be a problem with this on the VPS level.
Got it done with the following commands for Gentoo …
vi /etc/conf.d/net
config_eth0=( "xxx.xxx.xxx.xxx/24" "yyy.yyy.yyy.yyy/24")
routes_eth0=( "default via xxx.xxx.xxx.1" "default via yyy.yyy.yyy.1" )
/etc/init.d/net.eth0 restart
If anyone is going to follow my footsteps make sure you add the routes_eth0 otherwise you wont work!
1 - I was trying to figure out how to disable the dhcp client after the switch to a static IP was implemented. Turns out you don't need to do anything: if no network interfaces are configured to use dhcp then the dhcp client does not start. You can double check by running the following command
ps -ef | grep "dhcp"
which should return only your 'grep' if nothing else related to dhcp is running
2 - After having switched to a static IP configuration and rebooted my linode, I noticed that the 'sudo' command was saying that a hostname was not found. Looks like you have to set the hostname once manually by creating a file named 'hostname' under /etc in which you should have one line for your hostname: I used the hostname that was assigned by linode and which you can find under the 'Network' tab in the Linode manager. It shows your hostname next to your IP address in the following format
Where
You need to rebbot your linode one more time after creating the /etc/hostname file.
For got you must also add the dns settings
dnsserverseth0=("W.X.Y.Z" "W.X.Y.Z")