View previous topic :: View next topic |
Author |
Message |
bpk2001 n00b
Joined: 03 Feb 2005 Posts: 10 Location: New York, NY
|
Posted: Tue Feb 08, 2005 6:13 am Post subject: lspci shows eth0ð1 but no network [solved] |
|
|
Here is my situation. I used the 2004.3 universal CD to do a stage 3 install of kernel 2.6.9-r1. My computer is a Sony Viao laptop, and the built-in ethernet has not worked for a while. ALso, I had to use a PCMCIA CD-ROM drive, since that is the only CD drive I have. During the installation process the liveCD recognized the built-in card as eth0, but i could not get it to work. After finishing the rest of the install (used genkernel), i wanted to see if I could get the network set up (I have a cable modem). So i took a PCMCIA ethernet card from another laptop to see if it would work. The PCMCIA card is a Netgear FA511, which appears to generally work on Gentoo. The card is recognized in lspci. It also shows up in ifconfig initially, but only for a little bit.
I dont know what to do to get the network up and working. I have tried dhcpcd and nothing happens. pinging google returns :unknown host www.google.com. Any suggestions would be greatly appreciated.
My lspci file includes:
Code: | 0000.01.08.0 Ethernet controller: Intel Corp 82801 BA/BAM/CA/CAM Ethernet Controller (rev 03)
0000.02.00.0 Ethernet Controller: Linksys Fast Ethernet 10/100 (rev 11) |
My lsmod file contains e100 and tulip, and I believe these are the correct drivers for the 2 cards.
ifconfig-a shows
Code: | eth0 Link encap: Ethernet HWaddr: --------------------------
Broadcast Multicast MTU:1500 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:1000
RX bytes:0 (0.0b) TX bytes:0 (0.0 b)
Interrupt: 9 Base address:0x4000
eth1 Link encap: Ethernet HWaddr: --------------------------
Broadcast Multicast MTU:1500 Metric:1
RX Packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0b) TX bytes:2360 (2.3 Kb)
|
If ifconfig is run immediately after boot, it shows
Code: | eth1 Link encap: Ethernet HWaddr: --------------------------
Up Broadcast Notrailers Multicast MTU:1580 Metric:1
|
I can provide any more required information.
Last edited by bpk2001 on Wed Feb 09, 2005 2:45 pm; edited 2 times in total |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Feb 08, 2005 6:15 am Post subject: |
|
|
Having the system recognize the hardware and having it actually get you on the network are two completely different issues.
The easiest way to get things working is probably just configure your kernel with all the modules that look like it might be related to your network hardware, and reboot to see what the kernel does.
That, or try net-setup eth0 from the livecd after manually loading modules. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
bpk2001 n00b
Joined: 03 Feb 2005 Posts: 10 Location: New York, NY
|
Posted: Tue Feb 08, 2005 6:17 am Post subject: |
|
|
The kernel seems to recognize all my hardware, since it shows up in lspci. [Is this not true?]
If it does recognize it all, how do i go about connecting? |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
|
Back to top |
|
|
bpk2001 n00b
Joined: 03 Feb 2005 Posts: 10 Location: New York, NY
|
Posted: Tue Feb 08, 2005 6:36 am Post subject: |
|
|
Yes, I tried that with eth0 during the install. The CD recognized the card but net-setup and dhcpcd failed. Since both my CD and other card are PCMCIA, and my laptop has only one PCMCIA slot, i don't know how to do this with the second card. Any advice would be appreciated here.
I tried net-setup from the installed kernel, but the command does not exist. |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Feb 08, 2005 6:38 am Post subject: |
|
|
Ah okay I think I read you wrong there .... so you have the module loaded, right? But you can't get your network to give you an ip address, is that correct?
Edit: What are you connecting your network cards into -- another router or straight into your cable modem or what? _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
bpk2001 n00b
Joined: 03 Feb 2005 Posts: 10 Location: New York, NY
|
Posted: Tue Feb 08, 2005 6:42 am Post subject: |
|
|
Right, modules are loaded and I cant get the network to give me an IP address. Plugged directly into cable modem. |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Feb 08, 2005 6:47 am Post subject: |
|
|
Did you ever have a network card that could get on the net that was plugged directly into the modem? If so, the modem or your cable provider might be caching your mac address, and you'd need to change it to that old one.
Whats your /etc/resolv.conf say? _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
bpk2001 n00b
Joined: 03 Feb 2005 Posts: 10 Location: New York, NY
|
Posted: Tue Feb 08, 2005 6:53 am Post subject: |
|
|
Re: mac address
Yes, I am using the cable modem right now with a different computer. Perhaps that is the problem. How do i determine the mac address on a windows xp computer?
Re: /etc/resolv.conf
domain [my domain name]
Should there be more in here? |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Feb 08, 2005 7:21 am Post subject: |
|
|
Yah, you should have your nameservers in there.
Here's mine:
Code: | nameserver 204.127.199.8
nameserver 63.240.76.198
search comcast.net |
If you can get into windows again, and online, run ipconfig /all (I think) and that should give you your nameservers. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
bpk2001 n00b
Joined: 03 Feb 2005 Posts: 10 Location: New York, NY
|
Posted: Tue Feb 08, 2005 7:25 am Post subject: |
|
|
OK, tried that. Didnt work. What is the search line for?
Also, what info do i need from the windows machine? There is no entry that reads mac. |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Feb 08, 2005 3:50 pm Post subject: |
|
|
Im not sure what the search line is for. I think it resolves all domains that can't be resolved to their address or something. Maybe not.
Anyway, if you can, boot into windows and post the output of ipconfig /all _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
bpk2001 n00b
Joined: 03 Feb 2005 Posts: 10 Location: New York, NY
|
Posted: Tue Feb 08, 2005 4:08 pm Post subject: |
|
|
sdibb - thanks for your help. I hadnt even been thinking about issues outside of the operating system.
I think that is likely the problem. I figured out the mac address for the Windows computer. After searching a bit on the ISP website, it appears that if you want to attach a different mac to the cable modem, you have to call them and set it up. I guess that is what i should try now. Not sure if this is worth doing, since the implication is that only one mac address is allowed to be specified at a time, and there are two laptops that id like to use. I assume that setting up a router would solve this problem?
UNLESS - I know each NIC is supposed to have a separate MAC. Is there any way to set the MAC on my network card to match the MAC on the network card on the windows computer? |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Feb 08, 2005 4:55 pm Post subject: |
|
|
bpk2001 wrote: | Is there any way to set the MAC on my network card to match the MAC on the network card on the windows computer? |
Yes.
Code: | $ emerge macchanger
$ man macchanger |
Plus if you install the ~ something-utils (baseutils?) it installs a nice new /etc/conf.d/net that you can modify which will run macchanger on startup, and set it to that mac addie. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
bpk2001 n00b
Joined: 03 Feb 2005 Posts: 10 Location: New York, NY
|
Posted: Tue Feb 08, 2005 5:06 pm Post subject: |
|
|
I don't believe that macchanger is on the universal liveCD. (it is not in the contents list) Is there any other way to do this, perhaps using ifconfig?
I am at work right now, so I cant try emerge macchanger immediately.
Last edited by bpk2001 on Tue Feb 08, 2005 5:11 pm; edited 1 time in total |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Tue Feb 08, 2005 5:11 pm Post subject: |
|
|
Oh yah .. you can do it using ifconfig, now that I think about it.
I dont know the exact command though, but I'm sure its in the man. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
bpk2001 n00b
Joined: 03 Feb 2005 Posts: 10 Location: New York, NY
|
Posted: Tue Feb 08, 2005 5:13 pm Post subject: |
|
|
OK thanks - when I get home I'll read the ifconfig man and see if changing the mac address will solve the problem.
Thanks again, sdibb.
[edit] I think the proper command is
Code: | ifconfig eth0 hw ether 00:00:00:00:00:00 |
I will post this evening to update whether this solves the problem. |
|
Back to top |
|
|
bpk2001 n00b
Joined: 03 Feb 2005 Posts: 10 Location: New York, NY
|
Posted: Wed Feb 09, 2005 2:48 pm Post subject: |
|
|
Sweet - using ifconfig to change the mac address (see prior post for command) was successful, and now dhcpcd returns an IP address. This might be a useful tip if you are trying to attach a new computer to a cable modem. |
|
Back to top |
|
|
|