On Gentoo the main portion of the network configuration will be done inside the configuration file /etc/conf.d/net.

For example, to configure the IP address and netmask for the eth0 interface you should add the following line to the /etc/conf.d/net file:

config_eth0 {" netmask"}

config_eth0=( " netmask" ) (27/09/2010)


this line will set the IP address = and the netmask =

  • to view all network devices you can issue the following command:

# ls /dev/init.d/net*

# ls /etc/init.d/net*

  • if your device is not listed you shall procede as follows:
  • make a link to net.lo

# ln -s /etc/init.d/net.lo /etc/init.d/net.<your device name>

  • Bring up the interface

# /etc/init.d/net.<your device name> start

  • If you want the interface to be brought up on boot, use the rc-update command issuing the following command:

# rc-update add net.<your device name> default.

To change the IP address and netmask of the interface go to the first few lines of this article.