LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2004, 03:23 PM   #1
rridler
Member
 
Registered: Apr 2004
Location: N. Kentucky
Distribution: Fedora 13 and Fedora 14
Posts: 46

Rep: Reputation: 15
Hardware Detection Order.


How can I make the OS detect my hardware in a specific order?

I have 2 OS's on different HD's, Red Hat 9.0 and Fedora Core2.
Red Hat detects the 3Com network card as eth0, and Fedora detects the Realtek network card as eth0. My ISP will only allow 1 MAC address the be listed on my account at a time, so I have to call them and have my account updated every time I switch operating systems. This is a real pain!!!

How can I specify which card I want to be eth0?

Ridler
 
Old 04-26-2004, 04:24 PM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
Why don't you instead of calling your ISP, switch the ethernet cable from 1 card to the other.
and use 'route' command to switch between default gateways, for that OS?

The reason why you are calling your ISP is obviously because you don't think you can connect to the internet through eth1, when in fact eth0 is set as your default gateway deevice/address.

Switch the default gateway, keeping the eth plug in 1 card. regardless of eth naming schemes or detection order.

'man route'
route add default gw 10.0.1.1

replace the 10.0.1.1 address with the IP of the device that is connected to the internet interface.
summary- 'man route'
- /etc/sysconfig/network-scripts/ifcfg-eth0
- /etc/sysconfig/network-scripts/ifcfg-eth1
 
Old 04-27-2004, 02:52 PM   #3
rridler
Member
 
Registered: Apr 2004
Location: N. Kentucky
Distribution: Fedora 13 and Fedora 14
Posts: 46

Original Poster
Rep: Reputation: 15
I don't believe that you are understanding my problem. Switching the cables will not solve my issue, because every NIC has a unique MAC address. By switching the cables you are using an other NIC and therefor broadcasting a different MAC address to the ISP. My ISP account is setup to register only 1 MAC address at a time. If you don't change the detection order you have to call in to change the MAC address that is associated with that account. I need to be sure that a specific NIC is detected first and assigned to eth0 which is the public or WAN card, so it will always broadcast the same MAC address to my ISP.

I need to be able change the order that the OS detects the network cards at boot to be sure that I always have the registered MAC address on eth0.

Ridler

Last edited by rridler; 04-27-2004 at 04:11 PM.
 
Old 04-27-2004, 03:10 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,702

Rep: Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749Reputation: 1749
Look at the the /etc/modules.conf. Edit the file to assign the ethx to the module for the network card.

example:
alias eth0 8139t00

If you want eth0 to be the 3COM card then use its module.

Last edited by michaelk; 04-27-2004 at 03:12 PM.
 
Old 04-27-2004, 06:03 PM   #5
rridler
Member
 
Registered: Apr 2004
Location: N. Kentucky
Distribution: Fedora 13 and Fedora 14
Posts: 46

Original Poster
Rep: Reputation: 15
Thank you,

Ridler

Last edited by rridler; 04-29-2004 at 06:23 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hardware detection. j0ck Slackware 6 08-08-2005 04:17 PM
Hardware detection Jeebizz Slackware 3 12-31-2004 04:58 PM
Ethernet detection order - simple solution for slackware 10 gtalev Slackware 0 08-16-2004 04:50 PM
Hardware Detection Kensai Arch 4 03-17-2004 05:26 PM
Hardware detection groovin Debian 12 03-16-2004 05:01 PM


All times are GMT -5. The time now is 10:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration