Sign up ×
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.

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.