Bug 477534

Summary: ifup-eth calls dhcp6c when IPv6 is disabled
Product: [Fedora] Fedora Reporter: Ryan O'Hara <rohara>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: notting, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-22 16:06:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ryan O'Hara 2008-12-21 17:58:22 UTC
If IPV6INIT is set to "no" in an interface's ifcfg file, dhcp6c will still get called. This seems incorrect. IPV6INIT = "no" should disable IPv6 for that interface and the ifup-eth script should honor that.

Here is the relevant code form ifup-eth:

# IPv6 initialisation?
/etc/sysconfig/network-scripts/ifup-ipv6 ${CONFIG}
if [[ "${DHCPV6C}"  = [Yy1]* ]] && [ -x /sbin/dhcp6c ]; then
    /sbin/dhcp6c ${DEVICE};


The ifup-ipv6 script actually checks the value of IPV6INIT, and if it is not set to "yes", the script exits. Regardless of what ifup-ipv6 does, ifup-eth will continue to run dhcp6c.

Bottom line that that I would expect IPV6INIT="no" to prevent dhcp6c from being run.

Comment 1 Bill Nottingham 2008-12-22 16:06:30 UTC
You have conflicting configuration - you've explicitly configured dhcp6c to run.