Re: [SLUG] How to force which device is eth0?

2006-08-21 Thread jam
On Monday 21 August 2006 10:00, [EMAIL PROTECTED] wrote:
  I'm using Fedora, and I use the file /etc/modprobe.conf
  to say, e.g.,
 
  alias eth0 tulip
  alias eth1 e100
  alias eth2 3c59x
     
 
  That says that eth0 uses the tulip driver,
  but I'm not sure it says that the one that
  requires tulip is eth0, which is what the original
  poster wanted.
   

 Oh, by the way what does work for you ?

 I'll be glad to test it on my machine. Right now I am
 configuring a Linux Router machine.

I can guarantee a not working situation:

Install a system with a via ethernet card. Installed as eth0.
Now add the 3 additional net cards

  alias eth0 tulip
  alias eth1 e100
  alias eth2 3c59x

This is now wrong and wont work QED.
You can't prove something by showing that it does work!

James
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How to force which device is eth0?

2006-08-21 Thread Alexander Samad
On Mon, Aug 21, 2006 at 11:14:43AM +1000, O Plameras wrote:
 Matthew Hannigan wrote:
 On Mon, Aug 21, 2006 at 10:55:26AM +1000, O Plameras wrote:
   
 I'm using Fedora, and I use the file /etc/modprobe.conf
 to say, e.g.,
 
 alias eth0 tulip
 alias eth1 e100
 alias eth2 3c59x
 
 
 That says that eth0 uses the tulip driver,
 but I'm not sure it says that the one that
 requires tulip is eth0, which is what the original
 poster wanted.
   
 
 These works everytime for me.
if your initrd loads e100 or 3c59x first then it will not work
 
 O Plameras
 -- 
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
 


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] How to force which device is eth0?

2006-08-21 Thread O Plameras

Alexander Samad wrote:

On Mon, Aug 21, 2006 at 11:14:43AM +1000, O Plameras wrote:
  

Matthew Hannigan wrote:


On Mon, Aug 21, 2006 at 10:55:26AM +1000, O Plameras wrote:
 
  

I'm using Fedora, and I use the file /etc/modprobe.conf
to say, e.g.,

alias eth0 tulip
alias eth1 e100
alias eth2 3c59x
   


That says that eth0 uses the tulip driver,
but I'm not sure it says that the one that
requires tulip is eth0, which is what the original
poster wanted.
 
  

These works everytime for me.


if your initrd loads e100 or 3c59x first then it will not work
  


This is obscure news to me.


O Plameras
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html




--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How to force which device is eth0?

2006-08-21 Thread Simon Wong
On Mon, 2006-08-21 at 09:27 +1000, Jeff Waugh wrote:
 Check out /etc/iftab (and the iftab man page).
 
 - Jeff

Bingo!  Thanks, mate!


-- 
Simon Wong [EMAIL PROTECTED]

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How to force which device is eth0?

2006-08-21 Thread Simon Wong
On Mon, 2006-08-21 at 09:30 +1000, Ian Wienand wrote:
 I think you have two options; firstly is the ifrename package, which
 reads /etc/iftab.  

This exists in Ubuntu so it looks the easiest way to go.

 The other option is you can give your cards static names with udev,
 and then refer to those for your interfaces; see
 
 http://www.debianhelp.co.uk/udev.htm

Thanks, I'll have a read of this reference.

-- 
Simon Wong [EMAIL PROTECTED]

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] How to force which device is eth0?

2006-08-20 Thread Simon Wong
Occasionally, I come across a situation where the network device I am
using gets changed after a new kernel is installed eg from eth0 to eth2.
This is on a machine with 3 NICs.

I thought I found the right setting for /etc/network/interfaces using
hwaddress ether XX:XX..., however, that doesn't seem to be working on
my Dapper machine.

Can anyone offer any advice on how to force which hardware is eth0?

TIAs

-- 
Simon Wong [EMAIL PROTECTED]

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How to force which device is eth0?

2006-08-20 Thread Jeff Waugh
quote who=Simon Wong

 Occasionally, I come across a situation where the network device I am
 using gets changed after a new kernel is installed eg from eth0 to eth2.
 This is on a machine with 3 NICs.
 
 I thought I found the right setting for /etc/network/interfaces using
 hwaddress ether XX:XX..., however, that doesn't seem to be working on my
 Dapper machine.
 
 Can anyone offer any advice on how to force which hardware is eth0?

Check out /etc/iftab (and the iftab man page).

- Jeff

-- 
linux.conf.au 2007: Sydney, Australia   http://lca2007.linux.org.au/
 
 I have a burning curiosity about everything, everything-- except
   country and western, of course. - David Bowie
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How to force which device is eth0?

2006-08-20 Thread Ian Wienand
On Mon, Aug 21, 2006 at 09:19:13AM +1000, Simon Wong wrote:
 Can anyone offer any advice on how to force which hardware is eth0?

I think you have two options; firstly is the ifrename package, which
reads /etc/iftab.  

The other option is you can give your cards static names with udev,
and then refer to those for your interfaces; see

