# IPv6 and sysctl problem

**URL:** <https://forums.suse.com/t/ipv6-and-sysctl-problem/23134>\
**Category:** SLES Networking\
**Created:** [September 25, 2012, 12:03pm UTC](https://forums.suse.com/t/ipv6-and-sysctl-problem/23134 "2012-09-25T12:03:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scarab](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@scarab](https://forums.suse.com/u/scarab)\
**Post date:** [September 25, 2012, 12:03pm UTC](https://forums.suse.com/t/ipv6-and-sysctl-problem/23134/1 "2012-09-25T12:03:00Z")

</div>

I`ve got one eth card in my server with interfaces configured as below:

eth0 static IPv4 and IPv6 address  
vlan1 static IPv4 address  
vlan2 static IPv4 address

The problem is that I`m receiving from my network Router Advertisement and SLES receives and accepts IPv6 addresses and gateways to all of interfaces.  
I have to disable it so I configured sysctl.conf as listed below:

```auto
net.ipv6.conf.all.autoconf = 0
net.ipv6.conf.eth0.autoconf = 0
net.ipv6.conf.vlan1.autoconf = 0
net.ipv6.conf.vlan2.autoconf = 0
net.ipv6.conf.default.autoconf = 0
#
net.ipv6.conf.all.router_solicitations = 0
net.ipv6.conf.default.router_solicitations = 0
net.ipv6.conf.eth0.router_solicitations = 0
net.ipv6.conf.vlan1.router_solicitations = 0
net.ipv6.conf.vlan2.router_solicitations = 0
#
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.default.accept_ra = 0
net.ipv6.conf.eth0.accept_ra = 0
net.ipv6.conf.vlan1.accept_ra = 0
net.ipv6.conf.vlan2.accept_ra = 0
```

When I`m running sysctl -p everything seems to work fine, when I`m checking for example:

```auto
sysctl -a | grep .autoconf
net.ipv6.conf.vlan1.autoconf = 0
net.ipv6.conf.vlan2.autoconf = 0
net.ipv6.conf.eth0.autoconf = 0
net.ipv6.conf.default.autoconf = 0
net.ipv6.conf.all.autoconf = 0
net.ipv6.conf.lo.autoconf = 1

sysctl -a | grep router_solicitations
net.ipv6.conf.vlan1.router_solicitations = 0
net.ipv6.conf.vlan2.router_solicitations = 0
net.ipv6.conf.eth0.router_solicitations = 0
net.ipv6.conf.default.router_solicitations = 0
net.ipv6.conf.all.router_solicitations = 0
net.ipv6.conf.lo.router_solicitations = 3

sysctl -a | grep accept_ra
net.ipv6.conf.vlan1.accept_ra = 0
net.ipv6.conf.vlan2.accept_ra = 0
net.ipv6.conf.eth0.accept_ra = 0
net.ipv6.conf.default.accept_ra = 0
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.lo.accept_ra = 1
```

But when I`m running rcnetwork restart and then ifconfig I can see that system still has IPv6 configutation captured from router :/ Another thing is that sysctl seems not working after reboot, I`ve got this in /var/log/boot.msg:

```auto
Activating remaining swap-devices in /etc/fstab...
doneSetting current sysctl status from /etc/sysctl.conf
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
/proc/sys/net/ipv6/conf/all/autoconf: No such file or directory
/proc/sys/net/ipv6/conf/eth0/autoconf: No such file or directory
/proc/sys/net/ipv6/conf/vlan1/autoconf: No such file or directory
/proc/sys/net/ipv6/conf/vlan2/autoconf: No such file or directory
/proc/sys/net/ipv6/conf/default/autoconf: No such file or directory
/proc/sys/net/ipv6/conf/all/router_solicitations: No such file or directory
/proc/sys/net/ipv6/conf/default/router_solicitations: No such file or directory
/proc/sys/net/ipv6/conf/eth0/router_solicitations: No such file or directory
/proc/sys/net/ipv6/conf/vlan1/router_solicitations: No such file or directory
/proc/sys/net/ipv6/conf/vlan2/router_solicitations: No such file or directory
/proc/sys/net/ipv6/conf/all/accept_ra: No such file or directory
/proc/sys/net/ipv6/conf/default/accept_ra: No such file or directory
/proc/sys/net/ipv6/conf/eth0/accept_ra: No such file or directory
/proc/sys/net/ipv6/conf/vlan1/accept_ra: No such file or directory
/proc/sys/net/ipv6/conf/vlan2/accept_ra: No such file or directory
```

How to fix this problems?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [October 4, 2012, 3:30pm UTC](https://forums.suse.com/t/ipv6-and-sysctl-problem/23134/2 "2012-10-04T15:30:21Z")

</div>

scarab,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit [http://www.suse.com/support](http://www.suse.com/support) and search the knowledgebase and/or check all  
the other support options available.
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.suse.com](http://forums.suse.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.suse.com/faq.php](http://forums.suse.com/faq.php)

If this is a reply to a duplicate posting, please ignore and accept our apologies  
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team  
[http://forums.suse.com](http://forums.suse.com)

---

<div class="post-metadata">

**Author:** ![frlarson](https://avatars.discourse-cdn.com/v4/letter/f/73ab20/32.png) [@frlarson](https://forums.suse.com/u/frlarson)\
**Post date:** [December 21, 2012, 8:09pm UTC](https://forums.suse.com/t/ipv6-and-sysctl-problem/23134/3 "2012-12-21T20:09:54Z")

</div>

I found your post while attempting to find an answer for a similar problem with SLES. My problem was trying to set sysctl parameters in a /proc entry that did not yet exist because the bridge module was not yet loaded. I added the bridge module to /etc/sysconfig/kernel, ran mkinitrd, and rebooted and it worked. I am not sure which module creates the proc/sys/net/ipv6/conf/ entries but if you find that I think it will solve your problem. Too bad Novell couldn’t help a little.
