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
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.
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.
I could have written a script to remove IPV6 link local address but there should be a basic option for that.
You can set: echo "options ipv6 disable=1" > /etc/modprobe.d/noipv6.conf
But more and more apps then log problems or get confused if ipv6 is completely disabled, so keeping the link local address should be "the general case" for most installs.
Best regards,
Florian La Roche
On 17.02.2013 г. 17:59 ч., Florian La Roche wrote:
I could have written a script to remove IPV6 link local address but there should be a basic option for that.
You can set: echo "options ipv6 disable=1" > /etc/modprobe.d/noipv6.conf
But more and more apps then log problems or get confused if ipv6 is completely disabled, so keeping the link local address should be "the general case" for most installs.
We use 'net.ipv6.conf.all.disable_ipv6 = 1' which removes link local addresses for ipv4-only hosts and still keeps most apps happy.
HTH, Deyan
I could have written a script to remove IPV6 link local address but there should be a basic option for that.
Just to emphasise this as I guess it hasn't been clear enough yet...
An IPv6 config with no FE80:: address is a broken config.
This address should always be on an IPv6 enabled interface, being generated automatically, and is not the same thing as IPv6 auto configuration (SLAAC).
On 2/17/2013 8:10 PM, James Hogarth wrote:
Just to emphasise this as I guess it hasn't been clear enough yet...
An IPv6 config with no FE80:: address is a broken config.
This address should always be on an IPv6 enabled interface, being generated automatically, and is not the same thing as IPv6 auto configuration (SLAAC).
So the issue is more like: IPV6INIT=no
is not working... The design should be linux interface IPV6 option. I have seen the problem before but in most systems that don't use IPV6. On a system that has IPV6 enabled for a specific interface *only* there is a problem with the FE80:: .. on a disabled interface.
ETH0 - no ipv6 ETH1 - no ipv6 ETH2 - IPV6 + IPV4
should 0 and 1 interfaces have any IPV6 address??
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@centos.org http://lists.centos.org/mailman/listinfo/centos