LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 04-26-2010, 11:48 PM   #1
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Rep: Reputation: 15
Help assigning eth0 to PCMCIA nic


Hi.
Just completed installing Xubuntu 9.04 to my old Dell Latitude CPi (thanks snowpine) and it seems to be working quite well. However I need to assign interface eth0 to my pcmcia network card (as opposed to eth1 or eth2). I have two cards to try out. One of them comes up as eth1 and the other as eth2. There is no eth0 listed when I run ifconfig -a. There is no built-in network cards on the laptop, so I don't know why it won't assign eth0 to either of the cards.

Would greatly appreciate any guidance on how to assign eth0 to either of the two PCMCIA network cards. Thanks.
 
Old 04-27-2010, 04:27 AM   #2
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
Hi,

Not sure how this works on Xubunutu but in Redhat to keep the ethX assignation correctly assigned we have to edit the /etc/sysconfig/network-scripts/ifcfg-ethX file and ensure the mac address is assigned in the file, I.e.

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=190.29.9.15
NETMASK=255.255.254.0
HWADDR=00:BB:56:20:17:AA

Stuart.
 
Old 04-27-2010, 11:42 AM   #3
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks Stuart. I'll give it a shot this evening. In the mean time, do you know if that will work with PCMCIA network cards? I ask because based on my further reading it appears that the interface numbers are assigned based on boot priority. If PCMCIA loads after networking then its number gets incremented by one. Maybe the /etc/sysconfig/network-scripts/ifcfg-ethX file will overwrite this automatic config assignment?
 
Old 04-27-2010, 06:56 PM   #4
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Original Poster
Rep: Reputation: 15
Turns out that /etc/sysconfig doesn't exist on xubuntu. Searched around a bit and found the /etc/network/interfaces file, which might be useful, however I'm not sure of the systax required or if I can use that file to designate eth0 to a specific mac address. Any suggestions?
 
Old 04-27-2010, 11:09 PM   #5
WonderLlama
LQ Newbie
 
Registered: Apr 2010
Location: Across town
Distribution: Slackware 11; Ubuntu 9.10 (netbook)
Posts: 24

Original Poster
Rep: Reputation: 15
Finally found a solution to the problem. Configuration settings are in /etc/udev/rules.d/70-persistent-net.rules. Once there I swapped the interface names between eth0 and eth2. Now my pcmcia network card comes up as eth0.
 
  


Reply

Tags
eth0, network, pcmcia, xubuntu



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
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
Assigning eth0 / eth1 or multi-LAN motherboards? Eastside Linux - Networking 5 06-13-2005 10:34 PM
assigning multiple ip's to nic ? pingu_penguin Linux - Networking 2 05-14-2005 09:00 PM
PCMCIA and eth0 Nyphur Linux - General 1 10-07-2003 07:39 AM
pcmcia and eth0 c0c0deuz Linux - Networking 0 02-07-2003 05:49 AM

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

All times are GMT -5. The time now is 02:02 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