LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 01-14-2006, 11:58 PM   #1
breakthestate
LQ Newbie
 
Registered: Sep 2005
Posts: 10

Rep: Reputation: 0
Two hosts connected by ethernet - unsuccessful


I'm trying to ping host X's ethernet interface from host Y's ethernet interface. Both hosts are running Pupply Linux 1.0.7 and are connected by a standard ethernet cord (RJ-45) between the two ethernet cards. Puppy Linux uses a 2.4.29 kernel and comes with iptables as well. I have not setup DNS or any sort of nameserving yet. I thought I would first just try a simple ping test. I have not yet succeeded in my goal, and I believe it may be that I'm missing something very basic, but after reading several HOWTO's, I cannot find the solution. Below is what I try directly after booting both machines:

1. Setup Host X:

1.1 Configure my wireless card with my router:
1.1.1:
Code:
iwconfig wlan0 essid "XXXXX"
1.1.2:
Code:
ifconfig wlan0 192.168.2.40 up
1.1.3:
Code:
route  

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     *               255.255.255.0   U     0      0        0 wlan0
loopback        *               255.0.0.0       U     0      0        0 lo
1.2 Test TCP/IP configuration
1.2.1:
Code:
ping 127.0.0.1
(success)

1.2.2:
Code:
ping 192.168.2.1
(ping my router, success)

1.2.3: The wireless interface is now networked with my router.

1.3. Setup ethernet interface
1.3.1:
Code:
ifconfig eth0 192.168.3.1 up
1.3.2:
Code:
route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.3.0     *               255.255.255.0   U     0      0        0 eth0
192.168.2.0     *               255.255.255.0   U     0      0        0 wlan0
loopback        *               255.0.0.0       U     0      0        0 lo
2. Setup Host Y:

2.1 Configure ethernet interface
2.1.1:
Code:
ifconfig eth0 192.168.3.2 up
2.1.2:
Code:
route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.3.0     *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
2.2 Test TCP/IP configuration
2.2.1:
Code:
ping 127.0.0.1
(success)
2.2.2:
Code:
ping 192.168.3.1
(unsuccessful - 100% packet loss)

_________________________________

I hope to one day have the ability to ssh from host Y to host X or possibly even setup IP masquerade to share an internet connection, but after reading the IP Masquerade HOWTO, I thought I should at least try pinging between the two first. I am unsure what the actual problem is. Could it be a iptables issue? Or do I need to add some route commands? I have fooled around (extensively) with both but end up screwing things up and starting over from step one.
 
Old 01-15-2006, 05:19 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Quote:
Both hosts are running Pupply Linux 1.0.7 and are connected by a standard ethernet cord (RJ-45) between the two ethernet cards.
This will not work.
You either need:
[Computer]-Ethernet cable-[Router/switch]-Ethernet cable-[Computer]
or
[Computer]-Ethernet crossover cable-[Computer]
 
Old 01-15-2006, 02:10 PM   #3
breakthestate
LQ Newbie
 
Registered: Sep 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tredegar
This will not work.
You either need:
[Computer]-Ethernet cable-[Router/switch]-Ethernet cable-[Computer]
or
[Computer]-Ethernet crossover cable-[Computer]
whoops

Thank you tredegar. I read that I needed a crossover several times and just assumed that it was a standard ethernet cord. I purchased a crossover cable and now I have success. Thank you so much!
 
  


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
Hang up on eth0 interface when ethernet cable is not connected jsanchez Linux - Laptop and Netbook 1 05-18-2005 01:42 AM
slow boot when ethernet cable not connected to network hyperriven Linux - Networking 4 04-10-2005 02:47 PM
two (parallel) Ethernet cables between two hosts? linux_newbie_23 Linux - Networking 4 09-16-2004 12:20 AM
Unsuccessful Ethernet Initialisation Request New2it Linux - Laptop and Netbook 0 03-24-2004 05:21 AM
Ethernet Connected - Slow Performance :( SML Linux - Newbie 3 03-11-2004 03:26 PM


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