Show Table of Contents
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
ipoption 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::eth0: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.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.