Gentoo instructions
Posted: Mon Jun 13, 2011 12:37 pm
To change IPs in Gentoo:
- Log in through the VNC Console page in your control panel.
- Type this command and hit enter:
Code: Select all
nano /etc/conf.d/net
- Cursor down to the line starting with "config_eth0". Between the parentheses, enter all of the IPs and netmasks you've been assigned, each set in quotes, separated by spaces. For instance, the line might end up looking like this:
Code: Select all
config_eth0=("1.1.1.1/255.255.255.0" "1.1.1.2/255.255.255.0" "1.1.1.3/255.255.255.0");
- Edit the line starting with "routes_eth0" to set the gateway:
...where "aaa.bbb.ccc.ddd" is the gateway. If you have IPs that list different gateways, just pick one of them to put here.Code: Select all
routes_eth0=("default via aaa.bbb.ccc.ddd")
- Hit Control-X to exit and enter "Y" when it asks if you wish to save.
- Enter this command to load your new network configuration:
Code: Select all
/etc/init.d/net.eth0 restart