Gentoo Archives: gentoo-user

From: Pandu Poluan <pandu@××××××.info>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Disable IPv6 on an interface?
Date: Tue, 17 Jan 2012 17:36:26
Message-Id: CAA2qdGXsL88nJcrm5YykrS7Xhi2dynA8WfdmVN5T_-qJwF-NWQ@mail.gmail.com
In Reply to: [gentoo-user] Re: Disable IPv6 on an interface? by Grant Edwards
1 On Jan 17, 2012 11:56 PM, "Grant Edwards" <grant.b.edwards@×××××.com> wrote:
2 >
3 > On 2012-01-17, Paul Hartman <paul.hartman+gentoo@×××××.com> wrote:
4 > > On Tue, Jan 17, 2012 at 9:48 AM, Grant Edwards
5 > ><grant.b.edwards@×××××.com> wrote:
6 > >> How does one disable IPv6 for a particular interface?
7 > >>
8 > >> I want eth2 "up" but with no IP address. ?Just doing an "ifconfig eth2
9 > >> up" worked fine until I enabled IPv6 support in the kernel. ?Now I get
10 > >> a link-local IPv6 address just by bringing the interface up -- and I
11 > >> don't want one.
12 > >>
13 > >> Google has found me the anser for Debian, but for Gentoo all it found
14 > >> was somebody else asking the qeustion (with no answers).
15 > >
16 > > I didn't try it myself, but what about sysctl?
17 > >
18 > > net.ipv6.conf.eth0.disable_ipv6=1
19 > >
20 > > or something like that...
21 >
22 > That does it!
23 >
24 > The next question is what do I put in the Gentoo network configuration
25 > file (/etc/conf.d/net) to get that result (eth2 up with no IP
26 > addresses).
27 >
28
29 You don't.
30
31 Put it in /etc/sysctl.conf instead.
32
33 Rgds,