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 (钱泽森) |