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:
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 Im running sysctl -p everything seems to work fine, when I
m checking for example:
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 Im 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:
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?