[Linux-Discussion] routing problems

  • From: Curt Binder <binder@xxxxxxxxxxxxxxxxxxxx>
  • To: linux-discussion@xxxxxxxxxxxxx
  • Date: Fri, 14 Jun 2002 21:50:13 -0500


OK, here is my situation.  I have added a wireless access point to my existing 
lan.  In the process, I decided to use a linux box as the AP and as my main 
router.
The router has 3 network cards in it, 2 ethernet (eth0, eth1) and 1 wireless 
(wlan0).
eth0 - 10.1.21.0/24
eth1 - WAN
wlan0 - 10.1.20.0/24

eth0 has an IP of 10.1.21.1 and wlan0 has an IP of 10.1.20.1 with DCHP enabled 
on both of them.  I know for a fact that DHCP is working properly.  I'm 
having DHCP kick out the default route to be 10.1.21.1 and 10.1.20.1 on the 
respective networks.

Here is my problem.  I can ping the gateway from both networks.  From the 
10.1.21.0/24 network I can ping all clients and I can ping the 10.1.20.0/24 
network.  BUT when I try to ping the 10.1.21.0/24 network from 10.1.20.0/24, 
I can't.  I can't even do it from the gateway.

Here is the output from /sbin/route

255.255.255.255 *       255.255.255.255 UH  0  0  0 eth0     
255.255.255.255 *       255.255.255.255 UH  0  0  0 wlan0
10.1.20.0           *       255.255.255.0     U    0  0  0 wlan0
10.1.21.0           *       255.255.255.0     U    0  0  0 eth0
loopback           *       255.0.0.0            U    0  0  0 lo

I don't currently have a default gateway set.  I did have it set to 10.1.21.1 
and it still did not work.  I know I need to use iptables to forward packets 
around.  I have my kernel configured to do iptables/netfiltering and iptables 
are installed.

Any suggestions on to my problem??
If more information is needed, please ask and I will give it out.
Thanks in advance for your help.

Curt

-- 

# Curt Binder <binder@xxxxxxxxxxxxxxxxxxxx>
# ICQ: 3132781  AOL: cbinder69
# Linux ... because Penguins Rule =)


Other related posts: