Disable IPv4 on SuSE Linux

By eldhom ·
How to disable IPv4 on SuSE linux?
Thanks in advance.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -


by jck In reply to Disable IPv4 on SuSE Linu ...

Don't know if you would really want to. Removing IPv4 from the kernel and recompiling might **** up stuff.

But alas, you can always remove the IPv4 from the kernel and recompile it entirely.

Good luck

Collapse -


by eldhom In reply to beware

Thank you very much for your valuable reply!!!

Collapse -

Don't load and run the networking daemons?

by seanferd In reply to Disable IPv4 on SuSE Linu ...

Aside from recompiling without the IPv4 stack, that's about all you can do.

What are you trying to accomplish by disabling this?

Collapse -

make a backup before trying this

by pragmatic@TR In reply to Disable IPv4 on SuSE Linu ...

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

This initializes IPv6 dhcp if required, even if the IPv4 interface is NOT dhcp, and has NO ip address.

Related Discussions

Related Forums