Re: Need some help in Routing in Linux



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
.



Relevant Pages

  • RE: SBS client updates over WAN remote sites
    ... User Wizard for the remote users on the SBS 2003 server, ... client applications such as Internet Explorer 6.0, Microsoft Office Outlook ... You can apply the following software on the subnet 10.0.2.0 using Group ...
    (microsoft.public.windows.server.sbs)
  • Re: VPN routing - single NIC - SOLVED
    ... What should happen is that the server ... acts as a proxy for the remote client. ... idea is to put the remotes in their own IP subnet and route this subnet ... Nothing is configured in RAS Admin - No policy and no Static Route. ...
    (microsoft.public.windows.server.networking)
  • Re: PPP for accessing an embedded device (routing problem)
    ... order to give access to a tiny HTTP administration server. ... but as PPP is normally designed to access Internet ... routed through the dialup server once connected, because the client machine ... That's a matter of routing configuration. ...
    (comp.protocols.ppp)
  • Re: Event ID 1030 and 1058. Access denied to gpt.ini
    ... > the 2k3 server its self. ... But my XP client will not work. ... domain controllers that have the Routing and Remote Acce: ... 292822 - Name resolution and connectivity issues on a Routing and Remote ...
    (microsoft.public.win2000.dns)
  • Re: SCCM Client Push Fails
    ... Both Client and Server have the subnet set as 255.255.255.252. ... The RPC server is unavailable. ...
    (microsoft.public.sms.setup)