Red Hat Bugzilla – Bug 836233
Static IPV4 and IPV6 addresses are not set to interface if DHCPv4 failed for this interface
Last modified: 2016-11-25 08:05:45 EST
Description of problem: Static IPV4 and IPV6 addresses are not set to interface if DHCPv4 failed for this interface Version-Release number of selected component (if applicable): initscripts-9.03.31-2.el6 How reproducible: 100% Steps to Reproduce: 1. Configure the eth0 as DHCP + static IPV4 + static IPV6: --- CT-106-bash-4.1# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" ONBOOT="yes" BOOTPROTO="static" DHCPV6C="no" IPV6INIT="yes" IPV6ADDR_SECONDARIES="2001:aaad::a1d:8290/64" IPADDR="1.1.1.2" NETMASK="" --- 2. service network restart (or ifup eth0) 3. see that both IPV4 and IPV6 addresses are not assigned if dhcpv4 client failed Actual results: --- CT-106-bash-4.1# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:1C:42:FE:07:84 inet6 addr: fe80::21c:42ff:fefe:784/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3551808 errors:0 dropped:0 overruns:0 frame:0 TX packets:144 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:302572596 (288.5 MiB) TX bytes:20662 (20.1 KiB) --- Expected results: Both static addresses are assigned to eth0 Additional info: The problem is in /etc/sysconfig/network-scripts/ifup-eth : [...] if /sbin/dhclient ${DHCLIENTARGS} ${DEVICE} ; then echo $" done." else echo $" failed." exit 1 fi as you can see, all work stopped if dhclient failed. Please, fix.
*** Bug 903311 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1679.html