HOWTO Setup a Static IP: Difference between revisions

From Research
Jump to navigation Jump to search
Mmmark (talk | contribs)
No edit summary
Mmmark (talk | contribs)
No edit summary
Line 1: Line 1:
All our servers have static IP addresses because it's more fail reliable as does not depend on a DHCP server.
=== Gentoo ===
=== 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" )


file: /etc/conf.d/net.eth0 (or /etc/conf.d/net if the first does not exist)
If you want to set a static IP to 2 or more bonded network cards, your config would look like this:
  modules=( "iproute2" )
  modules=( "iproute2" )
  config_eth0=( "209.87.56.xxx/24" )
  iproute_eth0=( "null" )
  routes_eth0=( "default via 209.87.56.254" )
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 ===

Revision as of 20:26, 5 September 2006

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