LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-10-2008, 11:38 AM   #1
Morril
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
Issue with physical connection.


Hey. I'm attempting to get two kde linux systems to network togeather with cross over cables.
I can ping both machines and they are both running on fully updated kernals but only the host has the ability to run any type of internet access.

Any tips on how to get both machines running?
 
Old 06-10-2008, 01:11 PM   #2
jpwigan
LQ Newbie
 
Registered: Jun 2008
Distribution: RHEL, Fedora, Gentoo, Slackware
Posts: 27

Rep: Reputation: 16
It sounds like you want them to share an Internet connection, though you haven't said this explicitly.

If this is the case, the host needs to have iptables configured for Network Address Translation (NAT). A decent article on doing that can be found here:

http://www.dreamincode.net/forums/showtopic17714.htm

You likely have everything set up except the iptables rules, in which case all you need is:

iptables -A FORWARD -i eth1 -o eth0 -s 192.168.0.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE


If that doesn't work, please mention which distribution you're running, and try following the rest of the steps in the article.
 
Old 06-10-2008, 02:15 PM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
If by
Quote:
I can ping both machines
you mean that from each machine you can ping the other one, you don't have an issue with the physical connection. (If you only mean that you can ping the local machine, that only means that the local interface works.)

My guess at this point is that the kernel is not instructed to do forwarding on the 'host', which is covered in the article referenced earlier. I'm guessing that you are calling the host the one connected to the internet.

Note that to use the various iptables rules mentioned, you may have to modify the ip adresses to suit the adress ranges that you use, if they are different from the ones quoted (or change to the ones referenced in the very small print at the end of the article, assuming that those are available to you).
 
Old 06-11-2008, 08:35 AM   #4
Morril
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Alrighty. Yes I was asking about an internet connection. I was able to astablish it for awhile seeing as it didnt have a gateway.
Well a new problem has arrived. Last night the power coard was ripped from the tower and upon rebooting it I found that the client can no longer see my host at all...
 
Old 06-12-2008, 11:58 AM   #5
jpwigan
LQ Newbie
 
Registered: Jun 2008
Distribution: RHEL, Fedora, Gentoo, Slackware
Posts: 27

Rep: Reputation: 16
Any changes that you made to get it working may not remain persistent across a reboot. If you just used iptables, for example, these rules go away on reboot. Most distros have a way to define iptables rules that should always exist, as well as other network settings. You can also put any relevant commands you want to run in /etc/rc.local, and they will run every time the machine boots.
 
  


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
network issue/no connection rtreinen Linux - Networking 1 07-13-2007 12:56 PM
Physical Internet connection. rblampain Linux - Hardware 5 12-06-2006 08:50 AM
WinXP on one physical drive and SUSE 10 on another physical drive flanker12k Linux - Newbie 4 05-13-2006 08:36 AM
NFS Connection Issue gamradtk Linux - Networking 0 09-10-2005 11:19 AM
dsl connection issue foustware Ubuntu 0 05-15-2005 10:15 AM

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

All times are GMT -5. The time now is 04:51 PM.

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