François-Léonard Gilbert wrote:
hi,
thank u for your early reply
we are using proxy server for internet connection and we have done like this
linux-qgp3:~/Desktop # ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0F:FE:ED:FB:30
inet addr:172.16.99.255 Bcast:172.16.103.255 Mask:255.255.248.0
inet6 addr: fe80::20f:feff:feed:fb30/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:83381 errors:0 dropped:0 overruns:0 frame:0
TX packets:40133 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:79823487 (76.1 Mb) TX bytes:3657268 (3.4 Mb)
Memory:f0180000-f01a0000
freerunne Link encap:Ethernet HWaddr 00:1F:11:01:76:F8
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:100 (100.0 b) TX bytes:100 (100.0 b)
linux-qgp3:~/Desktop #
linux-qgp3:~/Desktop # ifconfig freerunner 192.168.0.200 netmask 255.255.255.0 up
linux-qgp3:~/Desktop # route add -host 192.168.0.202 dev freerunner
linux-qgp3:~/Desktop # iptables -
Bad argument `-'
Try `iptables -h' or 'iptables --help' for more information.
linux-qgp3:~/Desktop # iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
linux-qgp3:~/Desktop # sysctl -w net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1
linux-qgp3:~/Desktop # ip addr add 192.168.0.200/24 dev freerunner
RTNETLINK answers: File exists
linux-qgp3:~/Desktop # sysctl net.ipv4.conf.eth2.proxy_arp=1
/proc/sys/net/ipv4/conf/eth2/proxy_arp: No such file or directory
linux-qgp3:~/Desktop # sysctl net.ipv4.conf.freerunner.proxy_arp=1
net.ipv4.conf.freerunner.proxy_arp = 1
linux-qgp3:~/Desktop # ip link set freerunner up
linux-qgp3:~/Desktop # ifconfig freerunner up
linux-qgp3:~/Desktop # ssh root@192.168.0.202
root@192.168.0.202's password:
root@om-gta02 ~ $ op
openssl ophonekitd opkg opkg-key
openvt opimd-notes opkg-cl
root@om-gta02 ~ $ opkg update
Downloading
http://build.shr-project.org/shr-unstable/ipk//all/Packages.gzDownloading
http://build.shr-project.org/shr-unstable/ipk//armv4/Packages.gzDownloading
http://build.shr-project.org/shr-unstable/ipk//armv4t/Packages.gzDownloading
http://build.shr-project.org/shr-unstable/ipk//om-gta02/Packages.gzCollected errors:
* Failed to download
http://build.shr-project.org/shr-unstable/ipk//all/Packages.gz.
error detail: Couldn't resolve host name
* Failed to download
http://build.shr-project.org/shr-unstable/ipk//armv4/Packages.gz.
error detail: Couldn't resolve host name
* Failed to download
http://build.shr-project.org/shr-unstable/ipk//armv4t/Packages.gz.
error detail: Couldn't resolve host name
* Failed to download
http://build.shr-project.org/shr-unstable/ipk//om-gta02/Packages.gz.
error detail: Couldn't resolve host name
root@om-gta02 ~ $