- 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
Gentoo instructions
- Edge100x
- Founder
- Posts: 12948
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Thu Apr 18, 2002 11:04 pm
- Location: Seattle
- Contact:
Gentoo instructions
To change IPs in Gentoo: