LinuxQuestions.org
Help answer threads with 0 replies.
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 07-03-2005, 03:45 PM   #1
burrito
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
Angry Problem in routing between two LANs


Code:
]Hi, 
I was experimenting with linux networking, I added a second subnet off my first,
everything works fine, Internet access, can ping and connect to all host with ssh
except I can't ping or ssh to 192.168.1.10 from 1.2 or 1.3,  I can from 1.1.
Also 1.10 has Apache on it and 1.2 and 1.3 can see web pages I have been playing with.
I am confused and wondering what I am missing here.
I got the O'Reilly book "Linux Network Administrator Guide", read through the
relevant parts numerous times.  Checked a number of on line howtos.  Stumped as to
why this doesn't work. Thanks in advance for any insights or suggestions.

Here is my setup.


		####### routes for 192.168.1.1 ########
dest		gw		genmask		flags	metric	ref	use	iface
192.168.2.0	192.168.1.10	255.255.255.0	UG	0	0	0	eth0
182.168.1.0	*		255.255.255.0	U	0	0	0	eth0


		####### routes for 192.168.1.10 multihomed with 192.168.2.1 ####
dest		gw		genmask		flags	metric	ref	use	iface
192.168.2.0	*		255.255.255.0	U	0	0	0	eth1
192.168.1.0	192.168.1.1	255.255.255.0	UG	0	0	0	eth0
192.168.1.0	*		255.255.255.0	U	0	0	0	eth0
default		192.168.1.1	0.0.0.0		UG	0	0	0	eth0

####### Network diagram ##########

		|  to internet
		ppp0
		192.168.1.1
		eth0
		|
192.168.1.0	-------------------------------------------------
		|	|		|		  	|
		eth0	eth0		eth0			eth0   
	192.168.1.2	192.168.1.3	192.168.1.4...		192.168.1.10
default	gw 1.1		gw 1.1		gw 1.1			gw1.1
netmask	255.255.255.0	255.255.255.0	255.255.255.0		255.255.255.0
								eth1
								192.168.2.1 
								no default gw 
								netmask 255.255.255.0
								| 
192.168.2.0	-------------------------------------------------------------------
		|
		eth0
		192.168.2.2	
		default gw 2.1
		netmask 255.255.255.0
 
Old 07-03-2005, 03:54 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I'm wondering if there's a type or not, but I think I shoudl mention it, because you have probably copied it, not written from scratch:
Code:
		####### routes for 192.168.1.1 ########
dest		gw		genmask		flags	metric	ref	use	iface
192.168.2.0	192.168.1.10	255.255.255.0	UG	0	0	0	eth0
192.168.1.0	*		255.255.255.0	U	0	0	0	eth0
Also, the duplicate entry at 1.10 for 192.168.1.0 doesn't look good. You should leave one (with no gateway).

Last edited by Mara; 07-03-2005 at 03:55 PM.
 
Old 07-03-2005, 08:33 PM   #3
burrito
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Yes, that is a typo, thanks for pointing that out. It should be

Code:
		####### routes for 192.168.1.1 ########
dest		    gw		       genmask		flags	metric	ref	use	iface
192.168.2.0	192.168.1.1   255.255.255.0	UG	0	0	0	eth0
192.168.1.0	*                   255.255.255.0    U	      0	      0	       0      eth0
Removing the line on 192.168.1.10
Code:
dest		    gw	    genmask	    flags  metric   ref   use	iface
192.168.1.0	192.168.1.1	255.255.255.0	UG	0	0	 0    eth0
looked right to me also, but without it 192.168.2.2 can.t see the 192.168.1.0 network,
it does see the gateway 102.168.1.1. This does let 192.168.1.0 see 192.168.1.1 though.
I don't get it?

Thanks.
 
  


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
Setting up wireless lans JonChristmas Linux - Wireless Networking 15 06-03-2004 06:14 PM
Routing through 2 LANs LeifWiderberg Linux - Networking 3 03-12-2004 11:00 AM
Linux distributions and LANS Stimz Linux - Newbie 8 03-09-2004 02:58 AM
iptables and ftp from the LANs fddi1 Linux - Networking 4 10-17-2001 12:19 PM
LANs andymay27 Linux - Networking 1 10-14-2001 02:14 PM

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

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