LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-11-2009, 04:13 AM   #1
mark.crannage
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Rep: Reputation: 0
Networking between Fedora Linux and Windows XP


Hi all,

I have a Fedora Linux machine and a Windows XP machine and I want to enable TCP/IP connection between them using a cross-over cable.

I have a type of middleware server running on the linux machine and I want to be able to run the client for the application on the windows machine and work that way.

I have heard Samba as a solution but my understanding is SAMBA is mainly for file sharing.. and is not necessary for establishing TCP/IP connectivity. Is this a correct statement ?

How can I go about setting up TCP/IP connectivity between the two machines ?

Thanks in advance,

Mark
 
Old 10-11-2009, 07:30 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,118

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
Quote:
I have heard Samba as a solution but my understanding is SAMBA is mainly for file sharing.. and is not necessary for establishing TCP/IP connectivity. Is this a correct statement ?
Yes this is correct.

If you are going with a cross over cable, make sure it is a cross over cable. The wiring is different than the ethernet cables that attach between a hub and a host. This is saving the cost of a hub, they are cheap enough today. The other possibility is to use a router, they cost a little more than a hub, but look after the routing between hosts.

If you go with the x-over cable, you will have to set a ip address in each host, on the same sub-net. Example : 192.168.0.1 on one host and 192.168.0.2 on the second host. The address I used are class C private addresses and will work just fine. I would suggest you go this way, ( class C private ) and it will not cause you any problems in the future, if you expand the network.

You will have to set a default route in each host. Simply point them at each other. It would make life easier if you edit the /etc/hosts file on linux, add an entry for the winXP host. Same thing on XP, you will have to find the hosts file on XP, use the search for files function. These entries allow you to use names instead of IP addresses. Entries in this file look like this :

192.168.0.1 host1
192.168.0.2 host2

Just change the name part to match the name you give each machine.

Activate the ehternet cards on each machine. XP will bring in up wihtout any commands. Linux may not. The linux command to activate a ethernet card is : 'ifconfig eth0 up' ( without the quotes ).

Take a look at the man page for ifconfig. You can configure the card with this command, as well as up and down the card, and display status.

Also note there are lights on most ehternet connections. ( usually green ). If the card is "on" the light should come on. A hub or a router has lights also, they will blink when there is activity.

Ping command. Once you get green lights, try to ping from one machine to the other. On both platforms, the command is the same. 'ping 192.168.0.2' ( no quotes ) or .1 to ping the other direction. You should get a response.

Good luck, post questions if you have problems.
 
Old 10-13-2009, 12:41 AM   #3
mark.crannage
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the detailed response.

When I set the default route, in the Windows XP machine I am no longer able to access the internet.
I set the default gateway from network connections and selecting "Local Area Connections".

It seems I have two network adapters one for wireless internet and another for local area connection.
The default route was set on local area connection.

Sorry for the lengthy explanation but basically when I set the default gateway on the Local Area Connections Iam no longer able to access the internet.

Would appreciate any work arounds.

Thanks,

Mark
 
Old 10-13-2009, 01:04 AM   #4
sijugk
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Rep: Reputation: 0
Are you able to ping from Windows XP computer to default gateway address.

Please go to command prompt and try

ping 4.2.2.2

What is the reply you are getting ?
 
Old 10-13-2009, 02:33 AM   #5
rkski
Member
 
Registered: Jan 2009
Location: Canada
Distribution: CentOS 6.3, Fedora 17
Posts: 247

Rep: Reputation: 51
Are you using the same subnet for your wired connection as for your wireless?
In camorri's post he used the example 192.168.0.1 which may be your wireless router's address! If that's the case use 192.168.1.1/255.255.255.0 for the wired connection.


HTH

Last edited by rkski; 10-13-2009 at 02:39 AM.
 
Old 10-13-2009, 10:14 AM   #6
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,118

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
You did not tell me in the original post you have two adapters in one machine. To get the internet working, set the default route back to the it was before, when it worked.

Yes, the sub-nets you choose could cause problems. It might help if you post the info for both cards, sub nets etc. Which one connects where.
 
Old 10-14-2009, 02:57 AM   #7
mark.crannage
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

Thanks for the responses.

Iam able to ping both machines from each other. All I did was set static IPs, however now Iam concerned about security if I have static IP. Is there any advise for making it more secure ?

I am still having problems connecting to my middleware server(in Linux machine) from a middleware client component(in Windows machine), however this may be due to an application problem, still trying to figure this out...
The client component does require the host name of the machine that is running the middleware server but since I don't have a DNS I just provided the IP address. Is this the correct way of going about it and is there anything else I should do to get this to work ?

Thanks,

Mark
 
Old 10-14-2009, 03:07 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
A substitute for full DNS is to put an entry for each machine in the other machine's /etc/hosts file.
That's how they used to do it in ARPAnet until it got too big & they invented DNS.
 
Old 10-14-2009, 09:44 AM   #9
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,118

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
Quote:
Iam able to ping both machines from each other. All I did was set static IPs, however now Iam concerned about security if I have static IP. Is there any advise for making it more secure ?
Static IP addresses are no more insecure that using DHCP. Static IP addresses are better for servers, since they are no longer a moving target.

A firewall may be in order, if security is a concern. Firewalls do take some care to set up. You have to open ports for the applications you want to pass through. Security on open ports has to be supplied by the applications listening on those ports. ie, password protection at a minimum.
 
  


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
networking windows XP and fedora core 4 pupdaleon Linux - Newbie 10 02-15-2006 01:35 AM
Networking windows xp system with LInux (fedora) Kkfrink Linux - Networking 2 12-12-2005 05:31 PM
Windows networking/ICS with Fedora macarena_gamer Linux - Networking 1 04-02-2005 12:24 AM


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