Need some help in Routing in Linux



Guys:

I have some problem, can some Router expert give me a clue. we have two
different subnets, 192.168.1(ADSL-Router) and 192.168.2 (regular SOHO
router), this second router is connected to one of the port on first
router and assigned Second Routers wan port as static IP addr
(192.168.1.128), from 192.168.2 subnet, we can login to all machines in
192.168.1 subnet, whereas from 192.168.1 to 192.168.2, we can't login
or ping at all, I added a route on 192.168.1 subnet, stull I can't
access 2nd subnet machines, on first subnet, I added route using below
command, also route looklike, all machines on both subnets are Linux
machines only.

[root@host1]# route add -net 192.168.2.0 netmask 255.255.255.0 gw
192.168.1.128

[root@host1]# route
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
169.254.0.0 * 255.255.0.0 U 0 0 0
eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0
eth0
[root@thost1]#

192.168.1.1 is the gateway ip-address for 192.168.1 subnet, where as
192.168.2.254 is gateway ip-address for 192.168.2 subnet.

.



Relevant Pages

  • Re: please advise - problem with routing
    ... and a network is a very important distinction in IP address configuration. ... you show that the 192.168.1.0/24 subnet has two devices ... ROUTE PRINT on NT4 ... ROUTE PRINT on router ...
    (microsoft.public.windows.server.networking)
  • Re: Win2k3 LAN Routing Questions
    ... all you need to do is enable IP routing on the router. ... If there was no other network involved, you simply make the router the ... pretty straight forward as long as you can add a route to your NAT router. ... This is important because this router needs to know where your new subnet is ...
    (microsoft.public.windows.server.networking)
  • Re: please advise - problem with routing
    ... Routes should be added at the router. ... router separting the 192.168.26.0/24 subnet from the 192.168.1.0/24 subnet. ... Please post the Route tables, and IP config information for your networks. ... > "Dana Brash" wrote in message ...
    (microsoft.public.windows.server.networking)
  • Re: Routing through two DD-WRTs
    ... I can happily route packets from hosts on .111 to .110 and .112, ... accounting rules counters increment but the .111/.110 ... from the .111/.112 router though... ... seems to be correctly pointing at the .110 subnet. ...
    (alt.internet.wireless)
  • Re: Windows 2000 server as Network Router
    ... Making changes at the router itself cannot fix this. ... Traffic for the "other" subnet is sent to the router. ... local subnet now goes to the external router and is lost. ... You can do this by adding a static route to every client to send traffic ...
    (microsoft.public.windows.server.networking)