RHEL 6 NOZEROCONF
Is NOZEROCONF still an option in RHEL 6 /etc/sysconfig/network file?
I did see the variable listed under the RHEL 6 deployment guide for /etc/sysconfig/network
Thank you for your time.
Responses
For your reference, all possible configuration parameters are documented in sysconfig.txt shipped with the initscripts package:
# locate sysconfig.txt
/usr/share/doc/initscripts-9.03.49/sysconfig.txt
# rpm -qf $(locate sysconfig.txt)
initscripts-9.03.49-1.el6.x86_64
# egrep -A2 ZEROCONF $(locate sysconfig.txt)
NOZEROCONF=
Set this to not set a route for dynamic link-local addresses.
--
NOZEROCONF=
Set this to not set a route for dynamic link-local addresses
over this device.
In this https://access.redhat.com/solutions/8627 they use yes/no,,,
//Zdenek
I have never liked NOZEROCONF as an option mainly because it can lead to a double negative, eg.
NOZEROCONF=no
But more importantly, it doesn't appear to behave how you would expect, see this:
http://www.linuxstories.eu/2011/02/zero-configuration-network-zeroconf.html
The value for the "NOZEROCONF" parameter can actually be set to any value, the initscripts only check to determine whether the parameter has zero length. So setting "NOZEROCONF=no" will have the same effect as setting it to "yes". You will need to comment or remove the variable to reactive ZEROCONF.
Not sure if this is still the case, will need to test again.
You're correct, ifup-eth and ifup-ib only check if the string is non-zero:
# Add Zeroconf route.
if [ -z "${NOZEROCONF}" -a "${ISALIAS}" = "no" -a "${REALDEVICE}" != "lo" ]; then
ip route add 169.254.0.0/16 dev ${REALDEVICE} metric $((1000 + $(cat /sys/class/net/${REALDEVICE}/ifindex))) scope link
fi
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
