LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-01-2003, 02:04 PM   #1
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Rep: Reputation: 30
can't find eth2 device


Hey all

I have just recompiled my kernel and my computer, which has the following ethernet cards, no longer recognises one of my card.

The network cards are:
eth0 wireless card
eth1 wired network card
eth2 wired network card

After the recompile, eth2 is no longer working. lsmod says that it is using the module, but when i "ifconfig eth2 up" it tell me that the device is not there.

Where do I look for the device and tell the cmputer that it DOES exist and that the computer is just being stupid!?

please help

Hamish
 
Old 12-01-2003, 03:16 PM   #2
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
You may want to try ifconfig -a eth2 and see what that does for you. See ifconfig --help for full syntax and man 8 ifconfig for more than you ever wanted to know about it. It may have just lost it and needs to be tiold it is there.
 
Old 12-01-2003, 04:21 PM   #3
dubman
Member
 
Registered: Jan 2003
Distribution: Redhat 9, Fedora Core 1, Suse 8
Posts: 188

Rep: Reputation: 30
you may need a profile set up for the interface for ifup and ifdown to work.

#/etc/sysconfig/network-scripts/ifcfg-eth2

file should read:

DEVICE=eth2
BOOTPROTO="dhcp,static'
ONBOOT=yes

you would also need

IPADDR=xxx.xxx.xxx.xxx
NETMASK=xxx.xxx.xxx.xxx

if you were set to a static IP

now "ifup eth2" and 'ifdown eth2" should work

--hope this helps
 
Old 12-01-2003, 05:00 PM   #4
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
thanks. I will try that out tomorrow and get back to you.

thanks
Hamish
 
Old 12-03-2003, 03:34 PM   #5
hamish
Member
 
Registered: Aug 2003
Location: Edinburgh
Distribution: Server: Gentoo2004; Desktop: Ubuntu
Posts: 720

Original Poster
Rep: Reputation: 30
Hey,

SUSE is slightly different with the /etc/sysconfig/ . the directory i was looking for was /etc/sysconfig/network/ This has the file I was looking for.

The ifcgf-eth2 file looks like this:

BOOTPROTO='static'
BROADCAST='172.24.15.239'
IPADDR='172.24.15.229'
MTU=''
NETMASK='255.255.255.240'
NETWORK='172.24.15.224'
REMOTE_IPADDR=''
STARTMODE='onboot'
UNIQUE='VeW7.bM7cYpCLfi8'
WIRELESS='no'

Even when I added "DEVICE" into this, it didn't work.

any other suggestions?

thanks loads people
hamish
 
  


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
need eth2 to be eth0 frkstein Linux - Networking 1 04-27-2005 08:17 PM
add eth2 varun_saa Mandriva 9 01-14-2005 10:04 AM
eth2 briankb713 Linux - Hardware 0 01-04-2005 09:28 PM
How can I find out the name of a device? Norrin Linux - Newbie 6 08-17-2003 10:22 PM
How could I find my device name? forrest Linux - General 4 09-11-2001 09:02 AM

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

All times are GMT -5. The time now is 05:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration