LinuxQuestions.org
Help answer threads with 0 replies.
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 01-07-2005, 06:13 AM   #1
bcal
Member
 
Registered: Nov 2004
Distribution: FC3/winXP dual-boot
Posts: 61

Rep: Reputation: 15
linux ICS client with XP gateway


I am running FC2 kernel 2.6.9 and wish to access the internet through an XP machine as linux won't recognise the modem I have. The XP machine has no trouble connecting and uses and ISDN line. The two machines are joined by crossover cable.

I have configured the XP machine to have the static address 192.168.0.1 with subnet mask 255.255.255.0. The firewall allows the linux machine access. Can somebody please walk me through setting up the linux end of the connection? I don't know whether I should be setting up an ISDN connection, ethernet connection (which I doubt) or what. Also, for some reason the ISDN modules are not on my linux machine (I think from previously attempting to get the modem working), so they need to be installed and is so, which ones/from where?

thanks in advance...
 
Old 01-07-2005, 06:39 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
Just configure a LAN connection. If you have ICS configured on the XP machine I think you can set the FC machine to use DHCP.

To configure the linux PC manually.
Configure eth0 on the linux PC with a static IP address i.e.
192.168.0.2.

Set the gateway address to the XP machine.

Add the DNS nameserver information to the /etc/resolv.conf file from the XP machine.
 
Old 01-07-2005, 09:44 AM   #3
bcal
Member
 
Registered: Nov 2004
Distribution: FC3/winXP dual-boot
Posts: 61

Original Poster
Rep: Reputation: 15
sorry Michaelk, it's going to have to be baby steps.

The box for ICS is ticked in XP, the XP box is 192.168.0.1

Using the network configuration tool on the linux box I have edited eth0 as follows:
I've enabled "use static IP addresses", entered 192.168.0.2 as address, 255.255.255.0 as subnet mask and 192.168.0.1 as default gateway address. I have done nothing with the "Route" or "Hardware" tabs of the tool.

The primary DNS of my ISP is 159.134.237.6, secondary DNS is 159.134.248.17. I added these to the /etc/resolve.conf file on separate lines.

Restarted the network service, typed in http://www.google.com to the webbrowser (konqueror) and was told of an error contacting the address. What am I doing wrong? The web connection on the gateway machine was live at the time.
 
Old 01-07-2005, 10:34 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
Can you ping the XP machine from the linux box.
 
Old 01-08-2005, 06:04 AM   #5
bcal
Member
 
Registered: Nov 2004
Distribution: FC3/winXP dual-boot
Posts: 61

Original Poster
Rep: Reputation: 15
yes, ping works no problem in both directions.

- Can you give me an example of how the DNS nameserver information should be added to the resolve.conf file please?
- In your original post you said the linux box could be set to use DCHP, however, this is disabled when setting a static IP address.
- I have the feeling there's something wrong in the network configuration on the linux box, but I'm not sure what...there are about 3 tabs on the configuration window - what information should be in each?

Thanks for the continued help!
 
Old 01-08-2005, 06:24 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
Which configuration window?

Resolv.conf
nameserver 159.134.237.6
nameserver 159.134.248.17

Try pinging an IP address 64.233.167.99 (google) If that works then it is just a DNS issue.

Last edited by michaelk; 01-08-2005 at 06:25 AM.
 
Old 01-08-2005, 10:53 AM   #7
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
One more thing to check...

You might also want to make sure that ICS is set to allow other machines to trigger a dial. Given that you are using ISDN I assume that your lines are not always up.

Cheers.

MrKnisely
 
