Need some help in Routing in Linux
- From: "GS" <globalswamy@xxxxxxxxxxx>
- Date: 23 Nov 2006 21:55:36 -0800
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.
.
- Follow-Ups:
- Re: Need some help in Routing in Linux
- From: Moe Trin
- Re: Need some help in Routing in Linux
- From: MA
- Re: Need some help in Routing in Linux
- From: metasov@xxxxxxxxx
- Re: Need some help in Routing in Linux
- From: GS
- Re: Need some help in Routing in Linux
- Prev by Date: Re: weird iptables behaviour
- Next by Date: Re: Need some help in Routing in Linux
- Previous by thread: weird iptables behaviour
- Next by thread: Re: Need some help in Routing in Linux
- Index(es):
Relevant Pages
|