[CentOS] Disabling IPv4

Tue Aug 19 13:34:07 UTC 2008
Darryl Ross <spam at afoyi.com>

Barry Brimer wrote:
> On Tue, 19 Aug 2008, Stephen Harris wrote:
>> It's probably compiled into the kernel directly and not as a module.
> I'm not convinced .. you can start without network .. although that may
> just load the interfaces .. I would chkconfig network off and boot
> again. If net-pf-2 still loads in dmesg .. then I would believe it is
> compiled in .. but probably being called from something in rc.sysinit.

It's even simpler than that: if an lsmod shows ipv4, it's a module, if it
doesn't, then it's compiled in.

I cannot think of a stock distro kernel in the whole time I've been using
Linux (since about 1998) that has not had ipv4 compiled in.

To the original poster, you are going to want to build a custom kernel that
does not have ipv4 support enabled.