HOWTO Setup a Static IP

From Research
Revision as of 20:26, 5 September 2006 by Mmmark (talk | contribs)
Jump to navigation Jump to search

All our servers have static IP addresses because it's more fail reliable as does not depend on a DHCP server.

Gentoo

If you want to use the iproute2 module, make sure you emerge this package or networking will fail!!


File: /etc/conf.d/net.eth0 (or /etc/conf.d/net if the first does not exist)

config_eth0=( "209.87.56.xx/24" )
routes_eth0=( "default via 209.87.56.254" )

If you want to set a static IP to 2 or more bonded network cards, your config would look like this:

modules=( "iproute2" )
iproute_eth0=( "null" )
iproute_eth1=( "null" )
slaves_bond0="eth0 eth1"
ipaddr_bond0=( "209.87.56.16/24 brd 209.87.56.255" )
iproute_bond0=( "default via 209.87.56.254" )

SUSE Linux

Fedora Core