public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Disable IPv6 on specific interface
@ 2014-12-30  3:27 Zesen Qian
  2014-12-30  9:39 ` Mick
  0 siblings, 1 reply; 7+ messages in thread
From: Zesen Qian @ 2014-12-30  3:27 UTC (permalink / raw
  To: gentoo-user

Hello list,
Sorry for hijacking Rich's thread, resend here.
I want to disable IPv6 on an certain interface, a simple google
tell me to add one line to /etc/sysctl.d/local.conf
net.ipv6.conf.enp4s0.disable_ipv6=1
Simple enough, but the problem I have is that both ipv6 and the
dirver of the network card(tg3) is loaded by modules. They 're not
loaded when the service sysctl is started, so there's no entry
named "net.ipv6.conf.enp4s0", which make sysctl not working.
So my question is that, is there any way to disable IPv6 on
specific interface, as early as I can? I want to make it early
because I don't want to receive any RA to mess up my route table.
I guess just adding sysctl to preup() in /etc/conf.d/net should do
the trick, but may I make it earlier?
Any comment is appreciated.

-- 
Zesen Qian (钱泽森)


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-12-30 13:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-30  3:27 [gentoo-user] Disable IPv6 on specific interface Zesen Qian
2014-12-30  9:39 ` Mick
2014-12-30 10:10   ` Zesen Qian
2014-12-30 10:31     ` Mick
2014-12-30 10:27   ` covici
2014-12-30 10:49     ` Zesen Qian
2014-12-30 13:15       ` covici

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox