Re: Need some help in Routing in Linux



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]#

.



Relevant Pages

  • Re: Linux is Driving me $#@!!!! nutz!!!
    ... :Doing a route call from terminal ... via nic card on eth0. ... time since I had to configure a PPP connection, ... from the command line. ...
    (rec.crafts.metalworking)
  • Re: Ethernet order
    ... > I added this Linux box on the network to play with and wanted it to ... connect to the internet via that Westell device, ... The last route, with some sort of "catch all" destination 0.0.0.0, is ... Your ISP's router would go via eth0 to that device. ...
    (comp.os.linux.networking)
  • Re: [opensuse] Suse 10.2 +two network cards (Not yet solved)
    ... then set the eth0 as it was default from the installation. ... set eth1 DNS servers etc. so DHCP would not update them. ... Also have figure out where to put the route command ...
    (SuSE)
  • Re: DNS or network problem
    ... UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ... The first thing that leaps out at me is the fact that eth0 and eth1 ... Because all your routes passes through eth1, and not eth0, I ...
    (Fedora)
  • Re: Slow browsing with cable modem
    ... The netmask above ... these results for my eth0 interface: ... route add default gw 192.168.1.1 eth0 ... > with network configuration problems, so it's only fair to be rightly ...
    (comp.os.linux.networking)