public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How to configure eth1:1 ?
@ 2011-10-17 21:25 Grant Edwards
  2011-10-17 21:37 ` [gentoo-user] " Grant Edwards
  2011-10-17 21:42 ` [gentoo-user] " Florian Philipp
  0 siblings, 2 replies; 13+ messages in thread
From: Grant Edwards @ 2011-10-17 21:25 UTC (permalink / raw
  To: gentoo-user

I'm trying to configure a second IP address for eth1 using the syntax
I found at

  http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap1

But, it doesn't work.

Here's my /etc/init.d/net file:

  config_eth0="192.168.8.4/16"
  routes_eth0="default via 192.168.0.254"
  config_eth1=10.0.0.1/8"
  192.168.250.1/24"

But, starting eth1 says:

# /etc/init.d/net.eth1 start
 * Bringing up interface eth1
 *   Starting netplug on eth1 ...                                 [ ok ]
 *     Backgrounding ...
 * ERROR: net.eth1 failed to start
 
Only eth1 is configured.  eth1:1 isn't configured.




If I configure the interfaces by hand, it works fine:

alpha init.d # ifconfig eth1 10.0.0.1/8
alpha init.d # ifconfig eth1:1 192.168.250.1/24
alpha init.d # ifconfig

[...]

eth1      Link encap:Ethernet  HWaddr 00:16:17:84:a7:b3  
          inet addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:128173 errors:0 dropped:120 overruns:0 frame:0
          TX packets:57741 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10965596 (10.4 MiB)  TX bytes:39773535 (37.9 MiB)
          Interrupt:20 Base address:0xc000 

eth1:1    Link encap:Ethernet  HWaddr 00:16:17:84:a7:b3  
          inet addr:192.168.250.1  Bcast:192.168.250.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:20 Base address:0xc000 

[...]          


How do I configure a second IP address for an interface?

-- 
Grant Edwards               grant.b.edwards        Yow! I have the power to
                                  at               HALT PRODUCTION on all
                              gmail.com            TEENAGE SEX COMEDIES!!




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

* [gentoo-user] Re: How to configure eth1:1 ?
  2011-10-17 21:25 [gentoo-user] How to configure eth1:1 ? Grant Edwards
@ 2011-10-17 21:37 ` Grant Edwards
  2011-10-17 22:04   ` Grant Edwards
  2011-10-17 21:42 ` [gentoo-user] " Florian Philipp
  1 sibling, 1 reply; 13+ messages in thread
From: Grant Edwards @ 2011-10-17 21:37 UTC (permalink / raw
  To: gentoo-user

On 2011-10-17, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> I'm trying to configure a second IP address for eth1 using the syntax
> I found at
>
>   http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap1
>
> But, it doesn't work.
>
> Here's my /etc/init.d/net file:
>
>   config_eth0="192.168.8.4/16"
>   routes_eth0="default via 192.168.0.254"
>   config_eth1=10.0.0.1/8"
>   192.168.250.1/24"
>
> But, starting eth1 says:
>
> # /etc/init.d/net.eth1 start
>  * Bringing up interface eth1
>  *   Starting netplug on eth1 ...                                 [ ok ]
>  *     Backgrounding ...
>  * ERROR: net.eth1 failed to start
>  
> Only eth1 is configured.  eth1:1 isn't configured.

I disabled netplug for both interfaces, and that got rid of the error
message:

# /etc/init.d/net.eth1 start
 * Bringing up interface eth1
 *   10.0.0.1/8 ...                                                  [ ok ]
 *   192.168.250.1/24 ...                                            [ ok ]
                                            
Now I can ping addresses in the 192.168.250/24 subnet. However, I
still don't see eth1:1 in netstat output the way that I do when I
manually configure it.  According TFM, eth1:1 should have been created
for the second address.  What gives?

How do you see the second IP address that's configured for an
interface if ifconfig won't show it to you?

-- 
Grant Edwards               grant.b.edwards        Yow! I own seven-eighths of
                                  at               all the artists in downtown
                              gmail.com            Burbank!




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

* Re: [gentoo-user] How to configure eth1:1 ?
  2011-10-17 21:25 [gentoo-user] How to configure eth1:1 ? Grant Edwards
  2011-10-17 21:37 ` [gentoo-user] " Grant Edwards
@ 2011-10-17 21:42 ` Florian Philipp
  2011-10-17 21:47   ` Florian Philipp
  1 sibling, 1 reply; 13+ messages in thread
From: Florian Philipp @ 2011-10-17 21:42 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]

