Re: Need some help in Routing in Linux
- From: ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
- Date: Mon, 27 Nov 2006 13:44:47 -0600
On 26 Nov 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<1164605886.188515.89700@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, GS wrote:
Thanks for your response, finally I looked into second Router web
interface, I found there is firewall is enabled, I made it disabled,
now I can do ssh to Second router's WAN port (ssh 192.168.1.128), then
it is redirecting to one of the machine in second subnet (192.168.2),
If it's redirecting, then something is still wrong with the routing
tables OR the layout of the network. What exactly does your layout
look like? I'm under the impression it it
Internet
|
first router
|
192.168.1.x LAN
|
192.168.1.128 Second router 192.168.2.254
|
192.168.2.x LAN
As shown before, the 192.168.1.x _hosts_ should look like this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 192.168.1.128 255.255.255.0 UG 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
(I'm ignoring the loopback and route to the world) and the _hosts_ one the
second LAN should look like this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 192.168.2.254 255.255.255.0 UG 0 0 0 eth0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
If the second router was a Linux box, the routing table on that would
look like this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
then from that machine I am doing ssh to other machine, when I directly
do ssh to one of the machine in 192.168.2 subnet from 192.168.1 subnet,
then it is not working. I don't know what is the issue here.
Run tcpdump on the client box on the 192.168.1 subnet AND on the server
box on the 192.168.2 subnet. What do the packets say? Can the client
reach the server (does the server see those packets)? What response is
the server sending? Does the client see that response?
Old guy
.
- Follow-Ups:
- References:
- Need some help in Routing in Linux
- From: GS
- Re: Need some help in Routing in Linux
- From: Moe Trin
- Re: Need some help in Routing in Linux
- From: GS
- Re: Need some help in Routing in Linux
- From: Moe Trin
- Re: Need some help in Routing in Linux
- From: GS
- Need some help in Routing in Linux
- Prev by Date: Re: How to set default gw not by route command in linux?
- Next by Date: Re: which log files to check for hosts.deny
- Previous by thread: Re: Need some help in Routing in Linux
- Next by thread: Re: Need some help in Routing in Linux
- Index(es):
Relevant Pages
|