Page 1 of 1

Gentoo instructions

Posted: Mon Jun 13, 2011 12:37 pm
by Edge100x
To change IPs in Gentoo:
  1. Log in through the VNC Console page in your control panel.
  2. Type this command and hit enter:

    Code: Select all

    nano /etc/conf.d/net
    
  3. 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");
    
  4. Edit the line starting with "routes_eth0" to set the gateway:

    Code: Select all

    routes_eth0=("default via aaa.bbb.ccc.ddd")
    
    ...where "aaa.bbb.ccc.ddd" is the gateway. If you have IPs that list different gateways, just pick one of them to put here.
  5. Hit Control-X to exit and enter "Y" when it asks if you wish to save.
  6. Enter this command to load your new network configuration:

    Code: Select all

    /etc/init.d/net.eth0 restart