Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have three computers connected on the same wireless ad-hoc network with the following adresses :  <----->  <----->

On computer 5, I only did :

route add -net netmask dev wlan1
sysctl -w net.ipv4.ip_forward=1

Here is a look to my routing table :

Destination   Gateway       Genmask         Flags   Metric  Ref   Use   Iface         UG      100     0     0     eth0     U       1000    0     0     eth0   U       0       0     0     wlan1 UH      0       0     0     wlan1   U       0       0     0     eth0

Why isn't is working ? How can I forward the packet from computer .3 to computer .6 ?

share|improve this question

closed as unclear what you're asking by roaima, Jeff Schaller, Anthon, MelBurslan, garethTheRed May 19 at 18:14

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question. isn't a network, it's a host. Use route add -host netmask dev wlan2. What does your routing table look like btw, because I am pretty sure there is an easier way to do this. – sparticvs Jun 4 '13 at 13:10
Sorry, I should be more precise and my question was badly wrote – Mathieu Leiv Jun 5 '13 at 6:42
Can you add all the commands – Andrei May 18 at 13:20