Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-23-2003, 03:30 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: London, ON
Posts: 9
Rep:
|
Problems getting net going in Mandrake 9.0
I'm sure this question has been beaten to death, but I've had a good poke around here, and other places, and haven't found the help that I apparently need.
First, I just installed Mandrake 9.0 as a dual boot with Windows XP. They are on different hard drives and there are no issues there. My roommate has an XP box, and we have been sharing our cable internet (Rogers) connection using ICS. My machine is the gateway/server and his is the client. I've got an integrated nic that is connected to the modem, and a USB nic that connects to him. In XP, there are no problems whatsoever.
Fast forward to last night. Got Mandrake installed without any problems. I can do everything in it, except connect to the internet. I went through the network wizard thing, and filled it out the way I thought it should. It has eth0 as the integrated nic and eth1 as the usb. It sees them both. I require DHCP to get my IP/DNS/Gateway, etc. from my ISP, so I set eth0 to be dhcp. I didn't give it a host name, as that's supposed to come through dhcp as well. My roommate is setup as 192.168.0.1 and netmask 255.255.255.0 in the XP setup, so that's what I put for eth1.
End result is that I can't connect to the net, although my computer could briefly last night (when I rebooted it this morning, I couldn't anymore). As a result, neither can he, obviously. Anything that I'm missing here? If it's easier to go the command route, please tell me exactly what directory I need to be in to do it.
Thanks in advance.
|
|
|
07-23-2003, 04:50 PM
|
#2
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
If your roonmate has 192.168.0.1, it's not the right address for your eth1. But I guess it was just a mistake when typing.
Boot Mandrake, log in. See if it has eth0 up. If it does, open a terminal, then run the following commands:
su
(type root password when it asks you)
route
ifconfig
Please copy result of 'route' and 'ifconfig' commands and post it here (copy to a file, for example, and then post). It will help much.
|
|
|
07-23-2003, 07:25 PM
|
#3
|
LQ Newbie
Registered: Jul 2003
Location: London, ON
Posts: 9
Original Poster
Rep:
|
Quote:
Originally posted by Mara
If your roonmate has 192.168.0.1, it's not the right address for your eth1. But I guess it was just a mistake when typing.
Boot Mandrake, log in. See if it has eth0 up. If it does, open a terminal, then run the following commands:
su
(type root password when it asks you)
route
ifconfig
Please copy result of 'route' and 'ifconfig' commands and post it here (copy to a file, for example, and then post). It will help much.
|
OK, here you go (sorry if it's a bit mangled):
[root@localhost wayne]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
[root@localhost wayne]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:140 (140.0 b) TX bytes:140 (140.0 b)
|
|
|
07-24-2003, 04:56 PM
|
#4
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
I don't want to worry you, but there's no NIC configured, as I see from the output. Are you sure both were up when you run the commands?
|
|
|
07-25-2003, 12:52 PM
|
#5
|
LQ Newbie
Registered: Jul 2003
Location: London, ON
Posts: 9
Original Poster
Rep:
|
Quote:
Originally posted by Mara
I don't want to worry you, but there's no NIC configured, as I see from the output. Are you sure both were up when you run the commands?
|
It said that eth0 was up, but nothing about eth1. When I saw 127.0.0.1, I knew something was rotten in the state of Denmark. I'll go through the wizard (again) and see what happens. I know the networks runs when I'm in Windows, so either Mandrake doesn't like one (or both) of the nics, or I'm not doing something right.
Oh, just one thing. When I am in Windows, my roommate's IP is, in fact, 192.168.0.1. Should it be something different in Linux. And just one more thing, a guy I was talking to last night said that Linux doesn't really like USB nics. Fact or fiction? He's a Redhat guy.
Thanks.
|
|
|
07-25-2003, 02:27 PM
|
#6
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
When your roonmapte's IP is 192.168.0.1, you must have a different one (for example 192.168.0.2). It won't work when 2 machines (well, 2 NICs, in fact) have the same IP.
I don't see much complains abut USB NICs. It's possibe that they're not so much popular. If Mandrake detects it, it should work.
|
|
|
07-25-2003, 02:40 PM
|
#7
|
LQ Newbie
Registered: Jul 2003
Location: London, ON
Posts: 9
Original Poster
Rep:
|
Quote:
Originally posted by Mara
When your roonmapte's IP is 192.168.0.1, you must have a different one (for example 192.168.0.2). It won't work when 2 machines (well, 2 NICs, in fact) have the same IP.
I don't see much complains abut USB NICs. It's possibe that they're not so much popular. If Mandrake detects it, it should work.
|
Oh, I see what you're talking about. My machine connects directly to the internet (no router or hub) so my IP is the IP that my ISP assigns me. Then, my roommate's is 192.168.0.1 because he connects through my computer (using a cross-over cable).
Thanks for the info about the USB nic.
|
|
|
07-25-2003, 03:18 PM
|
#8
|
LQ Newbie
Registered: Jul 2003
Location: London, ON
Posts: 9
Original Poster
Rep:
|
OK, just for kicks, I took out the USB nic and tried to just get my machine to connect. It found the IP without any problems, but I still can't connect for some reason. I didn't give it a hostname (I don't have to in Windows) but I don't see why that would be an issue. This one is puzzling. Anyway, here's the route and ifconfig without the USB nic. The stars in the IP are just me trying to make it a bit harder for people to pick it off (I know anyone could get it if they wanted to).
[root@localhost wayne]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
65.*.*.* * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 65.*.*.* 0.0.0.0 UG 0 0 0 eth0
[root@localhost wayne]# ifconfig
eth0 Link encap:Ethernet HWaddr 00  0:09:F7:4F:17
inet addr:65.*.*.* Bcast:65.*.*.* Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2951 (2.8 Kb) TX bytes:4130 (4.0 Kb)
Interrupt:11 Base address:0xd800
lo
Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:166 errors:0 dropped:0 overruns:0 frame:0
TX packets:166 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
|
|
|
07-26-2003, 04:49 PM
|
#9
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
It looks OK. What's wrong?
|
|
|
07-27-2003, 01:54 AM
|
#10
|
LQ Newbie
Registered: Jul 2003
Location: London, ON
Posts: 9
Original Poster
Rep:
|
Quote:
Originally posted by Mara
It looks OK. What's wrong?
|
I don't have any kind of connection. Can't surf or do anything. In the control panel, it says that eth0 is up, but that I'm not connected. I hit connect and it says there was an error and to check the configuration or some such thing.
No idea why it's not working...
|
|
|
07-27-2003, 03:44 PM
|
#11
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
Let's test everything.
First, ping the IP you get for eth0. Then try to ping 64.179.4.146 (linuxquestions.org). How do the results look like (if possible, post them)?
|
|
|
08-10-2003, 12:12 PM
|
#12
|
LQ Newbie
Registered: Jul 2003
Location: London, ON
Posts: 9
Original Poster
Rep:
|
I actually uninstalled Mandrake 9.0, and then put on 9.1 to see if that would help. Nope, same thing.
So, I pinged the two IPs. I can't post the results because somehow I can't write to my FAT32 partition, or my floppy, or basically anything other than my Linux drive.
Anyway, when pinging the IP I have for eth0, I get 100% packet loss. When I ping 64.179.4.146, I get 0% packet loss, with the average ping time being about 80-90 ms. In Windows, it's a constant 72ms.
So, to recap... It's telling me that eth0 is up, but that I'm not connected. Trying to surf doesn't work. I can't ping myself, but I can ping the linuxquestions.org site.
|
|
|
All times are GMT -5. The time now is 04:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|