Disable IPv4 on SuSE Linux
Hi,
How to disable IPv4 on SuSE linux?
Thanks in advance.
Linux
Hi,
How to disable IPv4 on SuSE linux?
Thanks in advance.
by eldhom Accepted solution
by jck Accepted solution
Don't know if you would really want to. Removing IPv4 from the kernel and recompiling might blow up stuff.
But alas, you can always remove the IPv4 from the kernel and recompile it entirely.
Good luck
by eldhom Accepted solution
by seanferd Accepted solution
Aside from recompiling without the IPv4 stack, that's about all you can do.
What are you trying to accomplish by disabling this?
by Member 34974520 Accepted solution
It seems possible if you have set a static IPv4 address, but the script does not respect having NO IPv4 address.
So edit /etc/sysconfig/networking-scripts/ifup-eth:
add the following after line 225 (/etc/sysconfig/network-scripts/ifup-ipv6 ${CONFIG}):
if [[ "${DHCPV6C}" = [Yy1]* ]] && [ -x /sbin/dhcp6c ]; then
/sbin/dhcp6c ${DEVICE};
dhcp6_pid=(`/bin/ps -eo 'pid,args' | /bin/grep "dhcp6c ${DEVICE}" | egrep -v grep`);
echo ${dhcp6_pid[0]} > /var/run/dhcp6c_${DEVICE}.pid
fi
This initializes IPv6 dhcp if required, even if the IPv4 interface is NOT dhcp, and has NO ip address.
This discussion is closed to new replies.
Sort by Trending