routing wired/wireless networks

routing wired/wireless networks

Post by Glenn Buri » Sat, 22 Jun 2002 16:44:12



I am having trouble setting up routing for a home network with the following configuration:

Distribution:  Redhat 7.2
eth0:  internal netmask 255.255.255.0, ip 192.168.1.2
eth1:  cable modem      DHCP
eth2:  802.11b netmask 255.255.255.0, ip 10.0.1.7 (orinoco_cs driver running adhoc mode)

If I try to ping from a machine on 10.0.1.0 to a machine on 192.168.1.0, I get timeouts.
I can ping correctly to machines on both networks from my router host.  
I have already checked that ip_forwarding is allowed.  
The file /etc/sysctl.conf has net.ipv4.ip_forward = 1 and /proc/sys/net/ipv4/ip_forward has the value 1.
I am also using IPTables, which seems to NAT & route correctly to eth1.

Here are my routing rules:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.1.0        *               255.255.255.0   U     0      0        0 eth2
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
12.249.147.0    *               255.255.255.0   U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         12-249-147-1.cl 0.0.0.0         UG    0      0        0 eth1

If I try to ping 192.168.1.3 from 10.0.1.5 I get no replies.
Here is some output from tethereal:

tethereal capture for eth2 on the router host:

  0.074769     10.0.1.7 -> 198.178.10.180 TCP 32823 > http [ACK] Seq=2558070473 Ack=240958593 Win=62780 Len=0
  5.049019 Agere_1c:b3:6a -> Lucent_f0:0c:53 ARP Who has 10.0.1.7?  Tell 10.0.1.5
  5.050940 Lucent_f0:0c:53 -> Agere_1c:b3:6a ARP 10.0.1.7 is at 00:60:1d:f0:0c:53
 31.995502     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
 32.991969     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
 33.992026     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
 34.992082     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
 35.992154     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
 36.992232     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
 37.992292     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
 38.992363     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
 39.992443     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
 40.992500     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
 41.992553     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request

tethereal capture for eth0 on the router host:
Capturing on eth0
  0.000000   3_33:aa:cd -> ff:ff:ff:ff:ff:ff ARP Who has 192.168.1.3?  Tell 192.168.1.2
  0.000352 Sun_c1:5c:8f -> 3_33:aa:cd   ARP 192.168.1.3 is at 08:00:20:c1:5c:8f
  0.000390     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
  0.996327     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
  1.996379     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
  2.996449     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
  3.996517     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
  4.996575     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
  5.996662     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
  6.996708     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
  7.996802     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
  8.996862     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
  9.996921     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
 10.997015     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request
 11.997064     10.0.1.7 -> 192.168.1.3  ICMP Echo (ping) request

I think it may have something to do with the requests address of the incoming reques on eth2 being 10.0.1.7 instead of 10.0.1.5.
Maybe NAT'ing is being applied when it shouldn't.

Thanks for your help.

-Glenn Buric

 
 
 

1. need a suggestion to a home network (wire or wireless) behind a Linux firewall

Hi,

I have DSL+linux firewall at home. I have a hub downstairs which I can
hook my laptop to. It works fine. NOw, I'm thinking of taking my
laptop to other place in the house, including upstairs. I have
researched two solutions.

(1) powerline network. It will serve my purpose, but I just could not
find those powerline ethernet adapters in local Fry's electronics. (I
like to be able to return if it does not work).

(2) wifi. I got a Linksys BEFW11S4 (router/AP) and a pcmcia for my
laptop last weekend at Bestbuy. I like to put Linksys AP behind my
linux firewal (so I will have more control). However, the BEFW11s4
simply would not talk to my linux firewall, even they are on the same
lan. I have googled, found out some message with the exact same
problem, but not answer. I have already spent too much time on this.

Would any one suggest an easy way, or a better product, or just a
simple trick that I can resolve the above wi-fi problem? I really do
not mind wire or wireless, as long as I don't have to wire the long
ethernet cable to upstair rooms.

Thank you.

Jun

2. NAT code ?

3. Wireless ethernet in laptop to hard-wired ethernet network, is it possible?

4. redhat 7.1 and ATI radeon

5. Need help with mixed wired/wireless network (the Bob Hauck configuration)

6. compiling wu.ftpd-BETA10

7. Bridging wireless and wired network

8. Mozilla freezes when loading page with sound if sound already playing in background...

9. Wireless/Wired network speed drops to 1Mb/sec

10. Newbie : Wireless/Wired Network

11. wired vs wireless network

12. linux wireless networking and routing

13. Wireless and old-fashioned wired adapter