Question Locked

Disable IPv4 on SuSE Linux

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
How to disable IPv4 on SuSE linux?
Thanks in advance.

5 replies

by jck

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

Thank you very much for your valuable reply!!!

by seanferd

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

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.