LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-09-2012, 08:52 AM   #1
capodicapi
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
Smile How to establish direct connection between Linux machine and Windows 7 machine


Hi Friends,

I have a Windows 7 machine , and a Linux (Oracle Enterprise 5.5) machine.

I want to establish direct network connectivity between these two laptops. All i have is an Ethernet cable.

After connecting this cable to the ports of both the machines , what else do i need to do so as to make each machine 'ping'able from the other ?

Do i need to have a cross-over cable instead of an ethernet cable inorder to work this out ? [All the articles which i had read was mentioning that i need a cross-over cable , but there was ambiguity as they mentioned many laptops today can automatically crossover when they detect that we are directly connecting two machines instead of going through a switch/hub]

Thanks in advance to any help provided..



Regards,
Hari
 
Old 10-09-2012, 09:23 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Do i need to have a cross-over cable instead of an ethernet cable inorder to work this out ?
Yes, a cross over cable connects the Tx pair on one machine to the Rx on the other, and vica versa. A straight cable connects Tx to Tx and Rx to Rx. That will not work.

If you have a hub, or a router, those devices provide the crossing of Tx to Rx. A cross over cable eliminates the need for a hub or router.

You should be able to buy a cross over cable at any computer store. It is not that difficult to build your own, you can google it and find the wiring.

That is the physical part. Now for the config part.

Both systems need to me on same sub-net. For example, one machine IP 192.168.0.1 and a second at 192.168.0.1 and a mask of 255.255.255.0 will work. You have to set static IP addresses, since on a direct connection there is no DHCP server to assign IP addresses. You also need a static route on each set. It should point to the other system.

That should do it.
 
2 members found this post helpful.
Old 10-09-2012, 09:27 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
this worx for me:
http://www.linuxquestions.org/questi...6/#post3804866
 
Old 10-09-2012, 04:04 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
I doubt you need to buy a crossover cable. If one (and all are now) nic supports auto negotiate then just use any patch cable.

You may have to power up from cold boot to get it to work in some odd cases.


Ping is a poor choice. Windows and linux tends to block ping so you have to open it in settings or firewalls.

Last edited by jefro; 10-09-2012 at 04:06 PM.
 
2 members found this post helpful.
Old 10-09-2012, 04:21 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by jefro View Post
I doubt you need to buy a crossover cable. If one (and all are now) nic supports auto negotiate then just use any patch cable.
^ This

I have been connecting computers to each other for years with regular cat5/5e/6 patch cables, and I have never needed a crossover. I don't know how far back it goes, but all NICs made in the last many years have supported auto negotiation to get around this issue.

Just hook the two computers up, give them each a static IP, and be on your merry. If both computers are very old, it might not work. If it doesn't then try a crossover cable. No reason to go out of your way to get a crossover cable before even trying when chances are you won't need it.

Last edited by suicidaleggroll; 10-09-2012 at 04:23 PM.
 
1 members found this post helpful.
Old 10-11-2012, 04:09 PM   #6
capodicapi
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Some doubts on giving static ip to Win7

Firstly , thanks for the overwhelming response for my query.


I Powered off both the machines , connected the ethernet (straight , not the crossover) cable to both the ports , and then powered on both the machines. First , i went to my Windows 7 machine , turned on 'network discovery and file sharing for all public networks.'
Then , opened Network and Sharing Center , clicked on Change adapter settings.

But here , i am not seeing "Local Area Connection" listed . All i can see is the following listings :

1. Airtel (which is the name of my ISP - i am using its USB Dongle)
2. Virtual Box Host-Only Network (Unidentified Network)
3. Wireless Network Connection (Not Connected)
4. Wireless Network Connection 2 (Not Connected)


Now , which of these do i need to select in order to give a static IP ,DNS etc. to this Windows machine ?

Please forgive my ignorance in this matter.

I have captured "ipconfig" o/p , and also o/p of Speccy , which captures info about the PC.
PSB if it will be of any help.


Network
You are not connected to the internet
Computer Name
NetBIOS Name CAPODICAPI-PC
DNS Name CapodiCapi-PC
Domain Name CapodiCapi-PC
Remote Desktop
Console
State Active
Domain CapodiCapi-PC
WinInet Info
An internal error occurred.
Wi-Fi Info
Using native Wi-Fi API version 2
Available access points count 1
Wi-Fi ()
SSID
Name
Signal Strength/Quality 26
Security Enabled
State The interface is not connected to any network
Dot11 Type Infrastructure BSS network
Network Connectible
Network Flags There is a profile for this network
Cipher Algorithm to be used when joining this network AES-CCMP algorithm
Default Auth used to join this network for the first time 802.11i RSNA algorithm that uses PSK
WinHTTPInfo
WinHTTPSessionProxyType No proxy
Session Proxy
Session Proxy Bypass
Connect Retries 5
Connect Timeout 60000
HTTP Version HTTP 1.1
Max Connects Per 1.0 Servers INFINITE
Max Connects Per Servers INFINITE

Max HTTP automatic redirects 10
Max HTTP status continue 10
Send Timeout 30000
IEProxy Auto Detect Yes
IEProxy Auto Config
IEProxy
IEProxy Bypass
Default Proxy Config Access Type No proxy
Default Config Proxy
Default Config Proxy Bypass
Sharing and Discovery
Adapters List
Microsoft Virtual WiFi Miniport Adapter
IP Address 0.0.0.0
Subnet mask 0.0.0.0
Gateway server 0.0.0.0
Atheros AR5B93 Wireless Network Adapter
IP Address 0.0.0.0
Subnet mask 0.0.0.0
Gateway server 0.0.0.0
VirtualBox Host-Only Ethernet Adapter
IP Address 192.168.56.1
Subnet mask 255.255.255.0
Gateway server 0.0.0.0
Network Shares
Siebel 8.1 Server & Cient Installables for Windows E:\data_bulk\Siebel Admin related\inst\Siebel 8.1 Server & Cient Installables for Windows


----------------------------------------------------------
C:\Users\Capo di Capi>ipconfig

Windows IP Configuration


Wireless LAN adapter Wireless Network Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Wireless LAN adapter Wireless Network Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Ethernet adapter VirtualBox Host-Only Network:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::745a:baf4:2501:31f9%23
IPv4 Address. . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Tunnel adapter isatap.{22A9AF6B-7827-4799-89B3-E556FFA9BE3F}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter 6TO4 Adapter:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter Teredo Tunneling Pseudo-Interface:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{54545FA1-FE56-49DE-94BA-0C0156267E25}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :

Tunnel adapter isatap.{1E232A8D-ABA4-46B4-9B0D-321E0785FE90}:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :




Thanks for all your help..
 
Old 10-12-2012, 03:27 AM   #7
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Have you installed Ethernet driver as it seems ipconfig is showing only with WiFi driver and not the LAN driver.
Make sure you have installed Ethernet driver as per your Laptop model. Once it is done I think you can followup with what camorri has said.

You make sure that both the laptops you are trying to connect have the same gateway and the IP does not matters other than that it should be of the same range of gateway.
Like
Laptop 1
Code:
IP: 192.168.0.15
Netmask: 255.255.255.0
Gateway: 192.168.0.1
Laptop 2
Code:
IP: 192.168.0.16
Netmask: 255.255.255.0
Gateway : 192.168.0.1
Once done obviously you will not be able to connect to Internet because basically you are trying to make an undefined connection between two laptops.

Try to ping both the laptop IP from each other.
 
1 members found this post helpful.
Old 10-12-2012, 09:44 AM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
^ deepak is rite, your windows laptop seems not to have an ethernet port (you will need to get that working before you can continue -- i would test it with a live-usb to make sure it isnt a hardware problem). i am not really sure how to diagnose a windows problem, perhaps you will need to consult a windows forum (or maybe the non *nix general subforum here).

did the link in my post #3 not help ? basically in your situation the blu-ray computer would be your windows-vista laptop and the server would be your linux laptop. just run ifconfig to know what your ethernet/wireless cards should be.
 
  


Reply


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
lan connection between linux machine and windows machine arunsan842004 Linux - Laptop and Netbook 1 11-25-2008 06:44 AM
how to watch linux client machine desktop(activities) from windows machine deepak rawat Linux - Networking 7 07-03-2006 05:59 PM
how to shutdown,restart and log off windows machine remotely through a linux machine deepak rawat Fedora 1 05-23-2006 02:25 AM
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 11:20 AM
ssh connection from a Windows machine to a Linux machine pistachio Linux - Networking 1 08-30-2005 11:45 AM


All times are GMT -5. The time now is 06:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration