LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-30-2014, 04:17 PM   #1
dleangen
LQ Newbie
 
Registered: May 2007
Posts: 14

Rep: Reputation: 0
Routing problems between machines in the same subnet


Hello!

I am using a linux machine as a router / firewall to my home network. The server is running Fedora 15, and is connected to the outside world via a ppp interface (on em1). Internally, I have a subnet set up on 192.168.2, with the server NIC (p4p1) set to 192.168.2.1. Each machine can ping 192.168.2.1 (and can communicate with the outside world), and the server can ping each machine. However, the machines are not able to ping each other.

This is the routing table:

192.168.2.0 * 255.255.255.0 UG 0 0 0 p4p1
192.168.1.0 * 255.255.255.0 U 0 0 0 em1
link-local * 255.255.0.0 U 1002 0 0 em1
link-local * 255.255.0.0 U 1003 0 0 p4p1
default my-gw 0 0.0.0.0 UG 0 0 0 ppp0

This setup has worked for me many times before, so I am baffled as to why I can't get it working this time.

Any network geniuses with some ideas?
 
Old 04-30-2014, 04:20 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Do you have any pertinent switch configuration or is it a flat switch?
 
1 members found this post helpful.
Old 04-30-2014, 04:39 PM   #3
dleangen
LQ Newbie
 
Registered: May 2007
Posts: 14

Original Poster
Rep: Reputation: 0
In theory, should be flat. I have a dumb hub attached to p4p1, and a second device (Buffalo Airstation) in non-routing mode acting as my wireless hub.
 
Old 04-30-2014, 05:28 PM   #4
dleangen
LQ Newbie
 
Registered: May 2007
Posts: 14

Original Poster
Rep: Reputation: 0
... but your question got me thinking outside of the box (literally). I have always assumed that my Buffalo was acting as a flat switch. I'd better test that assumption. :-)

Thanks for the tip!
 
Old 04-30-2014, 05:51 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
So the machines are 192.168.2.xx and 192.168.2.yy and they can not ping each other?

Server is 192.168.2.1 and can ping 192.168.2.xx?
Server is 192.168.2.1 and can ping 192.168.2.yy?
192.168.2.xx can ping server at 192.168.2.1?
192.168.2.yy can ping server at 192.168.2.1?

That is simply not possible. Since they are on the same subnet routing is not an issue.

Are 192.168.2.xx and 192.168.2.yy static addresses?
If not, assign them static addresses.
Run a network cable straight between the 192.168.2.xx and 192.168.2.yy
Make sure the NICs are modern and auto-sensing. If not, create a cross connect.
See if you can ping.

jlinkels
 
Old 04-30-2014, 06:49 PM   #6
dleangen
LQ Newbie
 
Registered: May 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Smile

Ok, it was indeed some weird problem with the wireless hub. The settings were correct, but it was in an incorrect state. A reboot fixed the problem.

Thanks to szboardstretcher and jlinkels for the help. I was literally thinking in the (linux) box and didn't see the problem.
 
  


Reply

Tags
routing, subnet



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
Same Subnet - some machines can access HTTP local IP, others cannot. rhunterp2012 Linux - General 4 10-10-2012 10:54 AM
debian server can not ping to another subnet, even thouth other machines can marcinzinf Linux - Networking 16 06-08-2012 09:32 AM
OpenVPN - Can't access other machines on the server's subnet quantamm Linux - Networking 1 07-01-2009 11:07 AM
Can't Ping Linux KVM from Other Machines on Host Subnet newmanium2001 Linux - Networking 5 05-19-2009 08:01 AM
Windows machines not seeing linux server from a new subnet nkeever Linux - Networking 3 04-29-2005 01:51 PM

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

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