Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-27-2004, 09:01 AM   #1
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.

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

Rep: Reputation: 67
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
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:


Pinging with 32 bytes of data:

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

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


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:


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. . . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :


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
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.

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

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



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration