Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 433 #459
i
i
i
i
i
i
i
i
21
Linux in the Network
21.3.1 Configuration Files
This section provides an overview of the network configuration files and
explains their purpose and the format used.
/etc/syconfig/hardware/*
This directory contains a separate file for every device (network card).
These files contain the configuration parameters (kernel module, start
mode, script assocations, etc.).
/etc/sysconfig/network/ifcfg-*
These files contain data specific to a network interface. They may be named
after the network interface (ifcfg-eth2), the hardware address of a
network card (ifcfg-000086386be3), or the hardware description
(ifcfg-usb). If network aliases are used, the respective files are named
ifcfg-eth2:1 or ifcfg-usb:1. The script ifup gets the interface name
and, if necessary, the hardware description as arguments then searches for
the best matching configuration file.
I S/390, zSeries
IBM S/390 and zSeries do not support USB. The names of the interface files
and network aliases contain S/390-specific elements, like qeth. J
The configuration files contain the IP address (BOOTPROTO=“static”,
IPADDR=“10.10.11.214”) or the direction to use DHCP (BOOT-
PROTO=“dhcp”). The IP address should already contain the netmask
(IPADDR=“10.10.11.214/16”). Refer to man ifup for the complete list of
variables. In addition, all the variables in the files dhcp, wireless, and
config can be used in the ifcfg-* files, if a general setting should only
be used for one interface. By using the variables POST_UP_SCRIPT and
PRE_DOWN_SCRIPT, individual scripts can be run after starting or before
stopping the interface.
/etc/sysconfig/network/config, dhcp, wireless
The file config contains general settings for the behavior of ifup,
ifdown, and ifstatus. dhcp contains settings for DHCP and wireless
for wireless LAN cards. The variables in all three configuration files are
commented and can also be used in ifcfg-* files, where they are treated
with higher priority.
433
SUSE LINUX Enterprise Server