Post by Chris Vine
On Mon, 14 Oct 2019 21:17:47 +0000 (UTC)
Post by James H. Markowitz
Our local sysadmin has done something concerning IPv6 in our
network, and now my Slackware 14.2 box is not working properly. What is
happening is that, when resolving names that provide both IPv6 and IPv4
addresses, Slackware selects the former over the latter - and some
applications (like e.g. Thunderbird) don't work properly any more. I
# echo 1 > /proc/sys/net/ipv6/conf/eth0/disable_ipv6
but I would like to have a stab at getting IPv6 to work - if it is only
because coworkers running things like Ubuntu, Centos and Debian are
giving me a hard time, since they are not plagued by this problem.
Any suggestions as to how to get IPv6 to work in 14.2?
Assuming you have not disabled IPv6 in some way, /sbin/ifconfig should
show a ::1 address for lo, and a fe80::... (link local address) for
other interfaces. Assuming that that is the case, just use
network-manager-applet. It should set up a global IPv6 address for you
automatically if the relevant router is enabled for IPv6.
It's not disabled and I need to use a stati IPv6 address. Now
this is not difficult:
# /sbin/ifconfig eth0 inet6 add <ipv6-address>/<ipv6-mask>
# /sbin/route -A inet6 add default gw <ipv6-gateway>
What I would like to do is disable the IPv6 autconfiguration feature, so
I don't get extra (and useless) IPv6 addresses assigned to eth0. That's
easy enough to do:
# echo 0 > /proc/sys/net/ipv6/conf/all/autoconf
# echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf
I would like to do so automatically at boot time, by means of the systcl
framework - but I can't get it to work. My /etc/sysctl.conf file contains
the following lines
net.ipv6.conf.all.autoconf = 0
net.ipv6.conf.eth0.autoconf = 0
When the system boots, the sysctl command is invoked by rc.S all right -
but the values of the autconf system files above are always 1 when the
boot process is over - and I have some IPv6 addresses assigned to eth0
that I don't want nor need.
Any ideas as to why sysctl is not working at boot time?