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... |
Execute the following commands and post their results here.
Code:
# lsmod |
# 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 :) |
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? |
Execute lsmod and lspci and post their results here, as requested above.
|
Quote:
Quote:
Quote:
I don't suppose it makes much difference, but why on earth don't you know? (I must be missing something!) Quote:
Post info as requested and we'll get to that stage. Quote:
Quote:
Quote:
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:
2. Take more time to research the information required for a post, than it takes to type it. |
Code:
$ lsmod 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:
_____________ |
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 |
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. ;) |
Both Ethernet cards are showing up. Post the results of "ifconfig -a".
|
The ethernet adapter is on the motherboard. Try loading the eepro100 module i.e.
modprobe eepro100 |
Looking at the spec sheet for the FT2100-PE (on the vpr site)
Quote:
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 Quote:
That being said, try Code:
# modprobe e100 If the modprobe command fails try eepro and/or eepro100 hint: www.google.com/linux |
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 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? |
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. |
All times are GMT -5. The time now is 08:59 AM. |