Installation guide
Configures network information for the system. If the kickstart installation requires
networking (when the Kickstart file is accessed over HTTP, FTP or NFS), the device specified
in the first network command is activated with configuration specified by the command. If
the --device= option is not specified and multiple network devices are available, the
device used to access the Kickstart file over the network is selected, or the user is asked to
choose the device.
Note that if network configuration is not specified in the first network command (for
example, if the --bootproto= option is missing), the device will be activated with
configuration set by boot options. On the installed system, this device will be configured
using the default value, which is --bootproto=dhcp.
--bootproto= — One of dhcp, bootp, static or query.
The default option is dhcp. bootp and dhcp are treated the same.
The DHCP method uses a DHCP server system to obtain its networking configuration.
As you might guess, the BOOTP method is similar, requiring a BOOTP server to supply
the networking configuration. To direct a system to use DHCP:
network --bootproto=dhcp
To direct a machine to use BOOTP to obtain its networking configuration, use the
following line in the kickstart file:
network --bootproto=bootp
The static method requires that you enter all the required networking information in the
kickstart file. As the name implies, this information is static and is used during and after
the installation. The line for static networking is more complex, as you must include all
network configuration information on one line. You must specify the IP address,
netmask, gateway, and nameserver.
Note that although the presentation of this example on this page has broken the line, in
a real kickstart file, you must include all this information on a single line with no break.
network --bootproto=static --ip=10.0.2.15 --netmask=255.255.255.0
--gateway=10.0.2.254 --nameserver=10.0.2.1
If you use the static method, be aware of the following two restrictions:
All static networking configuration information must be specified on one line; you
cannot wrap lines using a backslash, for example.
You can also configure multiple nameservers here. To do so, specify them as a
comma-delimited list in the command line.
Note that although the presentation of this example on this page has broken the line,
in a real kickstart file, you must include all this information on a single line with no
break.
network --bootproto=static --ip=10.0.2.15 --netmask=255.255.255.0
--gateway=10.0.2.254 --nameserver 192.168.2.1,192.168.3.1
If you set this option to query, you will be prompted to manually configure the network
options during the actual installation process.
Chapt er 31 . Kickst art Inst allat ions
295