Re: Need some help in Routing in Linux
- From: "GS" <globalswamy@xxxxxxxxxxx>
- Date: 25 Nov 2006 10:25:37 -0800
Thanks for reply. I verfied iptables and route on both sides, I can see
all rules are flushed on both sides, also route looks Ok, I am keeping
those commands outputs below. onething I noticed is, I ran "tcpdump -i
eth0 port 22" on both machines to see what is going on with ssh (I am
doing ssh from 192.168.1 subnet to 192.168.2 subnet), the remote
machine in 192.168.2 subnet receives that packet, but no reply for that
request at all (I can see all packets from 192.168.1 subnet machine to
192.168.2 subnet machine only, no reply from 192.168.2 subnet machine
at all).
Once again, this 192.168.1.128 address is assigned to Second Router's
WAN port (that WAN port is connected to switch port of the first Router
and given static IP address for that port).
This output from 192.168.1 subnet machine
================================
[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@host1]#
[root@host1]# iptables -L
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@host1]#
This output from 192.168.2 subnet machine
================================
[root@host2]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.2.0 * 255.255.255.0 U 0 0 0
eth0
192.168.1.0 192.168.2.254 255.255.255.0 UG 0 0 0
eth0
169.254.0.0 * 255.255.0.0 U 0 0 0
eth0
127.0.0.0 * 255.0.0.0 U 0 0 0
lo
default 192.168.2.254 0.0.0.0 UG 0 0 0
eth0
[root@host2]#
[root@host2]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Lokkit-0-50-INPUT (0 references)
target prot opt source destination
[root@host2]#
.
- Follow-Ups:
- Re: Need some help in Routing in Linux
- From: Moe Trin
- Re: Need some help in Routing in Linux
- References:
- Need some help in Routing in Linux
- From: GS
- Re: Need some help in Routing in Linux
- From: Moe Trin
- Need some help in Routing in Linux
- Prev by Date: kubuntu ethernet setup help, please
- Next by Date: Re: How to set default gw not by route command in linux?
- 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
|