Eliezer Croitoru
2013-Feb-17 13:36 UTC
[CentOS] IPV6 auto configuration cannot be disabled from if script.
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 Thanks, Eliezer Croitoru
Tilman Schmidt
2013-Feb-17 13:45 UTC
[CentOS] IPV6 auto configuration cannot be disabled from if script.
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:0xc000This 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-0002.sig>
Robert Moskowitz
2013-Feb-17 13:47 UTC
[CentOS] IPV6 auto configuration cannot be disabled from if script.
On 02/17/2013 08:36 AM, Eliezer Croitoru wrote:> 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.If you want to turn off IPv6 for all interfaces, make the needed changes to /etc/sysconfig/network as well.> > 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 > > Thanks, > Eliezer Croitoru > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
Eliezer Croitoru
2013-Feb-17 14:06 UTC
[CentOS] IPV6 auto configuration cannot be disabled from if script.
On 2/17/2013 3:45 PM, Tilman Schmidt wrote:> Perhaps you are confused by the link local address (Prefix fe80::) which > is always present on an IPv6 enabled interface. > > HTH > T.Sorry This is what I was aiming for. The link local address.. But it's also the autoconf: #sysctl -a |grep net.ipv6.conf|grep auto net.ipv6.conf.all.autoconf = 1 net.ipv6.conf.default.autoconf = 1 net.ipv6.conf.eth1.autoconf = 1 net.ipv6.conf.sit0.autoconf = 1 net.ipv6.conf.lo.autoconf = 1 net.ipv6.conf.eth0.autoconf = 1 net.ipv6.conf.sit1.autoconf = 1 I could have written a script to remove IPV6 link local address but there should be a basic option for that. -- Eliezer Croitoru