public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] set both an ipv4 and ipv6 default gateway
@ 2011-08-15 16:34 Jorge Polinotto
  2011-08-15 17:18 ` Alan McKinnon
  2011-08-15 17:41 ` Pandu Poluan
  0 siblings, 2 replies; 5+ messages in thread
From: Jorge Polinotto @ 2011-08-15 16:34 UTC (permalink / raw
  To: gentoo-user

Hi all,

I'm trying to find out the way to set both IPv4 and IPv6 default gateway in
the /etc/conf.d/net file.

I've seen this way [1], adding "iproute2" module, but when I execute:

# insmod iproute2
insmod: can't read 'iproute2': No such file or directory

so I guess it's not in my kernel and I don't know where to add it.

[1] http://forums.gentoo.org/viewtopic-t-881529-start-0.html

Any help would be appreciated. Thanks in advance.

Jorge.-




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

* Re: [gentoo-user] set both an ipv4 and ipv6 default gateway
  2011-08-15 16:34 [gentoo-user] set both an ipv4 and ipv6 default gateway Jorge Polinotto
@ 2011-08-15 17:18 ` Alan McKinnon
  2011-08-15 17:41 ` Pandu Poluan
  1 sibling, 0 replies; 5+ messages in thread
From: Alan McKinnon @ 2011-08-15 17:18 UTC (permalink / raw
  To: gentoo-user

On Mon 15 August 2011 13:34:06 Jorge Polinotto did opine thusly:
> Hi all,
> 
> I'm trying to find out the way to set both IPv4 and IPv6 default
> gateway in the /etc/conf.d/net file.
> 
> I've seen this way [1], adding "iproute2" module, but when I
> execute:
> 
> # insmod iproute2
> insmod: can't read 'iproute2': No such file or directory

iproute2 is not a kernel modules. It's a userspace app that openrc 
calls a module (ifconfig is an alternaive module for example).

Don't insmod it. Just use the net service as normal



> 
> so I guess it's not in my kernel and I don't know where to add it.
> 
> [1] http://forums.gentoo.org/viewtopic-t-881529-start-0.html
> 
> Any help would be appreciated. Thanks in advance.
> 
> Jorge.-
-- 
alan dot mckinnon at gmail dot com



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

* Re: [gentoo-user] set both an ipv4 and ipv6 default gateway
  2011-08-15 16:34 [gentoo-user] set both an ipv4 and ipv6 default gateway Jorge Polinotto
  2011-08-15 17:18 ` Alan McKinnon
@ 2011-08-15 17:41 ` Pandu Poluan
  2011-08-17 21:18   ` [gentoo-user] [SOLVED] " Jorge Polinotto
  1 sibling, 1 reply; 5+ messages in thread
From: Pandu Poluan @ 2011-08-15 17:41 UTC (permalink / raw
  To: gentoo-user

emerge -av iproute2

Then in /etc/conf.d/net make sure that the routes_eth0 setting has 2
(*two*) lines like the forum thread you posted, first line is the IPv4
route and second line th IPv6 route.

Rgds


On 2011-08-15, Jorge Polinotto <jorge@ccc.uba.ar> wrote:
> Hi all,
>
> I'm trying to find out the way to set both IPv4 and IPv6 default gateway in
> the /etc/conf.d/net file.
>
> I've seen this way [1], adding "iproute2" module, but when I execute:
>
> # insmod iproute2
> insmod: can't read 'iproute2': No such file or directory
>
> so I guess it's not in my kernel and I don't know where to add it.
>
> [1] http://forums.gentoo.org/viewtopic-t-881529-start-0.html
>
> Any help would be appreciated. Thanks in advance.
>
> Jorge.-
>
>
>


-- 
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/



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

* [gentoo-user] [SOLVED] set both an ipv4 and ipv6 default gateway
  2011-08-15 17:41 ` Pandu Poluan
@ 2011-08-17 21:18   ` Jorge Polinotto
  2011-08-17 23:36     ` [gentoo-user] " Pandu Poluan
  0 siblings, 1 reply; 5+ messages in thread
From: Jorge Polinotto @ 2011-08-17 21:18 UTC (permalink / raw
  To: gentoo-user

Hi all!

Thanks Pandu for your help.

Executing:

# emerge iproute2

and in /etc/conf.d/net:

routes_eth0=( "default via A.B.C.D
	default via AA:BB:CC:DD::1")

it works!

Regards!

Jorge.-




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

* Re: [gentoo-user] set both an ipv4 and ipv6 default gateway
  2011-08-17 21:18   ` [gentoo-user] [SOLVED] " Jorge Polinotto
@ 2011-08-17 23:36     ` Pandu Poluan
  0 siblings, 0 replies; 5+ messages in thread
From: Pandu Poluan @ 2011-08-17 23:36 UTC (permalink / raw
  To: gentoo-user

No problem.

Ah, you're still using baselayout-1, I see.

Remember to drop the parentheses and make the route-string to be
multi-line when you upgrade to baselayout-2. E.g.:

routes_eth0="routing_line_1
routing_line_2
routing_line_3"

Rgds,


On 2011-08-18, Jorge Polinotto <jorge@ccc.uba.ar> wrote:
> Hi all!
>
> Thanks Pandu for your help.
>
> Executing:
>
> # emerge iproute2
>
> and in /etc/conf.d/net:
>
> routes_eth0=( "default via A.B.C.D
> 	default via AA:BB:CC:DD::1")
>
> it works!
>
> Regards!
>
> Jorge.-
>
>
>


-- 
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/



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

end of thread, other threads:[~2011-08-17 23:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-15 16:34 [gentoo-user] set both an ipv4 and ipv6 default gateway Jorge Polinotto
2011-08-15 17:18 ` Alan McKinnon
2011-08-15 17:41 ` Pandu Poluan
2011-08-17 21:18   ` [gentoo-user] [SOLVED] " Jorge Polinotto
2011-08-17 23:36     ` [gentoo-user] " Pandu Poluan

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