* [gentoo-user] Disable IPv6 on an interface?
@ 2012-01-17 15:48 Grant Edwards
2012-01-17 15:55 ` Paul Hartman
0 siblings, 1 reply; 7+ messages in thread
From: Grant Edwards @ 2012-01-17 15:48 UTC (permalink / raw
To: gentoo-user
How does one disable IPv6 for a particular interface?
I want eth2 "up" but with no IP address. Just doing an "ifconfig eth2
up" worked fine until I enabled IPv6 support in the kernel. Now I get
a link-local IPv6 address just by bringing the interface up -- and I
don't want one.
Google has found me the anser for Debian, but for Gentoo all it found
was somebody else asking the qeustion (with no answers).
--
Grant Edwards grant.b.edwards Yow! I know things about
at TROY DONAHUE that can't
gmail.com even be PRINTED!!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Disable IPv6 on an interface?
2012-01-17 15:48 [gentoo-user] Disable IPv6 on an interface? Grant Edwards
@ 2012-01-17 15:55 ` Paul Hartman
2012-01-17 16:52 ` [gentoo-user] " Grant Edwards
0 siblings, 1 reply; 7+ messages in thread
From: Paul Hartman @ 2012-01-17 15:55 UTC (permalink / raw
To: gentoo-user
On Tue, Jan 17, 2012 at 9:48 AM, Grant Edwards
<grant.b.edwards@gmail.com> wrote:
> How does one disable IPv6 for a particular interface?
>
> I want eth2 "up" but with no IP address. Just doing an "ifconfig eth2
> up" worked fine until I enabled IPv6 support in the kernel. Now I get
> a link-local IPv6 address just by bringing the interface up -- and I
> don't want one.
>
> Google has found me the anser for Debian, but for Gentoo all it found
> was somebody else asking the qeustion (with no answers).
I didn't try it myself, but what about sysctl?
net.ipv6.conf.eth0.disable_ipv6=1
or something like that...
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user] Re: Disable IPv6 on an interface?
2012-01-17 15:55 ` Paul Hartman
@ 2012-01-17 16:52 ` Grant Edwards
2012-01-17 17:07 ` Michael Mol
2012-01-17 17:34 ` Pandu Poluan
0 siblings, 2 replies; 7+ messages in thread
From: Grant Edwards @ 2012-01-17 16:52 UTC (permalink / raw
To: gentoo-user
On 2012-01-17, Paul Hartman <paul.hartman+gentoo@gmail.com> wrote:
> On Tue, Jan 17, 2012 at 9:48 AM, Grant Edwards
><grant.b.edwards@gmail.com> wrote:
>> How does one disable IPv6 for a particular interface?
>>
>> I want eth2 "up" but with no IP address. ?Just doing an "ifconfig eth2
>> up" worked fine until I enabled IPv6 support in the kernel. ?Now I get
>> a link-local IPv6 address just by bringing the interface up -- and I
>> don't want one.
>>
>> Google has found me the anser for Debian, but for Gentoo all it found
>> was somebody else asking the qeustion (with no answers).
>
> I didn't try it myself, but what about sysctl?
>
> net.ipv6.conf.eth0.disable_ipv6=1
>
> or something like that...
That does it!
The next question is what do I put in the Gentoo network configuration
file (/etc/conf.d/net) to get that result (eth2 up with no IP
addresses).
--
Grant Edwards grant.b.edwards Yow! Like I always say
at -- nothing can beat
gmail.com the BRATWURST here in
DUSSELDORF!!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Re: Disable IPv6 on an interface?
2012-01-17 16:52 ` [gentoo-user] " Grant Edwards
@ 2012-01-17 17:07 ` Michael Mol
2012-01-17 17:50 ` Grant Edwards
2012-01-17 17:34 ` Pandu Poluan
1 sibling, 1 reply; 7+ messages in thread
From: Michael Mol @ 2012-01-17 17:07 UTC (permalink / raw
To: gentoo-user
Grant Edwards wrote:
> On 2012-01-17, Paul Hartman <paul.hartman+gentoo@gmail.com> wrote:
>> On Tue, Jan 17, 2012 at 9:48 AM, Grant Edwards
>> <grant.b.edwards@gmail.com> wrote:
>>> How does one disable IPv6 for a particular interface?
>>>
>>> I want eth2 "up" but with no IP address. ?Just doing an "ifconfig eth2
>>> up" worked fine until I enabled IPv6 support in the kernel. ?Now I get
>>> a link-local IPv6 address just by bringing the interface up -- and I
>>> don't want one.
>>>
>>> Google has found me the anser for Debian, but for Gentoo all it found
>>> was somebody else asking the qeustion (with no answers).
>>
>> I didn't try it myself, but what about sysctl?
>>
>> net.ipv6.conf.eth0.disable_ipv6=1
>>
>> or something like that...
>
> That does it!
>
> The next question is what do I put in the Gentoo network configuration
> file (/etc/conf.d/net) to get that result (eth2 up with no IP
> addresses).
>
/etc/sysctl.conf
net.ipv6.conf.eth0.disable_ipv6=1
It may be sufficient to just use:
net.ipv6.conf.eth0.autoconf=0
net.ipv6.conf.eth0.accept_ra=0
I'm just guessing that .autoconf corresponds to link-local addresses,
though.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Re: Disable IPv6 on an interface?
2012-01-17 16:52 ` [gentoo-user] " Grant Edwards
2012-01-17 17:07 ` Michael Mol
@ 2012-01-17 17:34 ` Pandu Poluan
1 sibling, 0 replies; 7+ messages in thread
From: Pandu Poluan @ 2012-01-17 17:34 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]
On Jan 17, 2012 11:56 PM, "Grant Edwards" <grant.b.edwards@gmail.com> wrote:
>
> On 2012-01-17, Paul Hartman <paul.hartman+gentoo@gmail.com> wrote:
> > On Tue, Jan 17, 2012 at 9:48 AM, Grant Edwards
> ><grant.b.edwards@gmail.com> wrote:
> >> How does one disable IPv6 for a particular interface?
> >>
> >> I want eth2 "up" but with no IP address. ?Just doing an "ifconfig eth2
> >> up" worked fine until I enabled IPv6 support in the kernel. ?Now I get
> >> a link-local IPv6 address just by bringing the interface up -- and I
> >> don't want one.
> >>
> >> Google has found me the anser for Debian, but for Gentoo all it found
> >> was somebody else asking the qeustion (with no answers).
> >
> > I didn't try it myself, but what about sysctl?
> >
> > net.ipv6.conf.eth0.disable_ipv6=1
> >
> > or something like that...
>
> That does it!
>
> The next question is what do I put in the Gentoo network configuration
> file (/etc/conf.d/net) to get that result (eth2 up with no IP
> addresses).
>
You don't.
Put it in /etc/sysctl.conf instead.
Rgds,
[-- Attachment #2: Type: text/html, Size: 1552 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user] Re: Disable IPv6 on an interface?
2012-01-17 17:07 ` Michael Mol
@ 2012-01-17 17:50 ` Grant Edwards
2012-01-17 20:34 ` Paul Hartman
0 siblings, 1 reply; 7+ messages in thread
From: Grant Edwards @ 2012-01-17 17:50 UTC (permalink / raw
To: gentoo-user
On 2012-01-17, Michael Mol <mikemol@gmail.com> wrote:
>>> net.ipv6.conf.eth0.disable_ipv6=1
>> The next question is what do I put in the Gentoo network configuration
>> file (/etc/conf.d/net) to get that result (eth2 up with no IP
>> addresses).
>>
>
> /etc/sysctl.conf
>
> net.ipv6.conf.eth0.disable_ipv6=1
Well that's just too simple and obvious. I put a sysctl command in a
preup() function in conf.d/net, and that worked, but it's definitly
the wrong way to do it.
After putting the above line in sysctl.conf (and removing my preup()
function), everything worked as expected except that I had to manually
start the interface with the command "/etc/init.d/net.eth2 start".
Google told me to fix that by using rc-update to add net.eth2 to the
default runlevel.
Everything's tickety-boo now, but I don't remember have to do that
last step in the past when I added a network interface -- all I had to
do was create the symlink from net.<whatever> to net.lo.
Is the rc-update runlevel stuff new?
--
Grant Edwards grant.b.edwards Yow! BARBARA STANWYCK makes
at me nervous!!
gmail.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Re: Disable IPv6 on an interface?
2012-01-17 17:50 ` Grant Edwards
@ 2012-01-17 20:34 ` Paul Hartman
0 siblings, 0 replies; 7+ messages in thread
From: Paul Hartman @ 2012-01-17 20:34 UTC (permalink / raw
To: gentoo-user
On Tue, Jan 17, 2012 at 11:50 AM, Grant Edwards
<grant.b.edwards@gmail.com> wrote:
> After putting the above line in sysctl.conf (and removing my preup()
> function), everything worked as expected except that I had to manually
> start the interface with the command "/etc/init.d/net.eth2 start".
>
> Google told me to fix that by using rc-update to add net.eth2 to the
> default runlevel.
>
> Everything's tickety-boo now, but I don't remember have to do that
> last step in the past when I added a network interface -- all I had to
> do was create the symlink from net.<whatever> to net.lo.
>
> Is the rc-update runlevel stuff new?
AFAIR you've had to do it that way forever... but it's not exactly
something I set up every day.
Maybe if you used ifplugd, wicd, networkmanager etc. it works differently.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-01-17 21:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-17 15:48 [gentoo-user] Disable IPv6 on an interface? Grant Edwards
2012-01-17 15:55 ` Paul Hartman
2012-01-17 16:52 ` [gentoo-user] " Grant Edwards
2012-01-17 17:07 ` Michael Mol
2012-01-17 17:50 ` Grant Edwards
2012-01-17 20:34 ` Paul Hartman
2012-01-17 17:34 ` Pandu Poluan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox