LinuxQuestions.org
Visit Jeremy's Blog.
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 12-11-2005, 06:25 PM   #1
MiniMe001
Member
 
Registered: Nov 2004
Location: US
Distribution: Gentoo
Posts: 59

Rep: Reputation: 15
Interface Non-Existant...?


Maybe I'm having one of those days, but I'm more than a bit confused...

I've got two ethernet ports on my computer. One on a linksys card and one not. I don't know what the one that's not is hooked to--I assume it's the motherboard?

Anyway, the one hooking into the linksys card works fine. That's where I get my internet from. Patch cable from a router. It uses eth0.

Now my problem is, how do I get an eth1 for the other port? I can just see this as being a dumb question, but hell if I know what I'm doing...
 
Old 12-11-2005, 07:38 PM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Execute the following commands and post their results here.
Code:
# lsmod
# lspci
These commands should at least show whether the OS is detecting your onboard NIC.
 
Old 12-11-2005, 07:58 PM   #3
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
# lspci | grep Ethernet
will show you the network card(s) that have drivers loaded

You might like to post the brand/model of your motherboard
if there isn't a 2nd entry so we can work out which module
needs to be loaded for it.

# ifconfig eth1
will show you the status of eth1 (even if down), but the
device must actually exist first.

If both of those work I suggest you take a peek at the
networking howto's at gentoo

If you really don't have a clue:
a) get one (a clue, that is )
b) read more about networking in general
c) remember that google is your friend
 
Old 12-14-2005, 11:03 PM   #4
MiniMe001
Member
 
Registered: Nov 2004
Location: US
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
Er.. Yeah, there's no driver (I think). Funny thing is, I don't know how to figure out what to do about it. eth1 doesn't exist as of yet. My problem is getting it there. I gather that the driver sticks it there, so to speak. The NIC is fine, btw.

I've done a fair bit of networking (in my house, that is). Wired/wireless networks with different cables and such through linux and winblows. Just had one of those days, I suppose.

Anyway, the thing is, this ethernet port is (I suppose) on my motherboard. That's about as far as my knowledge goes. If I knew what driver to install, I could probably blunder my way through it; I've done it before.

Maybe I..., no, I'm sure I'm not entirely sure I know what I'm talking about. If you can work your way through that sentence... But it just seems to me that it should be something generic that would just "work," so to speak, since it's not an actual ethernet card. Minimal fiddling with it.

Whichever, how do I figure out what to install?
 
Old 12-15-2005, 07:52 AM   #5
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Execute lsmod and lspci and post their results here, as requested above.
 
Old 12-15-2005, 08:36 AM   #6
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Quote:
Originally Posted by MiniMe001
Er.. Yeah, there's no driver (I think). Funny thing is, I don't know how to figure out what to do about it. eth1 doesn't exist as of yet. My problem is getting it there. I gather that the driver sticks it there, so to speak. The NIC is fine, btw.
That's right. No driver = no eth1 (or is that "driver => eth1" ? )

Quote:
Originally Posted by MiniMe001
I've done a fair bit of networking (in my house, that is). Wired/wireless networks with different cables and such through linux and winblows. Just had one of those days, I suppose.
experience is relative

Quote:
Originally Posted by MiniMe001
Anyway, the thing is, this ethernet port is (I suppose) on my motherboard. That's about as far as my knowledge goes.
You suppose?
I don't suppose it makes much difference, but why on earth don't you know?
(I must be missing something!)

Quote:
Originally Posted by MiniMe001
If I knew what driver to install, I could probably blunder my way through it; I've done it before.
hmmm ... yes ... more action ... less talk.
Post info as requested and we'll get to that stage.

Quote:
Originally Posted by MiniMe001
Maybe I..., no, I'm sure I'm not entirely sure I know what I'm talking about.
We got that bit

Quote:
Originally Posted by MiniMe001
If you can work your way through that sentence...
Can't read minds as well as I used to ... most of mine's gone

Quote:
Originally Posted by MiniMe001
But it just seems to me that it should be something generic that would just "work," so to speak, since it's not an actual ethernet card. Minimal fiddling with it.
I'm not going to bash you right now, as I've had a few drinks.
If you stop guessing about what's going on and how 'it' works, we can
get on with the task at hand ... finding out what 'it' is.

Quote:
Originally Posted by MiniMe001
Whichever, how do I figure out what to install?
1. Learn to read my posts before I start drinking? 8)
2. Take more time to research the information required for a post,
than it takes to type it.

Last edited by uberNUT69; 12-15-2005 at 08:38 AM.
 
Old 12-15-2005, 10:09 PM   #7
MiniMe001
Member
 
Registered: Nov 2004
Location: US
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
Code:
$ lsmod
Module                  Size  Used by
ipv6                  185472  22
tulip                  42016  0
ahci                    7604  0
sata_qstor              6100  0
sata_uli                4368  0
sata_sis                4240  0
sata_sx4                9716  0
sata_nv                 5620  0
sata_via                5364  0
sata_svw                4596  0
sata_sil                5620  0
sata_promise            6900  0
libata                 27700  10 ahci,sata_qstor,sata_uli,sata_sis,sata_sx4,sata_nv,sata_via,sata_svw,sata_sil,sata_promise
dm_mirror              15320  0
dm_mod                 38080  1 dm_mirror
sbp2                   16920  0
ohci1394               25812  0
ieee1394               59704  2 sbp2,ohci1394
sl811_hcd               9392  0
ohci_hcd               15384  0
uhci_hcd               23936  0
usb_storage            47680  0
usbhid                 25696  0
ehci_hcd               22872  0
usbcore                75064  7 sl811_hcd,ohci_hcd,uhci_hcd,usb_storage,usbhid,ehci_hcd
lspci isn't installed and portage (gentoo) can't find it. I'll install it tomorrow.

I think it's on my motherboard, because I don't see anywhere else it could be. I know just about zip about hardware. It's up there where the PS2 and usbs are, though. I dunno what else it could be hooked to, so I figure it's the motherboard. Where the [] are in this:
Code:
 _____________
||ooo|       ||
|| XX|       ||
||[] |       ||
|| []|       ||
...
||-----[:::]-||
Anyway, I don't see how googling can help if I don't know what to google.
 
Old 12-16-2005, 04:42 AM   #8
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Right,
the only network-related module I can see in that list is tulip.
I assume that would be for your linksys card.
As your motherboard would have to be reasonably recent to have sata,
I'm guessing you probably have some sort of gigabit ethernet that's
not supported by your current kernel.

Please help us to help you:
1. supply motherboard brand & model. If you don't know it, google for the brand & model of the computer until you do.
2. find the kernel version you are running
Code:
$ uname -a
3. supply output from lspci (lspci is part of the 'pciutils' package)
 
Old 12-17-2005, 06:16 PM   #9
MiniMe001
Member
 
Registered: Nov 2004
Location: US
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
1)
computer: vpr matrix ft-2100pe
all I can find is that it's an Intel RAID-capable board. the vpr matrix site doesn't have it and google gives like 6 or 7 results. :/
It does say integrated 10/100 ethernet, though.

2)
2.6.11-gentoo-r3 #1 SMP Wed Jun 15 10:32:19 CDT 2005 i686 Intel P4 2.4GHz GenuineIntel GNU/Linux
Funny, June 15 is my birthday. :P

3)
0000:00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 02)
0000:00:01.0 PCI bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE Host-to-AGP Bridge (rev 02)
0000:00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
0000:00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
0000:00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02)
0000:00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82)
0000:00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
0000:00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02)
0000:00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02)
0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV11DDR [GeForce2 MX 100 DDR/200 DDR] (rev b2)
0000:02:02.0 Ethernet controller: Linksys NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
0000:02:03.0 Modem: Broadcom Corporation BCM4212 v.90 56k modem
0000:02:06.0 RAID bus controller: Promise Technology, Inc. PDC20267 (FastTrak100/Ultra100) (rev 02)
0000:02:07.0 FireWire (IEEE 1394): Agere Systems FW323 (rev 04)
0000:02:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VE (LOM) Ethernet Controller (rev 82)


and yeah, tulip is for the linksys card.

Last edited by MiniMe001; 12-17-2005 at 06:24 PM.
 
Old 12-17-2005, 06:52 PM   #10
ruuster
Member
 
Registered: Dec 2005
Distribution: Slackware 10.2 - bare.i, Slackware 10.1 - scsi.s, Slackware 9.1 - bare.i
Posts: 47

Rep: Reputation: 15
Both Ethernet cards are showing up. Post the results of "ifconfig -a".
 
Old 12-17-2005, 07:10 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,750

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
The ethernet adapter is on the motherboard. Try loading the eepro100 module i.e.
modprobe eepro100
 
Old 12-17-2005, 07:36 PM   #12
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Looking at the spec sheet for the FT2100-PE (on the vpr site)
Quote:
Network Card Intel Pro 10/100 Integrated NIC
A bit of (patient) googling will eventually reveal references to
eepro, eepro100 or e100 (not sure of the differences)

Examing the documentation installed with your kernel source:
(you say you're running gentoo so I assume you've got the kernel source)
you'll find an INDEX for the network drivers in
/usr/src/linux/Documentation/networking/00-INDEX (or similar)
Code:
 $ locate Documentation | grep networking | grep INDEX
Looking in that file, you'll find:
Quote:
e100.txt
- info on Intel's EtherExpress PRO/100 line of 10/100 boards
Which describes the driver and how to use it.

That being said, try
Code:
# modprobe e100
# ifconfig -a
and post the output.

If the modprobe command fails try eepro and/or eepro100

hint:
www.google.com/linux

Last edited by uberNUT69; 12-17-2005 at 07:42 PM.
 
Old 12-27-2005, 06:59 PM   #13
MiniMe001
Member
 
Registered: Nov 2004
Location: US
Distribution: Gentoo
Posts: 59

Original Poster
Rep: Reputation: 15
Sorry it took me so long...

Anyway, that was pretty much what I was looking for.

Code:
eth0      Link encap:Ethernet  HWaddr 00:0C:41:E4:DB:D5  
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:41ff:fee4:dbd5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:340736 errors:1 dropped:0 overruns:0 frame:1
          TX packets:314227 errors:8 dropped:0 overruns:0 carrier:8
          collisions:0 txqueuelen:1000 
          RX bytes:99528403 (94.9 Mb)  TX bytes:154020780 (146.8 Mb)
          Interrupt:18 Base address:0x8c00 

eth1      Link encap:Ethernet  HWaddr 00:07:E9:AF:29:94  
          inet addr:123.10.0.1  Bcast:123.10.0.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:feaf:2994/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:4 dropped:0 overruns:0 frame:4
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:378 (378.0 b)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3234 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3234 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:310550 (303.2 Kb)  TX bytes:310550 (303.2 Kb)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
I've got the windows box set up as..
IP: 123.10.1.2
Subnet mask: 255.255.255.0
Default gateway: ??? (blank) >> What do I put here? <<
And what do I put for the DNS server stuff?
 
Old 12-29-2005, 12:25 AM   #14
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
OK, you're obviously getting somewhere now.

I assume that eth0 on the Linux box connects to a some sort of modem/router.

Completely change the 123.x.x.x ... it's not in the range of IP's reserved
for private use ... it will only cause you grief later. I suggest you use a
class C address subrange like 192.168.0.x or 192.168.2.x (making it a different
subrange to the one on eth0 should also make things easier)
Let's assume you use 192.168.0.101 for eth1 on the Linux box.
So, on the windows box:
IP: 192.168.0.2 (say)
NM: 255.255.255.0
GW: 192.168.0.101

2. Make the linux box do port forwarding:
# echo 1 > /proc/sys/net/ipv4/ip_forward

3. If you have iptables installed then you need to make a rule
to masquerade the packets from/to the windows box:
# iptables -t nat -A POSTROUTING -s 192.168.0.2 -j MASQUERADE

4. As far as DNS goes, there are a few ways of approaching it:
a) install a package like dnsmasq and set the dns of the windows
box to the ip of your linux box
b) just use normal masquerading and set the dns of the windows box
to the same setting that your linux box uses (isp or modem).
c) install bind on your linux box.

That's all I have time for now, have fun.
 
  


Reply



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
Removing non existant folder squady Linux - Newbie 2 10-11-2005 12:10 AM
non-existant file still shows up Daenris Linux - General 8 03-17-2005 03:01 AM
Sendmail to accept non-existant domains benjithegreat98 Linux - Networking 2 03-09-2005 09:43 AM
which interface jag2000 Linux - Newbie 4 04-13-2004 06:41 PM
Using RH9 on an existant FAT partition? **DONOTDELETE** Linux - Newbie 4 10-22-2003 05:33 AM

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

All times are GMT -5. The time now is 01:58 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
Open Source Consulting | Domain Registration