[oe] ip route add nat - returns RTNETLINK answers: Invalid argument
Stuart Gray
stuart68 at gmail.com
Wed Aug 12 09:39:48 UTC 2009
Hi,
I am trying to set up routing between my wireless (wlan0) to my eth0 port.
I have set up the wlan0 as follows:
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.10.100
netmask 255.255.255.0
wireless-mode ad-hoc
wireless-essid dock-amp
eth0 as:
auto eth0
iface eth0 inet dhcp
Both interfaces have been proven to work.
Within sysctl.conf net.ipv4.ip_forward=1
eth0 has ip address 192.168.2.207, wlan0 is as above, I want to allow
devices connected wireless to access the web so I have tried to set up nat
to allow packets to get routed through to 192.168.2.207.
I used the following command:
ip route add nat 192.168.2.207 via 192.168.10.100
To this I get the following error RTNETLINK answers: Invalid argument
I have looked at www.policyrouting.org, but I cannot see what I am doing
wrong. Any help would be great.
Thanks,
Stuart
More information about the Openembedded-devel
mailing list