LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-06-2004, 09:05 AM   #1
illuniel
LQ Newbie
 
Registered: May 2004
Posts: 9

Rep: Reputation: 0
Network Headache


Hi! i'm currently stuck in a rut here. I've 2 computers in my home network and would want to access the internet with both no matter which OS is running on either.

PC1 Windows XP pro ( gateway )
PC2 Mandrake LINUX 10/Windows XP pro ( client )

What I've done:

is that i've set up ICS on the windows XP gateway. The network works fine if it is WIndows XP to Windows XP. However, if it is Windows XP to Mandrake Linux, it doesn't seem to work.

in the Mandrake Linux Control Center, I have added, checked, double checked, triple, quadruple... basically, i've been at this for a few weeks now. I have made both computer's IP addresses static, at

192.168.0.1 (Gateway)
192.168.0.2 (Client)

that works with the Windows XP to Windows XP set up. Although it doesn't seem to with WIndows XP to Mandrake Linux.

Quite oddly, on the Mandrake Linux, I tried pinging the IP addresses. The 127.0.0.1 and that would work fine. Although pinging itself (192.168.0.2) would gather me a result of "Network cannot be reached" That has kept me running around in circles for weeks for that same configuration worked fine with Windows XP.

In any case, nothing would work until I found a couple of commands while i was browsing this site and a book i bought.

first, i found this thread here that mentioned the command 'ifconfig'. So i tried that out. after setting my IP configuration, i was able to ping the gateway sucessfully! (FINALLY!) Although it is quite annoying that as I tried the "connect" button at the "Monitor Connections" within the "Mandrake Control Center", it wouldn't connect still. And worse, it would reset the configuration in a way that I couldn't ping the gateway anymore until i changed the IP addresses back using the 'ifconfig' command.

So i decided to try bypassing the Mandrake Control Center to connect to the internet. I was able to set the IP config using the 'ifconfig' command. Yet, i still wasn't able to connect to the internet until i tried changing settings using the 'route' command.

It was one big EUREKA for me (for i've been at this for months!) that i was at last able to access google, this site, and all the rest after doing so. My only and BIGGEST QUALM with that is that i have to register ALL the sites i want to visit with in the 'Kernel IP Routing Table". I'd rather much not go through all that.

My Issue

OK, so my issue is, is there a simpler way to get connected? how come my Mandrake Linux can't seem to connect unless i go command line coding?

my Linux system runs on:
Mandrake 10
kernel 2.4.??
(although, i've had this problem regardless of the kernel being 2.4.??/2.6.3)
 
Old 12-06-2004, 10:41 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Did you add the DNS info from XP TCP/IP properties to the /etc/resolv.conf like:
nameserver xxx.xxx.xxx.xxx
 
Old 12-06-2004, 05:24 PM   #3
illuniel
LQ Newbie
 
Registered: May 2004
Posts: 9

Original Poster
Rep: Reputation: 0
unfortunately, yes, i've done that. I've set the nameserver to the DNS address of my ISP as well as the DNS 127.0.0.1 (which was there by default). Although I shall try tinkering with that again.

thanks.
 
Old 12-06-2004, 07:28 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
And you have set the gateway to point to the windows IP address.
 
Old 12-06-2004, 08:36 PM   #5
illuniel
LQ Newbie
 
Registered: May 2004
Posts: 9

Original Poster
Rep: Reputation: 0
i have at the Mandrake Control Center and it doesn't seem to work.

If i set the ip addresses at the 'ifconfig', only then does it work. It seems to me that there is something wrong with the Mandrake Control Center then.

Worst part is that it sets the configuration to those values when I boot so I have to keep changing the values to connect.

thus there lies the headache.

thanks!
 
Old 12-06-2004, 09:14 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
/etc/sysconfig/network-scripts/ifcfg-eth0 contains the eth0 configuration settings. These configurations will be initialized at boot.
 
Old 12-06-2004, 10:31 PM   #7
illuniel
LQ Newbie
 
Registered: May 2004
Posts: 9

Original Poster
Rep: Reputation: 0
1.
THanks but i've already edited that conf file. it seems to restart as well when I reboot.

although, if my IP configs are:
WinXP Gateway: 192.168.0.1
MDK Linux: 192.168.0.2
is my network IP a: 192.168.0?

2.
Also, where can I find the .conf file for the IP table?

3.
I tried adding my gateway's IP address to the "nameserver" at the /etc/resolv.conf file but it still doesn't seem to work.


Thanks!
 
Old 12-06-2004, 10:52 PM   #8
illuniel
LQ Newbie
 
Registered: May 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Hi!
I've found a way to shorten my methods of access. I should've done this before!

ifconfig eth0 down
ifconfig eth0 192.168.0.2 netmask 255.255.255.0 up
route add default gw 192.168.0.1

and i could surf anywhere! altough my remaining qualm would be that i'd need to configure this manually each time i boot. would therebe a shorter way to do this?
 
Old 03-29-2005, 11:51 PM   #9
jeffxor
LQ Newbie
 
Registered: Jan 2004
Location: Sydney, Austalia
Posts: 15

Rep: Reputation: 0
I am having exactly the same problem.

Running Mandrake 10.1.


I seem to have to add the route information via the route command everytime I reboot. As you know this is reallt quite annoying.

The mandrake control center does not seem to perform the task of setting the gateway correctly.

I have two machines on my standard OC it works fine.

On my laptop with a wireless card is where I have the trouble with the route settings not ssaving correctly.

Can anyone shed any light
 
  


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
Help im so new i have a headache jjh221 Linux - Newbie 3 02-11-2004 08:02 PM
Samba Headache jbstew32 Linux - Networking 0 12-23-2003 06:16 PM
Trying to compile QT....(Headache...) Megamieuwsel Linux - General 2 10-17-2003 08:12 AM
diald headache allgoodthings Linux - Networking 0 05-10-2003 08:26 AM
headache... katana Linux - General 2 08-02-2001 07:44 AM

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

All times are GMT -5. The time now is 04:09 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