Old 01-08-2005, 04:39 PM   #8
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
U don`t need to set up an isdn connection on your linux just the lan side,,,u r correct with ur 192.168.0.1 & 255.255.255.0 whic h is the default after u have ran the ics wizard on your win xp.
So basically u should manually set up your internet on linux using /etc/resolv.conf
adding
nameserver
192.168.0.1
and as u have done in your particular linux internet set up `wizard` u should not have to st up your xp dns servers in linux..... linux is your gateway server.... check some files in /etc/ re network/system :-)
 
Old 01-09-2005, 07:39 AM   #9
kenr
LQ Newbie
 
Registered: Jan 2005
Posts: 1

Rep: Reputation: 0
I'm having a very similar problem.
I have a linux box connected to an XP box via a crossover cable. The XP box has a DSL internet connection and is running ZoneAlarm firewall.
I have successfully networked the two machines using Samba, and I can see my Linux shares from the XP box. However, I cannot get internet access from the Linux box.
What I've done so far:
- XP box is assigned a fixed IP of 192.168.0.1 and the Linux box is assigned a fixed IP of 192.168.0.2
- Added the XP box as a default gateway on the Linux box
- Added my ISP DNS IPs to /etc/resolv.conf
- Set up access rights for 192.168.0.2 on the XP firewall

I can ping the Linux box from the XP box, and I can ping the XP box from the Linux box. However, if I try to ping an external IP from the Linux box, I get the message:
"connect: Network is unreachable"
Can anyone help me out, please?
Thanks
Ken

Details of my config:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 255.255.255.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

/etc/resolv.conf

nameserver 212.104.130.65
nameserver 212.104.130.9

ifconfig:

eth0 Link encap:Ethernet HWaddr 00:50:04:40:44:37
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:4ff:fe40:4437/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:351 errors:0 dropped:0 overruns:0 frame:0
TX packets:161 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:94231 (92.0 Kb) TX bytes:37383 (36.5 Kb)
Interrupt:11 Base address:0xac00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2608 (2.5 Kb) TX bytes:2608 (2.5 Kb)
 
Old 01-09-2005, 08:19 AM   #10
bcal
Member
 
Registered: Nov 2004
Distribution: FC3/winXP dual-boot
Posts: 61

Original Poster
Rep: Reputation: 15
replies in order of questions:

- the configuration window I'm talking about it is the system-config-network window, also access by clicking "system tools" - "network". It has 4 tabs : "devices", "hardware", "DNS" and "hosts". From before the "DNS" tab has the name of the linux box entered and "hosts" has the XP box address entered (192.168.0.1). In "devices", select eth0 and click on "edit" to bring up a window with "General", "Route" and "Hardware Device" tabs. In the "General" tab I have entered "address" as 192.168.0.2 (linux box address), subnet mask as 255.255.255.0 and Default Gateway as 192.168.0.1 (XP box address).

- I have added the lines
nameserver 159.134.237.6
nameserver 159.134.248.17

exactly as typed above to resolv.conf, restarted the network service and attempted to access google both by name and IP address. No joy.

- I have deleted the above and replaced them with
nameserver 192.168.0.1
restarted the network service and attempted to reach google by name and IP address. No joy

-ICS is allowing any user trigger a dial.

- I am using ZoneAlarm firewall on the XP box, however it is configured to allow the linux box to access the XP machine. I even disabled Zonealarm to confirm this.

- The file /etc/resolv.conf contains the following:
; generated by /sbin/dhclient-script

Every time I change it to add
nameserver <....>
the changes are deleted at each network restart.

- As an experiment, instead of using the static IP address in system-config-network, I enabled the option "automatically obtain IP addresses with DHCP" and added the following in the "route" tab of the edit dialogue for eth0
destination network 159.134.237.6 159.134.248.17
prefix (netmask) 0.0.0.0 0.0.0.0
gateway 192.168.0.1 192.168.0.1
/etc/reolv.conf then contained:
; generated by /sbin/dhclient-script
search mshome.net
nameserver 192.168.0.1

so at least it seems to be trying to do something

I am totally confused and appreciate all the help...

Last edited by bcal; 01-09-2005 at 08:22 AM.
 
Old 01-09-2005, 08:21 AM   #11
bcal
Member
 
Registered: Nov 2004
Distribution: FC3/winXP dual-boot
Posts: 61

Original Poster
Rep: Reputation: 15
kenr, if you get it working PLEASE let me know!!!!!!!!
 
Old 01-09-2005, 09:24 AM   #12
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
Default GW is probably the issue

With DHCP enabled you should not enter anything in the routing tab... this will confuse the issue.

With your ISDN lines down, try to ping google from the Linux box. Does that bring your ISDN lines up?

Go to a command line and type route. You should have several lines with the last line being something like this:

default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

If you do not, then the gateway is your issue. You must set your XP box as your gateway for the linux routing table to understand that the way to the internet goes through XP.


You can test this by doing the following command as root:

route add default gw 192.168.0.1


Hope this helps!

MrKnisely

Last edited by charon79m; 01-09-2005 at 09:26 AM.
 
Old 01-09-2005, 02:31 PM   #13
bcal
Member
 
Registered: Nov 2004
Distribution: FC3/winXP dual-boot
Posts: 61

Original Poster
Rep: Reputation: 15
attempted the ping with ISDN lines down - this did NOT trigger a dial on the XP machine. All other times I have tried to access the net from the linux box, the ISDN line has been active.

the response to "route" command was as you said, except that the XP machine name appeared in place of 192.168.0.1. I assume this is because the XP machine name and address are entered in "hosts" in system-config-network

questions:
(1) with a static IP address as above (ie DHCP not enabled), should I or should I not have entries in the "route" tab as described in the last section of my last post?

(2) on the XP box do I need to do anything more than share the internet connection? Is there a folder I should be sharing? Should I mount the filesystem to the linux box with samba?

(3) The "settings" tab of the Internet connection sharing dialogue on the XP machine goes to a list of services which should be shared - NONE of these are currently ticked: should they be??

Last edited by bcal; 01-09-2005 at 02:32 PM.
 
Old 01-09-2005, 02:41 PM   #14
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
I would think it's an internet sharing connection problem from XP, double check if it is able
to do that
 
Old 01-09-2005, 02:51 PM   #15
bcal
Member
 
Registered: Nov 2004
Distribution: FC3/winXP dual-boot
Posts: 61

Original Poster
Rep: Reputation: 15
yes, ICS is enabled. Dial up whenever a computer on the network attempts to access the internet is enabled. Allow other network users to contol or disable the shared internet connection is enabled
 
  


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
ICS Windows/Linux - Client not quite working right -.- Mmc245 Linux - Hardware 2 08-31-2005 08:23 AM
Windows XP as ICS host & Linux as client connection problem ! hemanfan Linux - Networking 3 06-08-2005 04:29 PM
Win2K ICS host and Linux client raypen Linux - Networking 3 03-18-2003 12:58 PM
Windows XP ICS & Linux Client shipper Linux - Networking 11 10-14-2002 04:50 PM
Linux client with Win2K ICS nkaza Linux - Networking 2 09-29-2002 09:00 PM

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

All times are GMT -5. The time now is 01:17 AM.

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