Gentoo Archives: gentoo-user

From: Zesen Qian <gentoo-user@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Disabling IPv6 on specific interface
Date: Tue, 30 Dec 2014 01:47:47
Message-Id: 878uhphpsg.fsf@riaqn.com
In Reply to: [gentoo-user] (lack of) spam on list by Rich Freeman
1 Hello list,
2 I want to disable IPv6 on an certain interface, a simple google
3 tell me to add one line to /etc/sysctl.d/local.conf
4 net.ipv6.conf.enp4s0.disable_ipv6=1
5 Simple enough, but the problem I have is that both ipv6 and the
6 dirver of the network card(tg3) is loaded by modules. They 're not
7 loaded when the service sysctl is started, so there's no entry
8 named "net.ipv6.conf.enp4s0", which make sysctl not working.
9 So my question is that, is there any way to disable IPv6 on
10 specific interface, as early as I can? I want to make it early
11 because I don't want to receive any RA to mess up my route table.
12 I guess just adding sysctl to preup() in /etc/conf.d/net should do
13 the trick, but may I make it earlier?
14 Any comment is appreciated.
15 --
16 Zesen Qian (钱泽森)

Replies

Subject Author
Re: [gentoo-user] Disabling IPv6 on specific interface Peter Humphrey <peter@××××××××××××.uk>