Search

3.7. Configuring IP Networking from the Kernel Command line

download PDF
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:
  1. Install the dracut utility. For information on using dracut, see Red Hat Enterprise Linux System Administrator's Guide
  2. 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}
    • dhcp - DHCP configuration
    • dhpc6 - DHCP IPv6 configuration
    • auto6 - automatic IPv6 configuration
    • on, any - any protocol available in the kernel (default)
    • none, off - no autoconfiguration, static network configuration
    For example:
    ip=192.168.180.120:192.168.180.100:192.168.180.1:255.255.255.0::enp1s0:off
  3. 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.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.