Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
3.7. Configuring IP Networking from the Kernel Command line
When connecting to the root file system on an iSCSI target from an interface, the network settings are not configured on the installed system. For solution of this problem:
- Install the dracut utility. For information on using dracut, see Red Hat Enterprise Linux System Administrator's Guide
- Set the configuration using the
ip
option on the kernel command line:ip<client-IP-number>:[<server-id>]:<gateway-IP-number>:<netmask>:<client-hostname>:<interface>:{dhcp|dhcp6|auto6|on|any|none|off}
For example:dhcp
- DHCP configurationdhpc6
- DHCP IPv6 configurationauto6
- automatic IPv6 configurationon
,any
- any protocol available in the kernel (default)none
,off
- no autoconfiguration, static network configuration
ip=192.168.180.120:192.168.180.100:192.168.180.1:255.255.255.0::enp1s0:off
- Set the name server configuration:
nameserver=srv1 [nameserver=srv2 [nameserver=srv3 […]]]
The dracut utility sets up a network connection and generates new
ifcfg
files that can be copied to the /etc/sysconfig/network-scripts/
file.