[CentOS] IPV6 auto configuration cannot be disabled from if script.

Sun Feb 17 13:45:00 UTC 2013
Tilman Schmidt <t.schmidt at phoenixsoftware.de>

Am 17.02.2013 14:36, schrieb Eliezer Croitoru:
> I want to configure IPV6 on the system and not use some auto ipv6 config.
> I have tried to use IPV6_AUTOCONF=no in interface script dose not affect 
> anything.
> 
> ifcfg-eth0:
> GATEWAY=192.168.1.254
> IPV6INIT=no
> IPV6_AUTOCONF=no
> BROADCAST=192.168.1.255
> BOOTPROTO=none
> NAME=""
> NM_CONTROLLED=yes
> MACADDR=""
> TYPE=Ethernet
> DEVICE=eth0
> NETMASK=255.255.255.0
> MTU="1500"
> IPADDR=192.168.11.1
> NETWORK=192.168.11.0
> ONBOOT=yes
> 
> The above file should have resulted an interface with only inet address 
> but the result is:
> eth0      Link encap:Ethernet  HWaddr XX
>            inet addr:192.168.11.1  Bcast:192.168.1.255  Mask:255.255.255.0
>            inet6 addr: fe80::7271:bcff:febd:c46b/64 Scope:Link
>            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>            RX packets:24452216 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:38068314 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:1000
>            RX bytes:6777513704 (6.3 GiB)  TX bytes:21817051849 (20.3 GiB)
>            Interrupt:29 Base address:0xc000

This looks correct. The interface does not have an autoconfigured IPv6
address. So the parameter IPV6_AUTOCONF=no has been applied correctly.

Perhaps you are confused by the link local address (Prefix fe80::) which
is always present on an IPv6 enabled interface.

HTH
T.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20130217/3b3888b3/attachment-0005.sig>