Gentoo Archives: gentoo-user

From: Zesen Qian <gentoo-user@×××××.com>
To: Peter Humphrey <peter@××××××××××××.uk>
Cc: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Disabling IPv6 on specific interface
Date: Tue, 30 Dec 2014 03:01:04
Message-Id: 874msdhmed.fsf@riaqn.com
In Reply to: Re: [gentoo-user] Disabling IPv6 on specific interface by Peter Humphrey
1 Peter Humphrey <peter@××××××××××××.uk> writes:
2
3 > On Tuesday 30 December 2014 09:47:27 Zesen Qian wrote:
4 >> Hello list,
5 >> I want to disable IPv6 on an certain interface, a simple google
6 >> tell me to add one line to /etc/sysctl.d/local.conf
7 >> net.ipv6.conf.enp4s0.disable_ipv6=1
8 >> Simple enough, but the problem I have is that both ipv6 and the
9 >> dirver of the network card(tg3) is loaded by modules. They 're not
10 >> loaded when the service sysctl is started, so there's no entry
11 >> named "net.ipv6.conf.enp4s0", which make sysctl not working.
12 >> So my question is that, is there any way to disable IPv6 on
13 >> specific interface, as early as I can? I want to make it early
14 >> because I don't want to receive any RA to mess up my route table.
15 >> I guess just adding sysctl to preup() in /etc/conf.d/net should do
16 >> the trick, but may I make it earlier?
17 >> Any comment is appreciated.
18 >
19 > Please do not hijack someone else's thread.
20 Oh sorry, I just wanted to save typing the address. It seems that I
21 forget to delete some fields in the origin header. My apologies if it
22 makes confusion. Do I need to re-send the mail in a new thread?
23 --
24 Zesen Qian (钱泽森)

Replies

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