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 06-27-2004, 09:01 AM   #1
mecca
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Rep: Reputation: 0
Question Direct Connection Xp and Linux


Hello network gurus out there.

Can anyone tell me whether I can have a direct connection (ethernet cable) between a XP machine and Linux and get samba and internet proxy to work on the XP box?

The laptop is my wifes and is setup with her work's domain and uses DHCP (niether of which I am not allow to change) and the linux machine is my home pc so I can make any changes to it.

I have just connected the two ethernet cards with a twisted pair cable but when I try to ping either machine by it's hostname ... niether is found.

All the information I have found so far involves creating a workgroup on the windows machine and giving it a static ip .... but I cannot do this.

The main thing I want to do is setup samba file sharing and make my linux pc a proxy server, so she can connect to the internet (through the ethernet connect) while I am connected.

If anyone can offer any assistance I would appreciate it.

Matt
 
Old 06-27-2004, 09:22 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

What happens when you try to ping the IP of the other machine?

Why can't you use static addresses? Do you mean they didn't work?
 
Old 06-27-2004, 01:42 PM   #3
mecca
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Original Poster
Rep: Reputation: 0
From the xp laptop when I try to ping my linux box I get:

----------------
C:\WINDOWS\system32>ping 192.168.0.1

Pinging 192.168.0.1 with 32 bytes of data:

Destination host unreachable.
Destination host unreachable.
Destination host unreachable.
Destination host unreachable.

Ping statistics for 192.168.0.1:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\WINDOWS\system32>
----------------

When I try to ping the xp laptop from my linux machine I get:

----------------
$ ping uk36326
ping: host host uk36326
$
----------------

I don't have a ip address for the xp laptop because it is set to use DHCP and we don't have admin rights on it (work machine). Is there any hope in getting the two machines connected for file and internet connection sharing?

'ipconfig' (on xp laptop) gives this:

----------------
C:\WINDOWS\system32>ipconfig

Windows IP Configuration


Ethernet adapter Wireless Network Connection:

Media State . . . . . . . . . . . : Media disconnected

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected

Ethernet adapter {BC168702-1A22-4103-AB5B-96307FD3B7BF}:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . . . . :

C:\WINDOWS\system32>
----------------

Looking at this output the answer seems pretty self expanatory ... the xp machine thinks it's ethernet LAN socket is not connected, but the cat5 cable is connected to ethernet card of my linux machine???
 
Old 06-27-2004, 02:41 PM   #4
twsnnva
Member
 
Registered: Oct 2003
Location: Newport News, Va
Distribution: Debian
Posts: 246

Rep: Reputation: 30
You need to use a crossover network cable. You mentioned you were using twisted pair, all CAT5/6 is twisted pair, however to connect two NIC's without a switch or a hub you need a crossover. Even when you get this, you will still not be able to set the IP on the XP box without Admin rights. If you request that a sysadmin set a specific IP for the network card they may do it for you, or you could set you linux box up as a DHCP server.

Thomas
 
Old 06-27-2004, 03:09 PM   #5
mecca
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Original Poster
Rep: Reputation: 0
OK, I'll try the crossover cable and the DHCP server option.

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
PC to Laptop : direct connection pppaaarrrkkk Linux - Newbie 8 08-05-2005 01:54 AM
direct connection to Linux through a serial cable 0perat0r Linux - Newbie 5 08-03-2004 02:04 PM
Direct Cable Connection using LPT1 chem1 Linux - Hardware 1 03-10-2004 09:59 AM
Direct Cable Connection suchi Linux - Networking 4 11-23-2003 04:10 PM
direct connection through the firewall cam99 Linux - Security 1 08-03-2003 05:35 PM

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

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