LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2001, 12:14 PM   #1
sew2athotmail
LQ Newbie
 
Registered: Aug 2001
Posts: 6

Rep: Reputation: 0
Question eth0 binding


how does linux know which network device(eth0, eth1, etc) to bind to which device for pcmcia devices. I recently set up a laptop with a pcmcia card and within linuxconf I only specified and IP address and netmask. The system found the card and it worked. What if a network card was onboard. How would the system know which card to bind eth0 to. Or if there were two pcmcia devices.
 
Old 08-03-2001, 03:40 PM   #2
Breezwell
Member
 
Registered: Apr 2001
Location: Chicago
Distribution: Gentoo 1.4
Posts: 214

Rep: Reputation: 30
I have not tried multi-homed system configuration yet, but the best bet would be to simply configure the onbaord NIC as eth0, then install the second NIC and make that eth1.

As far as how Linux determines which card is which if both are in at the same time when you try to configure each one, I am not sure.
 
Old 08-03-2001, 03:52 PM   #3
sew2athotmail
LQ Newbie
 
Registered: Aug 2001
Posts: 6

Original Poster
Rep: Reputation: 0
I can make the system multihomed with no problem I was just curious as to how the system assigns etho with no io values or irqs or kernel modules to alias eth0 to. Maybe there is a file that list the cards by the time they were installed. Such as the first installed card is eth0 and the second is eth2.
 
Old 08-04-2001, 12:29 PM   #4
Breezwell
Member
 
Registered: Apr 2001
Location: Chicago
Distribution: Gentoo 1.4
Posts: 214

Rep: Reputation: 30
Try looking in the /proc directory.
I know it lists info on hard drives and such. You might find someting in there relating to the IP address mappings for your NIC's.

I know that when you boot you also get a listing of IP address mappings. It may list the card also. If you log as root, go to a terminal and run the 'dev' command. This should, if I remember right, give you the same output that you see during the boot process. You can pipe this to file so you can read it in Vi or Pico later.
 
  


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
obsolete binding?? lmvent Programming 2 12-02-2010 07:15 PM
binding named m41k Linux - General 2 10-18-2005 07:22 AM
binding problem rajender Linux - Networking 0 03-26-2004 12:06 AM
help! binding problems toadeny Linux - Networking 3 09-18-2003 08:01 AM
key binding? granny Linux - Newbie 2 03-11-2003 09:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:09 AM.

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
Open Source Consulting | Domain Registration