Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • generic /etc/dhclient.conf not working

    Posted on

    Hello
    Im trying to use the generic /etc/dhclient.conf file as mention in
    /etc/sysconfig/network-scripts/ifup-eth file
    But the code seems incorrect because it never uses the generic file.
    I do not want to generate dhcleint.conf for each device.
    Am I missing something or this is a bug?

    # allow users to use generic '/etc/dhclient.conf' (as documented in manpage!)
    # if per-device file doesn't exist or is empty
    if [ -s /etc/dhcp/dhclient-${DEVICE}.conf ]; then
       DHCLIENTCONF="-cf /etc/dhcp/dhclient-${DEVICE}.conf";
    elif [ -s /etc/dhclient-${DEVICE}.conf ]; then
       DHCLIENTCONF="-cf /etc/dhclient-${DEVICE}.conf";
    else
       DHCLIENTCONF='';
    Fi;
    

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat