Click to See Complete Forum and Search --> : lost internet post MDK 9.1 Install
gwpritch
03-29-2003, 06:50 PM
I just install Mandrake 9.1 and it's buggered up my Internet connection.
Both my nic's are recognised and up according to mdk control center but I can't connect to the internet. If I do an ifconfig I see eth0 ( my net connection ) and eth1 my local connection. However there is another entry eth0:9 with the same mac address as eth0. It seems to be configured with the address from the ISP. Eth0 has no inet addr. What gives, anyone know?
Magueta
03-30-2003, 02:21 AM
Can you show us the contents of your ifcfg-eth0, ifcfg-eth1, and ifcfg-eth0:9 configuration files. I don't know where they are in Mandrake but you can find them using find /etc -name [ethernet card goes here]. They should all be in the same directory.
Joe
gwpritch
03-30-2003, 06:06 PM
Problem is, there is no ifcfg-eth0:9 file in /etc/pcmcia/network-scripts directory. ifcfg-eth0:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
eth1 is not configured at this point in time.
Magueta
03-30-2003, 08:34 PM
Originally posted by gwpritch
Problem is, there is no ifcfg-eth0:9 file in /etc/pcmcia/network-scripts directory. ifcfg-eth0:
I don't know where eth0:9 comes from then. I wonder if you could do an ifconfig and post that output here. I've never heard of this problem but I'm willing to help you keep looking if you are.
eth1 is not configured at this point in time.
if eth1 isn't configured then how is it that when you do ifconfig you see that it's up?
Joe
gwpritch
04-11-2003, 06:19 PM
Ifconfig:
eth0 Link encap: Ethernet HWaddr 00:10:60:E7:E6:7F
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Rx packets:48655 errors:0 dropped:0 overruns:0 frame:0
Tx packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3052293 (2.9 Mb) TX bytes:7254 (7.0 Kb)
eth0:9 Link encap:Ethernet HWaddr 00:10:60:E7:E6:7F
inet addr:169.254.203.91 Bcast:169.254.255.255 Mask:255.255.0.0
UPBROADCAST RUNNING MULTICAST MTU:1500 Metric:1
lo Link encap:Local Loopback
...etc,etc.
Been away for a while. I hope someone can still help.
BTW the inet addr for eth0:9 does not come from the ISP server. I can't figure out where its from.
Also, the eth0 krell in GKrellm shows all kinds of traffic (inbound). :confused:
Magueta
04-11-2003, 09:04 PM
Ok, I've found out what that eth0:9 is. It's called an ip alias, I don't know how it got accidentally setup on your system but that's what it is. I've never had to do anything with it so I can't tell you how to get rid of it or how to use it, but there's an ip aliasing how to here (http://www.ibiblio.org/pub/Linux/docs/HOWTO/mini/other-formats/html_single/IP-Alias.html)
Let me know how it goes.
Joe
Magueta
04-11-2003, 10:18 PM
There's information on ip aliases in /usr/src/<kernel version number>/Documentation/networking in the file alias.txt. Apparently the way of removing an alias is to shut it down it explains it as follows:
o Alias deletion.
The alias is removed by shutting the alias down:
# ifconfig eth0:0 down
~~~~~~~~~~ -> will delete alias
If it's there after a reboot I would suggest you take a look at the rc.local and in /etc/init.d
Joe
gwpritch
04-13-2003, 08:24 AM
I think I may have conquered the alias problem by ensuring the pcmcia script is run before internet and network during boot. When I do this eth0:9 does not appear with ifconfig. I don't think I ever mentioned this was a laptop with a pcmcia ethernet card...sorry :rolleyes:
However I'm still deep in the woods. I still can't obtain an IP address from the ISP server, eth0 is up but no address. yet my resolv.conf script is identical to the script on my desktop also running 9.1.
Any thoughts? Have I missed configuring a script somewhere. Is this machine just intent on driving me MAD!!!!! What!
Magueta
04-13-2003, 09:12 AM
What messages do you get if you go to /etc/init.d and run ./network restart?
Joe
gwpritch
04-13-2003, 09:22 AM
No error message at all. eth0 and lo are stopped then restarted .
It just seems to take a long time for eth0 to come up. Of course it still has no address assigned to it.
At one point when I was fiddling with various scripts I got a message that it was unable to obtain a valid IP address, an eth0 would fail. But I no longer see that, simply stops and starts OK. Hence the frustration.
BTW I really appreciate you're sticking with me on this.
Magueta
04-13-2003, 09:54 AM
My pleasure to help out, troubleshooting is the fun stuff for me.
It seems that for whatever reason your system is not communicating with the dhcp server of your isp. What are the possible reasons for this? I suppose one might be that the dhcp client isn't installed on your system (but I doubt that), another might be that the card itself or the wires are faulty. Yet another might be the firewall, it is possible that the reply from the DHCP server isn't reaching you due to improperly configured firewall. You can see your firewall settings using iptables -L. If you see stuff there that you don't know what it means let us know. What happens when you configure the ethernet card statically, can you access the internet?
Joe
gwpritch
04-13-2003, 11:59 AM
I have tried 3 different nic's 16bit pcmcia, 32bit CardBus Adapter and a usb adapter, with no better results. I have also tried another network cable that I know is working for the desktop - no joy there!
I just tried setting the IP address for eth0 to a static address
192.168.0.1 using ifconfig eth0.
It set it alright but now eth0:9 is back with inet addr 169.254.181.3.
network restart and eth0:9 disappears again.
also: route returns:
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
Where is this 169.254.0.0 address (same network address as eth0:9) coming from?
iptables does not appear to be running.
Magueta
04-13-2003, 08:41 PM
Check the file /etc/modules.conf and see if there's an alias in there for eth0 that corresponds with the pcmcia card that you're using. There should be an entry similar to
"alias eth0 8139too"
I'm guessing but I think that there may be an alias in there for eth0:9. For the static configuration try setting up the following in your ifcfg-eth0 file:
DEVICE=eth0
BOOTPROTO=static
IPADDR=x.x.x.x (for this one put the address that eth0:9 is getting)
NETMASK=255.255.255.0
ONBOOT=yes
Joe
gwpritch
04-15-2003, 09:01 PM
I'M CONNECTED!!!!!!!!
Its always the simplest answer! M3rlin had the answer to a similar post over in Technical Support.
Apparently the router assigns the dhcp address based on a saved Mac address. When I changed nic's it would no longer assign the address to the new adapter. So, no connection to the isp server.
All I had to do was power down the router/switch, stop dhcpcd, switch on the router, and reinitialize dhcpcd. Bingo, eth0 connected to the server and aquired an address.
And to think I've been running around in circles for weeks!
Thanks for your help Magueta. I appreciate it.
Good Luck with the job hunt.
Magueta
04-15-2003, 09:11 PM
Glad you're connected it was fun.
Thanks for the support.
Joe