Am 17.10.2011 23:25, schrieb Grant Edwards:
> I'm trying to configure a second IP address for eth1 using the syntax
> I found at
> 
>   http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap1
> 
> But, it doesn't work.
> 
> Here's my /etc/init.d/net file:
> 
>   config_eth0="192.168.8.4/16"
>   routes_eth0="default via 192.168.0.254"
>   config_eth1=10.0.0.1/8"
>   192.168.250.1/24"
> 
> But, starting eth1 says:
> 
> # /etc/init.d/net.eth1 start
>  * Bringing up interface eth1
>  *   Starting netplug on eth1 ...                                 [ ok ]
>  *     Backgrounding ...
>  * ERROR: net.eth1 failed to start
>  
> Only eth1 is configured.  eth1:1 isn't configured.
> 
> 

eth1 is the second physical interface (which you don't have). From
/usr/share/doc/openrc-0.8.3-r1/net.example.bz2

# If you need more than one address, you can use something like this
# NOTE: ifconfig creates an aliased device for each extra IPv4 address
#       (eth0:1, eth0:2, etc)
#       iproute2 does not do this as there is no need to
config_eth0="192.168.0.2/24 192.168.0.3/24 192.168.0.4/24"
# However, that only works with CIDR addresses, so you can't use
# netmask.

Regards,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

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

* Re: [gentoo-user] How to configure eth1:1 ?
  2011-10-17 21:42 ` [gentoo-user] " Florian Philipp
@ 2011-10-17 21:47   ` Florian Philipp
  2011-10-17 22:19     ` [gentoo-user] " Grant Edwards
  0 siblings, 1 reply; 13+ messages in thread
From: Florian Philipp @ 2011-10-17 21:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1459 bytes --]

Am 17.10.2011 23:42, schrieb Florian Philipp:
> Am 17.10.2011 23:25, schrieb Grant Edwards:
>> I'm trying to configure a second IP address for eth1 using the syntax
>> I found at
>>
>>   http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap1
>>
>> But, it doesn't work.
>>
>> Here's my /etc/init.d/net file:
>>
>>   config_eth0="192.168.8.4/16"
>>   routes_eth0="default via 192.168.0.254"
>>   config_eth1=10.0.0.1/8"
>>   192.168.250.1/24"
>>
>> But, starting eth1 says:
>>
>> # /etc/init.d/net.eth1 start
>>  * Bringing up interface eth1
>>  *   Starting netplug on eth1 ...                                 [ ok ]
>>  *     Backgrounding ...
>>  * ERROR: net.eth1 failed to start
>>  
>> Only eth1 is configured.  eth1:1 isn't configured.
>>
>>
> 
> eth1 is the second physical interface (which you don't have). From
> /usr/share/doc/openrc-0.8.3-r1/net.example.bz2
> 
> # If you need more than one address, you can use something like this
> # NOTE: ifconfig creates an aliased device for each extra IPv4 address
> #       (eth0:1, eth0:2, etc)
> #       iproute2 does not do this as there is no need to
> config_eth0="192.168.0.2/24 192.168.0.3/24 192.168.0.4/24"
> # However, that only works with CIDR addresses, so you can't use
> # netmask.
> 
> Regards,
> Florian Philipp
> 

Ugh, sorry. Just ignore that. I didn't see the second line in
config_eth1. The odd quoting confused me.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

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

* [gentoo-user] Re: How to configure eth1:1 ?
  2011-10-17 21:37 ` [gentoo-user] " Grant Edwards
@ 2011-10-17 22:04   ` Grant Edwards
  0 siblings, 0 replies; 13+ messages in thread
From: Grant Edwards @ 2011-10-17 22:04 UTC (permalink / raw
  To: gentoo-user

On 2011-10-17, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> On 2011-10-17, Grant Edwards <grant.b.edwards@gmail.com> wrote:
>> I'm trying to configure a second IP address for eth1 using the syntax
>> I found at
>>
>>   http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=2#doc_chap1
>>
>> But, it doesn't work.
>>
>> Here's my /etc/init.d/net file:
>>
>>   config_eth0="192.168.8.4/16"
>>   routes_eth0="default via 192.168.0.254"
>>   config_eth1=10.0.0.1/8"
>>   192.168.250.1/24"
>>
>> But, starting eth1 says:
>>
>> # /etc/init.d/net.eth1 start
>>  * Bringing up interface eth1
>>  *   Starting netplug on eth1 ...                                 [ ok ]
>>  *     Backgrounding ...
>>  * ERROR: net.eth1 failed to start
>>  
>> Only eth1 is configured.  eth1:1 isn't configured.
>
> I disabled netplug for both interfaces, and that got rid of the error
> message:
>
> # /etc/init.d/net.eth1 start
>  * Bringing up interface eth1
>  *   10.0.0.1/8 ...                                                  [ ok ]
>  *   192.168.250.1/24 ...                                            [ ok ]
>                                             
> Now I can ping addresses in the 192.168.250/24 subnet. However, I
> still don't see eth1:1 in netstat output the way that I do when I
> manually configure it.  According TFM, eth1:1 should have been created
> for the second address.  What gives?

OK, I think I've figured it out.  The startup system is using iproute2
instead of ifconfig.  The manual says that ifconfig is the default,
and I don't see anywhere where I've overridden it, but the manual also
says that if I were using ifconfig I'd have an eth1:1 device.

Iproute2 knows how to assign multiple IP address to an interface
without creating multiple devices, and using the "ip" command shows
the second address:

$ /sbin/ip address show
[...]
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:16:17:84:a7:b3 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/8 brd 10.255.255.255 scope global eth1
    inet 192.168.250.1/24 brd 192.168.250.255 scope global eth1
[...]

Still haven't figured out where iproute2 is getting enabled instead of
the default ifconfig....

-- 
Grant Edwards               grant.b.edwards        Yow! Gibble, Gobble, we
                                  at               ACCEPT YOU ...
                              gmail.com            




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

* [gentoo-user] Re: How to configure eth1:1 ?
  2011-10-17 21:47   ` Florian Philipp
@ 2011-10-17 22:19     ` Grant Edwards
  2011-10-18 15:09       ` YoYo Siska
  2011-10-20  2:56       ` Walter Dnes
  0 siblings, 2 replies; 13+ messages in thread
From: Grant Edwards @ 2011-10-17 22:19 UTC (permalink / raw
  To: gentoo-user

On 2011-10-17, Florian Philipp <lists@binarywings.net> wrote:

> Ugh, sorry. Just ignore that. I didn't see the second line in
> config_eth1. The odd quoting confused me.

Sorry about that.  I was trying various quoting schemes I'd found in
examples.

My current configuration works:

  modules_eth0=( !plug )
  config_eth0=( "192.168.8.4/16" )
  routes_eth0=( "default via 192.168.0.254" )

  modules_eth1=( !plug )
  config_eth1=( "10.0.0.1/8" "192.168.250.1/24" )

$ /sbin/ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:1b:21:b1:d1:e9 brd ff:ff:ff:ff:ff:ff
    inet 192.168.8.4/16 brd 192.168.255.255 scope global eth0
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:16:17:84:a7:b3 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.1/8 brd 10.255.255.255 scope global eth1
    inet 192.168.250.1/24 brd 192.168.250.255 scope global eth1
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:18:e7:08:20:33 brd ff:ff:ff:ff:ff:ff

  
And the lack of eth1:1 is presumably explained if the system is using
the iproute2 module instead of the ifconfig module.  My current theory
is that iproute2 is getting used because I have openvpn installed with
the iproute2 use flag. [I'm not actually using openvpn, but it's still
istalled from a couple years ago when I was using it.]

Yes, I know that the /24 subnet defined by the second eth1 address
overlaps the /16 subnet defined by the eth0 address. 

For historical reasons, 192.168.250.nnn is on eth1, and
192.168.everything-but-250.nnn is on eth0.

And eth2 is used only by a VM client OS.

Yea, it's a messy, but it's still easier than using 4 different
machines....

-- 
Grant Edwards               grant.b.edwards        Yow! I appoint you
                                  at               ambassador to Fantasy
                              gmail.com            Island!!!




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

* Re: [gentoo-user] Re: How to configure eth1:1 ?
  2011-10-17 22:19     ` [gentoo-user] " Grant Edwards
@ 2011-10-18 15:09       ` YoYo Siska
  2011-10-18 16:18         ` Grant Edwards
  2011-10-18 16:23         ` Grant Edwards
  2011-10-20  2:56       ` Walter Dnes
  1 sibling, 2 replies; 13+ messages in thread
From: YoYo Siska @ 2011-10-18 15:09 UTC (permalink / raw
  To: gentoo-user

On Mon, Oct 17, 2011 at 10:19:32PM +0000, Grant Edwards wrote:
> On 2011-10-17, Florian Philipp <lists@binarywings.net> wrote:
> 
> > Ugh, sorry. Just ignore that. I didn't see the second line in
> > config_eth1. The odd quoting confused me.
> 
> Sorry about that.  I was trying various quoting schemes I'd found in
> examples.
> 
> My current configuration works:
> 
>   modules_eth0=( !plug )
>   config_eth0=( "192.168.8.4/16" )
>   routes_eth0=( "default via 192.168.0.254" )
> 
>   modules_eth1=( !plug )
>   config_eth1=( "10.0.0.1/8" "192.168.250.1/24" )
> 
> $ /sbin/ip address show
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
>     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>     inet 127.0.0.1/8 scope host lo
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
>     link/ether 00:1b:21:b1:d1:e9 brd ff:ff:ff:ff:ff:ff
>     inet 192.168.8.4/16 brd 192.168.255.255 scope global eth0
> 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
>     link/ether 00:16:17:84:a7:b3 brd ff:ff:ff:ff:ff:ff
>     inet 10.0.0.1/8 brd 10.255.255.255 scope global eth1
>     inet 192.168.250.1/24 brd 192.168.250.255 scope global eth1
> 4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
>     link/ether 00:18:e7:08:20:33 brd ff:ff:ff:ff:ff:ff
> 
>   
> And the lack of eth1:1 is presumably explained if the system is using
> the iproute2 module instead of the ifconfig module.  My current theory
> is that iproute2 is getting used because I have openvpn installed with
> the iproute2 use flag. [I'm not actually using openvpn, but it's still
> istalled from a couple years ago when I was using it.]
> 


From /usr/share/doc/openrc-0.7.0/net.example:

##############################################################################
# INTERFACE HANDLERS
# 
# We provide two interface handlers presently: ifconfig and iproute2.
# You need one of these to do any kind of network configuration.
# For ifconfig support, emerge sys-apps/net-tools
# For iproute2 support, emerge sys-apps/iproute2

# If you don't specify an interface then we prefer iproute2 if it's installed
# To prefer ifconfig over iproute2
#modules="ifconfig"


But for some reason modules="ifconfig" doesn't seem to work for me (eth0:1
doesn't get created) but modules="!ifconfig" works ;)

Also it seems that  modules_ethX shouldn't be an array, modules_eth0="!plug
!iproute2" uses ifconfig, modules_eth0=( "!plug" "!iproute2" ) uses
iproute2 ;)



As to why you have iproute2 installed... I always install it, so I can't
say which packages might be pulling it in, but you can use equery to
find out:

tableta ~ # equery depends iproute2
 * These packages depend on iproute2:
net-misc/openvpn-2.2.0-r1 (iproute2 ? sys-apps/iproute2[-minimal])


yoyo



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

* [gentoo-user] Re: How to configure eth1:1 ?
  2011-10-18 15:09       ` YoYo Siska
@ 2011-10-18 16:18         ` Grant Edwards
  2011-10-19 15:19           ` james
  2011-10-19 15:45           ` Grant Edwards
  2011-10-18 16:23         ` Grant Edwards
  1 sibling, 2 replies; 13+ messages in thread
From: Grant Edwards @ 2011-10-18 16:18 UTC (permalink / raw
  To: gentoo-user

On 2011-10-18, YoYo Siska <yoyo@gl.ksp.sk> wrote:

> From /usr/share/doc/openrc-0.7.0/net.example:
>
> ##############################################################################
> # INTERFACE HANDLERS
> # 
> # We provide two interface handlers presently: ifconfig and iproute2.
> # You need one of these to do any kind of network configuration.
> # For ifconfig support, emerge sys-apps/net-tools
> # For iproute2 support, emerge sys-apps/iproute2
>
> # If you don't specify an interface then we prefer iproute2 if it's installed
> # To prefer ifconfig over iproute2
> #modules="ifconfig"

Apparenty the handbook is out of date.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=3

   3.b. Interface Handlers

   We provide two interface handlers presently: ifconfig and iproute2.
   You need one of these to do any kind of network configuration.

   ifconfig is the current Gentoo default and it's included in the
   system profile. iproute2 is a more powerful and flexible package,
   but it's not included by default. 

-- 
Grant Edwards               grant.b.edwards        Yow! I want to mail a
                                  at               bronzed artichoke to
                              gmail.com            Nicaragua!




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

* [gentoo-user] Re: How to configure eth1:1 ?
  2011-10-18 15:09       ` YoYo Siska
  2011-10-18 16:18         ` Grant Edwards
@ 2011-10-18 16:23         ` Grant Edwards
  1 sibling, 0 replies; 13+ messages in thread
From: Grant Edwards @ 2011-10-18 16:23 UTC (permalink / raw
  To: gentoo-user

On 2011-10-18, YoYo Siska <yoyo@gl.ksp.sk> wrote:
> On Mon, Oct 17, 2011 at 10:19:32PM +0000, Grant Edwards wrote:

>> And the lack of eth1:1 is presumably explained if the system is using
>> the iproute2 module instead of the ifconfig module.  My current theory
>> is that iproute2 is getting used because I have openvpn installed with
>> the iproute2 use flag. [I'm not actually using openvpn, but it's still
>> istalled from a couple years ago when I was using it.]
>
>
> From /usr/share/doc/openrc-0.7.0/net.example:

> # If you don't specify an interface then we prefer iproute2 if it's installed
> # To prefer ifconfig over iproute2
> #modules="ifconfig"

> As to why you have iproute2 installed...

I know why iproute2 is installed.  Like I said before, I have openvpn
installed with the iproute2 use flag.

What I didn't know was why iproute2 was being used by the startup
system when the handbook said that ifconfig was the defalt.  I hadn't
overridden that default, so I was expecting ifconfig to be used by the
startup system.

-- 
Grant Edwards               grant.b.edwards        Yow! I think my career
                                  at               is ruined!
                              gmail.com            




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

* [gentoo-user] Re: How to configure eth1:1 ?
  2011-10-18 16:18         ` Grant Edwards
@ 2011-10-19 15:19           ` james
  2011-10-19 15:45           ` Grant Edwards
  1 sibling, 0 replies; 13+ messages in thread
From: james @ 2011-10-19 15:19 UTC (permalink / raw
  To: gentoo-user

Grant Edwards <grant.b.edwards <at> gmail.com> writes:

> Apparenty the handbook is out of date.
> 
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=3
> 
>    3.b. Interface Handlers

Post a bug, as the doc team is really cool now and motivated.
Sven is a class_act.......


hth,
James





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

* [gentoo-user] Re: How to configure eth1:1 ?
  2011-10-18 16:18         ` Grant Edwards
  2011-10-19 15:19           ` james
@ 2011-10-19 15:45           ` Grant Edwards
  1 sibling, 0 replies; 13+ messages in thread
From: Grant Edwards @ 2011-10-19 15:45 UTC (permalink / raw
  To: gentoo-user

On 2011-10-18, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> On 2011-10-18, YoYo Siska <yoyo@gl.ksp.sk> wrote:
>
>> From /usr/share/doc/openrc-0.7.0/net.example:
>>
>> ##############################################################################
>> # INTERFACE HANDLERS
>> # 
>> # We provide two interface handlers presently: ifconfig and iproute2.
>> # You need one of these to do any kind of network configuration.
>> # For ifconfig support, emerge sys-apps/net-tools
>> # For iproute2 support, emerge sys-apps/iproute2
>>
>> # If you don't specify an interface then we prefer iproute2 if it's installed
>> # To prefer ifconfig over iproute2
>> #modules="ifconfig"
>
> Apparenty the handbook is out of date.
>
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=3
>
>    3.b. Interface Handlers
>
>    We provide two interface handlers presently: ifconfig and iproute2.
>    You need one of these to do any kind of network configuration.
>
>    ifconfig is the current Gentoo default and it's included in the
>    system profile. iproute2 is a more powerful and flexible package,
>    but it's not included by default. 
>

Done.

After re-reading those paragraphs a couple times, I've concluded that
the authors are talking about what is _installed_ by default, not what
is _used_ by default.  In my bug report I've suggested that both be
explained.

-- 
Grant Edwards               grant.b.edwards        Yow! Make me look like
                                  at               LINDA RONSTADT again!!
                              gmail.com            




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

* Re: [gentoo-user] Re: How to configure eth1:1 ?
  2011-10-17 22:19     ` [gentoo-user] " Grant Edwards
  2011-10-18 15:09       ` YoYo Siska
@ 2011-10-20  2:56       ` Walter Dnes
  2011-10-20 14:12         ` Grant Edwards
  1 sibling, 1 reply; 13+ messages in thread
From: Walter Dnes @ 2011-10-20  2:56 UTC (permalink / raw
  To: gentoo-user

On Mon, Oct 17, 2011 at 10:19:32PM +0000, Grant Edwards wrote

> My current configuration works:
> 
>   modules_eth0=( !plug )
>   config_eth0=( "192.168.8.4/16" )
>   routes_eth0=( "default via 192.168.0.254" )
> 
>   modules_eth1=( !plug )
>   config_eth1=( "10.0.0.1/8" "192.168.250.1/24" )

  Reaching for straws here... did you update /etc/conf.d/net when
switching over to openrc?  Your config looks like the previous style,
that has been deprecated.  Mine, which has 2 addresses for eth0, is...

config_eth0="
192.168.123.249/29 broadcast 192.168.123.255 mtu 1454
169.254.1.3/16 broadcast 169.254.255.255"
routes_eth0="
default via 192.168.123.254 metric 2
192.168.123.248/29 via 192.168.123.254 metric 0
169.254.0.0/16 via 169.254.1.3 metric 0"

  Note the opening quote in 'config_eth0="' and 'routes_eth0="', and
the closing quote at the end of each stanza.  There is one address per
line.  This is the new way of doing it.  See
/usr/share/doc/openrc-0.8.3-r1/net.example.bz2 for more details.
Replace "0.8.3" with whatever version of openrc you're running.

  The overlapping routes are for handling dialup, on those rare
occasions my broadband ISP is down.  It allows me to connect to the net
via dialup, while my TV tuner (169.254.1.3/16)  and the local lan
(192.168.123.248/29) stay connected.

-- 
Walter Dnes <waltdnes@waltdnes.org>



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

* [gentoo-user] Re: How to configure eth1:1 ?
  2011-10-20  2:56       ` Walter Dnes
@ 2011-10-20 14:12         ` Grant Edwards
  0 siblings, 0 replies; 13+ messages in thread
From: Grant Edwards @ 2011-10-20 14:12 UTC (permalink / raw
  To: gentoo-user

On 2011-10-20, Walter Dnes <waltdnes@waltdnes.org> wrote:
> On Mon, Oct 17, 2011 at 10:19:32PM +0000, Grant Edwards wrote
>
>> My current configuration works:
>> 
>>   modules_eth0=( !plug )
>>   config_eth0=( "192.168.8.4/16" )
>>   routes_eth0=( "default via 192.168.0.254" )
>> 
>>   modules_eth1=( !plug )
>>   config_eth1=( "10.0.0.1/8" "192.168.250.1/24" )
>
> Reaching for straws here... did you update /etc/conf.d/net when
> switching over to openrc?  Your config looks like the previous style,
> that has been deprecated.  Mine, which has 2 addresses for eth0, is...

I treid about 5 different quoting styles (as shown by various
documents), and all seemed to work the same.  It's just chance that I
ended up on the one above.

It's working now, so I'm going to quit messing with it until it stops
working. :)

-- 
Grant Edwards               grant.b.edwards        Yow! Do you think the
                                  at               "Monkees" should get gas on
                              gmail.com            odd or even days?




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

end of thread, other threads:[~2011-10-20 14:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-17 21:25 [gentoo-user] How to configure eth1:1 ? Grant Edwards
2011-10-17 21:37 ` [gentoo-user] " Grant Edwards
2011-10-17 22:04   ` Grant Edwards
2011-10-17 21:42 ` [gentoo-user] " Florian Philipp
2011-10-17 21:47   ` Florian Philipp
2011-10-17 22:19     ` [gentoo-user] " Grant Edwards
2011-10-18 15:09       ` YoYo Siska
2011-10-18 16:18         ` Grant Edwards
2011-10-19 15:19           ` james
2011-10-19 15:45           ` Grant Edwards
2011-10-18 16:23         ` Grant Edwards
2011-10-20  2:56       ` Walter Dnes
2011-10-20 14:12         ` Grant Edwards

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