public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  multiple ethernets
@ 2007-09-11 18:51 James
  2007-09-11 19:08 ` Elias Probst
  0 siblings, 1 reply; 4+ messages in thread
From: James @ 2007-09-11 18:51 UTC (permalink / raw
  To: gentoo-user

Hello,

I've set up multiple ethernet cards before, where I use the cards
MAC address to ensure that the correct ethernet card is assigned
which ip address  in a mulit nic environment server.

I symlinked net.lo as usual to all of the cards and the conf.d/net
file looks like this:

mac_eth0="00:4F:49:01:6F:7A"
mac_eth1="00:4F:49:01:8A:BF"
mac_eth2="00:40:05:63:3D:3E"
mac_eth3="52:54:00:DC:C8:E7"
config_eth0=( "192.168.2.33/24" )
config_eth1=( "192.168.3.33/24" )
config_eth2=( "192.168.4.33/24" )
config_eth3=( "192.168.5.33/24" )


The problem is another card was removed and now
eth1 is skipped over and get after reboot:
<heavily snipped>
eth0      Link encap:Ethernet  HWaddr 00:4F:49:01:6F:7A
          inet addr:192.168.2.33  Bcast:192.168.2.255  Mask:255.255.255.0
eth2      Link encap:Ethernet  HWaddr 00:40:05:63:3D:3E
          inet addr:192.168.4.33  Bcast:192.168.4.255  Mask:255.255.255.0

eth3      Link encap:Ethernet  HWaddr 52:54:00:DC:C8:E7
          inet addr:192.168.5.33  Bcast:192.168.5.255  Mask:255.255.255.0
eth4      Link encap:Ethernet  HWaddr 52:54:00:DC:C8:E7
          BROADCAST MULTICAST  MTU:1500  Metric:1

I assume that the eth1 problem is a vestige of removing an old card
and replacing it with a newer one. I just cannot find what to remove
or re-initiate to get the sequence of nic assignments to be
eth0, eth1, eth2, eth3.

I looked at net.examples but somehow I've missed something else.

any ideas are most welcome.



James


-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user]  multiple ethernets
  2007-09-11 18:51 [gentoo-user] multiple ethernets James
@ 2007-09-11 19:08 ` Elias Probst
  2007-09-11 19:23   ` [gentoo-user] " James
  0 siblings, 1 reply; 4+ messages in thread
From: Elias Probst @ 2007-09-11 19:08 UTC (permalink / raw
  To: gentoo-user

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

On Tuesday 11 September 2007 20:51:44 James wrote:
> I assume that the eth1 problem is a vestige of removing an old card
> and replacing it with a newer one. I just cannot find what to remove
> or re-initiate to get the sequence of nic assignments to be
> eth0, eth1, eth2, eth3.
>
> I looked at net.examples but somehow I've missed something else.

Take a look at /etc/udev/rules.d/70-persistent-net.rules

Regards, Elias P.


-- 
A really nice number:
"09:F9:11:02:9D:74:E3:5B:D8:41:56:C5:63:56:88:C0"

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* [gentoo-user]  Re: multiple ethernets
  2007-09-11 19:08 ` Elias Probst
@ 2007-09-11 19:23   ` James
  2007-09-12 18:19     ` Mick
  0 siblings, 1 reply; 4+ messages in thread
From: James @ 2007-09-11 19:23 UTC (permalink / raw
  To: gentoo-user

Elias Probst <mail <at> eliasprobst.eu> writes:

> > I just cannot find what to remove
> > or re-initiate to get the sequence of nic assignments to be
> > eth0, eth1, eth2, eth3.

> > I looked at net.examples but somehow I've missed something else.

> Take a look at /etc/udev/rules.d/70-persistent-net.rules


Yep, Never even thought about udev files......
I need a vacation.

thx,

James

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user]  Re: multiple ethernets
  2007-09-11 19:23   ` [gentoo-user] " James
@ 2007-09-12 18:19     ` Mick
  0 siblings, 0 replies; 4+ messages in thread
From: Mick @ 2007-09-12 18:19 UTC (permalink / raw
  To: gentoo-user

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

On Tuesday 11 September 2007, James wrote:
> Elias Probst <mail <at> eliasprobst.eu> writes:
> > > I just cannot find what to remove
> > > or re-initiate to get the sequence of nic assignments to be
> > > eth0, eth1, eth2, eth3.
> > >
> > > I looked at net.examples but somehow I've missed something else.
> >
> > Take a look at /etc/udev/rules.d/70-persistent-net.rules
>
> Yep, Never even thought about udev files......
> I need a vacation.

You could run udevstart first and see how (what order) it picks them up in.  
You may not need to set up permanent rules.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2007-09-12 19:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-11 18:51 [gentoo-user] multiple ethernets James
2007-09-11 19:08 ` Elias Probst
2007-09-11 19:23   ` [gentoo-user] " James
2007-09-12 18:19     ` Mick

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