http://www.debianhelp.co.uk/udev.htm

-i


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Re: [SLUG] How to force which device is eth0?

2006-08-20 Thread O Plameras

Simon Wong wrote:

Occasionally, I come across a situation where the network device I am
using gets changed after a new kernel is installed eg from eth0 to eth2.
This is on a machine with 3 NICs.

I thought I found the right setting for /etc/network/interfaces using
hwaddress ether XX:XX..., however, that doesn't seem to be working on
my Dapper machine.

Can anyone offer any advice on how to force which hardware is eth0?

  


I'm using Fedora, and I use the file /etc/modprobe.conf
to say, e.g.,

alias eth0 tulip
alias eth1 e100
alias eth2 3c59x

Hope this helps.

O Plameras


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How to force which device is eth0?

2006-08-20 Thread Matthew Hannigan
On Mon, Aug 21, 2006 at 10:55:26AM +1000, O Plameras wrote:
 
 I'm using Fedora, and I use the file /etc/modprobe.conf
 to say, e.g.,
 
 alias eth0 tulip
 alias eth1 e100
 alias eth2 3c59x

That says that eth0 uses the tulip driver,
but I'm not sure it says that the one that
requires tulip is eth0, which is what the original
poster wanted.

Matt

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How to force which device is eth0?

2006-08-20 Thread O Plameras

Matthew Hannigan wrote:

On Mon, Aug 21, 2006 at 10:55:26AM +1000, O Plameras wrote:
  

I'm using Fedora, and I use the file /etc/modprobe.conf
to say, e.g.,

alias eth0 tulip
alias eth1 e100
alias eth2 3c59x



That says that eth0 uses the tulip driver,
but I'm not sure it says that the one that
requires tulip is eth0, which is what the original
poster wanted.
  


These works everytime for me.

O Plameras
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How to force which device is eth0?

2006-08-20 Thread O Plameras

Matthew Hannigan wrote:

On Mon, Aug 21, 2006 at 10:55:26AM +1000, O Plameras wrote:
  

I'm using Fedora, and I use the file /etc/modprobe.conf
to say, e.g.,

alias eth0 tulip
alias eth1 e100
alias eth2 3c59x



That says that eth0 uses the tulip driver,
but I'm not sure it says that the one that
requires tulip is eth0, which is what the original
poster wanted.
  


Oh, by the way what does work for you ?

I'll be glad to test it on my machine. Right now I am
configuring a Linux Router machine.

O Plameras

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How to force which device is eth0?

2006-08-20 Thread Jeff Waugh
quote who=O Plameras

 I'm using Fedora, and I use the file /etc/modprobe.conf to say, e.g.,
 
 alias eth0 tulip
 alias eth1 e100
 alias eth2 3c59x

This only works if you have three entirely separate NIC chipsets that you
can map to particular ports. If you have a four port tulip card in there,
you still won't be setting eth0 to a particular port. ifrename / iftab is
the best way to do it at the port / MAC level.

- Jeff

-- 
linux.conf.au 2007: Sydney, Australia   http://lca2007.linux.org.au/
 
   When there's public debate and mass hysteria, that's when the patches
 roll in. - Michael Meeks
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How to force which device is eth0?

2006-08-20 Thread O Plameras

Jeff Waugh wrote:

quote who=O Plameras

  

I'm using Fedora, and I use the file /etc/modprobe.conf to say, e.g.,

alias eth0 tulip
alias eth1 e100
alias eth2 3c59x



This only works if you have three entirely separate NIC chipsets that you
can map to particular ports. If you have a four port tulip card in there,
you still won't be setting eth0 to a particular port. ifrename / iftab is
the best way to do it at the port / MAC level.
  


If I have the same NIC chipsets, with Fedora, I use the option on
/etc/syconfig/network-script/ifcfg-eth0, namely:
.
HWADDR=00:0A:CC:51:67:7D
.

in combination with my /etc/modprobe.conf

O Plameras

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How to force which device is eth0?

2006-08-20 Thread O Plameras

Howard Lowndes wrote:



O Plameras wrote:

Jeff Waugh wrote:

quote who=O Plameras

 

I'm using Fedora, and I use the file /etc/modprobe.conf to say, e.g.,

alias eth0 tulip
alias eth1 e100
alias eth2 3c59x



This only works if you have three entirely separate NIC chipsets 
that you
can map to particular ports. If you have a four port tulip card in 
there,
you still won't be setting eth0 to a particular port. ifrename / 
iftab is

the best way to do it at the port / MAC level.
  


If I have the same NIC chipsets, with Fedora, I use the option on
/etc/syconfig/network-script/ifcfg-eth0, namely:
.
HWADDR=00:0A:CC:51:67:7D
.

in combination with my /etc/modprobe.conf


...and, if you do a standard install, all that gets done for you...


Absolutely. And when mapping gets scrambled for one reason
or another, I check /etc/modprobe.conf, then, ifcfg-eth[0-4],
and use #dmesg to figure out what's going on.

O Plameras
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html