Take the 2-minute tour ×
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 :

192.168.1.3  <----->  192.168.1.5  <----->  192.168.1.6

On computer 5, I only did :

route add -net 192.168.1.6 netmask 255.255.255.255 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
0.0.0.0       192.168.20.1  0.0.0.0         UG      100     0     0     eth0 
169.254.0.0   0.0.0.0       255.255.0.0     U       1000    0     0     eth0 
192.168.1.0   0.0.0.0       255.255.255.0   U       0       0     0     wlan1
192.168.1.6   0.0.0.0       255.255.255.255 UH      0       0     0     wlan1
192.168.20.0  0.0.0.0       255.255.255.0   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
    
192.168.1.6 isn't a network, it's a host. Use route add -host 192.168.1.6 netmask 255.255.255.0 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
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.