Re: Need some help in Routing in Linux
- From: ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
- Date: Fri, 24 Nov 2006 13:58:14 -0600
On 23 Nov 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<1164347736.343517.284080@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, GS wrote:
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.
I'm sure some of those commas are meant to be periods. OK, all Linux
boxes. Ignoring for the moment any routes to the world and the loopback
interface, your routing tables should show two routes. On 192.168.1.0, it
would 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
while on 192.168.2.0 it 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
This is to say that one network is local, and the other has to be reached
through a gateway. To answer your followup question, the 169.254.0.0
route is for windoze ZeroConf, and can be ignored. If it bothers you,
there is a variable in your network configuration files that contains the
letters 'ZeroConf' that can be set to disable this. In RedHat/Fedora, this
is "NOZEROCONF=yes" in the /etc/sysconfig/network configuration file.
Now, you say
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,
What happens when you try? What is the exact error message? If you can
login _FROM_ 192.168.2.x _TO_ 192.168.1.x, then there is no networking
problem. This is more likely a firewall or permissions issue, so look at
the output of 'netstat -atupn' and '/sbin/iptables -L' on the systems on
both networks. How do they differ?
Old guy
.
- Follow-Ups:
- References:
- 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: Server in a NAT subet?
- 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
|