LinuxQuestions.org
Visit Jeremy's Blog.
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 04-18-2004, 12:25 AM   #1
vdogvictor
Member
 
Registered: Feb 2004
Distribution: Arch
Posts: 498

Rep: Reputation: 31
Solution for 2 computer network--XP and Linux


I have two computers connected by a cat5 crossover cable...I want both to be able to access the net at the same time. My XP computer has the modem in it. I have the net word pretty much setup because i used to have windows 98 on the other computer but i switched to DeliLinux 0.5 Beta (slack 7.1 i think its based on if that matters). Alright so I have run the command netconfig about 5 zillion times and messed w/ the TCP/IP properties on the XP computer and can't get anything to happen...I see that the both are talking to eachother because the DeliLinux computer has a little chart in the corner that shoes net connections and it is going in and out but nothing happens. I am using the Dillo web browser and it said unable to solve http://www.linuxquestions.com/. So i gave the TCP/IP properties on my XP machine a DNS IP address i just made up and inserted it as it should be in the netconfig setup stuff. Now it says solving http://www.linuxquestions.com/ then after half a minute or so it says it can't solve it. I really don't care if they can share files or anything at the moment i just want the internet on the linux box. Is there someway to make the XP machine DHCP so i can save some less hassle?

edit: I forgot to mention that after i gave the XP machine a DNS IP address I made up the commant ping in XP no longer works...so i deleted the ping command and it still no longer works. I was going to try to insert an IP address to see if it was just the DNS not working or TCP/IP also

Last edited by vdogvictor; 04-18-2004 at 12:26 AM.
 
Old 04-18-2004, 12:42 AM   #2
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
start ICS on the XP machine

get the IP with DHCP with the Slack(orwhatever) box

be sure the linux box has a nameserver (IPs are usually given by your ISP anyways). Insert that in /etc/resolv.conf
 
Old 04-18-2004, 12:58 AM   #3
vdogvictor
Member
 
Registered: Feb 2004
Distribution: Arch
Posts: 498

Original Poster
Rep: Reputation: 31
ICS is on on the XP machine and i did netconfig and told the linux box to use DHCP...rebooted and it says

attmpting to configure eth0 by contacting DHCP server

then it says can't find DHCP server. So it seems like something is wrong on the XP machine?

be sure the linux box has a nameserver (IPs are usually given by your ISP anyways). Insert that in /etc/resolv.conf -- what did you mean by that?
 
Old 04-18-2004, 01:38 AM   #4
Louie55
Member
 
Registered: Oct 2003
Location: Nebraska
Distribution: SuSE 9.0, Redhat 9.0
Posts: 41

Rep: Reputation: 15
He means that if the Linux box is not getting a DNS Name server address VIA DHCP, then you must give an address(s) to use. You do this by placing lines in the /etc/resolv.conf file. For example, if your ISP's DNS server's address is 186.35.72.148, then you insert the following line in your /etc/resolv.conf file:

Code:
nameserver 186.35.72.148
If you have more than 1 DNS server address, you can add more lines like the one above. Just make sure each entry is on a different line.

Louie
 
Old 04-18-2004, 01:50 AM   #5
vdogvictor
Member
 
Registered: Feb 2004
Distribution: Arch
Posts: 498

Original Poster
Rep: Reputation: 31
My ISP gives my DNS automatically...how do i set that up?
 
Old 04-18-2004, 01:56 AM   #6
ldp
Member
 
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141

Rep: Reputation: 18
A few days ago, I had a working setup with windows as the internet connected pc. (now it's the other way around)
I had the winxp connected ok to internet.
The network card on xp which was connected to the cablemodem (-> internet) and this nic had the ics checked so sharing it's cnx.
The other nic in the winxp machine was connected via crosscable to the linuxbox and had the fixed ip 192.168.0.1
On the linuxbox I had the interface configured to receive an ip adress from the xp machine. In fact, ics means both nat and dhcp as far as I understand. (Problem with ics is that it has no way to be configured manually so it cannot be forced to appoint always the same ip adress to the linux dhcp client.)
don't forget to give the linux nic a default gateway to the winxp machine lan nic. (this should be something like 192.168.0.1)
On my pc, following nic config in linux did the trick to rcv dhcp: "iface eth0 inet dhcp" Normally, when you put this the pc will determine itself the ip from the isp's nameservers thanks to dhcp. (which you can see in resolv.conf)
hope this helps a bit.
rgds,
Lieven
 
Old 04-18-2004, 02:05 AM   #7
ldp
Member
 
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141

Rep: Reputation: 18
Your isp gives ip and ns to your xp box, it's connected to internet.

The xp needs to run a dhcp server to distribute ip('s) to the machine(s) which is/are on your lan. (the linuxbox) That's ics which does that.

The linux lan machine needs to get an ip and ns which he gets from the winxp dhcp/nat server called ics.

I don't know if there is a way in windows to run only nat so you can give your linux a fixed ip. (thus no need to have the dhcp server running on winxp)

Maybe some program like winroute or other comercial rtr/nat/fw for winxp exists?

rgds.
 
Old 04-18-2004, 09:53 AM   #8
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Actually, the ICS box does not have to give an IP to the client. If you configure one manually (which I do with my router - yes, ICS is gone!!!! YAY!), you just do it. When you boot up your client machine, it has its IP already and the Windows box sees it. There's only one condition:

You gotta use the same private IP range as it would get one from anyways. That's it.

ICS doles out IPs in the 192.168.x.x range, so you can configure your Slack box to use perhaps 192.168.0.10 and set its default gateway to 192.168.0.1 (which is the IP that is usually assigned as the gateway - check to see its not 192.168.1.1). Your DNS server can be set as the IP of your Windows box, since its getting its DNS info already.

So,
IP:192.168.0.10
Netmask:255.255.255.0
Gateway:192.168.0.1
DNS:192.168.0.1

Be sure that when you configure your network, that you have the Windows firewall turned off. Once you can access the net from your client box, turn the firewall back on.
 
Old 04-18-2004, 01:45 PM   #9
vdogvictor
Member
 
Registered: Feb 2004
Distribution: Arch
Posts: 498

Original Poster
Rep: Reputation: 31
alright that worked thanks.
 
  


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
Connecting a Linux Computer to a Windows XP Network trevor4706 Linux - Networking 18 10-25-2005 09:50 PM
Connecting Linux computer to a Windows XP network trevor4706 Linux - Newbie 4 10-13-2005 08:25 PM
Problems with smb.conf - only Linux box on a 3-computer network [42]Sanf0rd Linux - Newbie 2 04-22-2004 11:17 PM
One computer on a three computer network having problems knightofdogbert General 2 10-20-2003 12:56 PM
mac/linux computer lab network...? Jeffrey Linux - Networking 0 02-22-2001 03:45 PM

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

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