23.2. Network boot options
You can configure network boot options to enable RHEL installation over network connections. These options allow you to set up network interfaces, specify IP addresses, configure bonding, bridging, and VLANs for network-based installations and remote system deployment.
+
Initialize the network with the dracut tool. For a complete list of dracut options, see the dracut.cmdline(7) man page on your system.
- ip=
Use the
ip=boot option to configure one or more network interfaces. To configure multiple interfaces, use one of the following methods-
use the
ipoption multiple times, once for each interface; to do so, use therd.neednet=1option, and specify a primary boot interface using thebootdevoption. use the
ipoption once, and then use Kickstart to set up further interfaces. While the configuration with ip= option is applied early in the installation process, the configuration defined in kickstart is applied at a later stage of installation, after the start of the installation program.This option accepts several different formats. The following tables contain information about the most common options. In the following tables:
-
The
ipparameter specifies the client IP address andIPv6requires square brackets, for example 192.0.2.1 or [2001:db8::99]. -
The
gatewayparameter is the default gateway.IPv6requires square brackets. -
The
netmaskparameter is the netmask to be used. This can be either a full netmask (for example, 255.255.255.0) or a prefix (for example, 64). The
hostnameparameter is the host name of the client system. This parameter is optional.Expand 表 23.3. Boot option formats to configure the network interface Boot option format Configuration method ip=methodAutomatic configuration of all interfaces.
ip=interface:methodAutomatic configuration of a specific interface
ip=ip::gateway:netmask:hostname:interface:noneStatic configuration, for example, IPv4:
ip=192.0.2.1::192.0.2.254:255.255.255.0:server.example.com:enp1s0:noneIPv6:
ip=[2001:db8::1]::[2001:db8::fffe]:64:server.example.com:enp1s0:noneip=ip::gateway:netmask:hostname:interface:method:mtuAutomatic configuration of a specific interface with an override
-
use the
- Configuration methods for the automatic interface
The method
automatic configuration of a specific interface with an overrideopens the interface by using the specified method of automatic configuration, such asdhcp, but overrides the automatically obtained IP address, gateway, netmask, host name or other specified parameters. All parameters are optional, so specify only the parameters that you want to override. For the values of themethodparameter, see thedracut.cmdline(7)man page on your system.注意-
If you use a boot option that requires network access, such as
inst.ks=http://host/path, without specifying theipoption, the default value of theipoption isip=dhcp.. -
To connect to an iSCSI target automatically, activate a network device for accessing the target by using the
ip=ibftboot option.
nameserver=- Thenameserver=option specifies the address of the name server. You can use this option multiple times.注意The
ip=parameter requires square brackets. However, an IPv6 address does not work with square brackets. An example of the correct syntax to use for an IPv6 address isnameserver=2001:db8::1.-
bootdev=- Thebootdev=option specifies the boot interface. This option is mandatory if you use more than oneipoption. ifname=- Theifname=options assigns an interface name to a network device with a given MAC address. You can use this option multiple times. The syntax isifname=interface:MAC. For example:ifname=eth0:01:23:45:67:89:ab注意The
ifname=option is the only supported way to set custom network interface names during installation.-
inst.dhcpclass=- Theinst.dhcpclass=option specifies the DHCP vendor class identifier. Thedhcpdservice recognizes this value asvendor-class-identifier. The default value isanaconda-$(uname -srm). To ensure theinst.dhcpclass=option is applied correctly, request network activation during the early stage of installation by also adding theipoption. -
inst.waitfornet=- Using theinst.waitfornet=SECONDSboot option causes the installation system to wait for network connectivity before installation. The value given in theSECONDSargument specifies the maximum amount of time to wait for network connectivity before timing out and continuing the installation process even if network connectivity is not present. vlan=- Use thevlan=option to configure a Virtual LAN (VLAN) device on a specified interface with a given name. The syntax isvlan=name:interface. For example:vlan=vlan5:enp0s1This configures a VLAN device named
vlan5on theenp0s1interface. The name can take the following forms:-
VLAN_PLUS_VID:
vlan0005 -
VLAN_PLUS_VID_NO_PAD:
vlan5 -
DEV_PLUS_VID:
enp0s1.0005 -
DEV_PLUS_VID_NO_PAD:
enp0s1.5
-
VLAN_PLUS_VID:
bond=- Use thebond=option to configure a bonding device with the following syntax:bond=name[:interfaces][:options]. Replace name with the bonding device name, interfaces with a comma-separated list of physical (Ethernet) interfaces, and options with a comma-separated list of bonding options. For example:bond=bond0:enp0s1,enp0s2:mode=active-backup,tx_queues=32,downdelay=5000For a list of available options, execute the
modinfo bondingcommand.bridge=- Use thebridge=option to configure a bridge device with the following syntax:bridge=name:interfaces. Replace name with the desired name of the bridge device and interfaces with a comma-separated list of physical (Ethernet) devices to be used as underlying interfaces in the bridge device. For example:bridge=bridge0:enp0s1,enp0s2
-
If you use a boot option that requires network access, such as