I got it!
It is a subnetwork overlay.
The intefaces file must be modified like this (netmask)

iface usb0 inet static
   address 192.168.0.202
   netmask 255.255.255.192
   network 192.168.0.0
   up route add default gw 192.168.0.200 metric 8
   up echo nameserver 208.67.222.222 > /etc/resolv.conf
   up echo nameserver 208.67.220.220 >> /etc/resolv.conf
   down route del default gw 192.168.0.200 metric 8

I have open a bug report


piratebab a écrit :
> IT WORKS!
>
> I dont understand everything, but here is what I have done:
> I use the interface configuration from Ole:
>
> # freerunner
> allow-hotplug eth2
> auto eth2
> iface eth2 inet static
>        address 192.168.0.200
>        netmask 255.255.255.192
>        up iptables -A POSTROUTING -t nat -s 192.168.0.0/24 -j MASQUERADE
>       up echo 1 > /proc/sys/net/ipv4/ip_forward
>
> With this, I can connect to the FR. From the FR, I can not ping the gw
> (192.168.0.1), neither www.google.com.
> i try pinging google using ip address (ping 74.125.19.147) and it works!
> So it is only a DNS problem.
> I just ad a public DNS address in /etc/resolv.conf of the FR (nameserver
> 208.67.222.222).
>
> Why not adding this address in the stndard configuration of SHR ? (or
> some others public DNS address) ?
>
>
> piratebab a écrit :
>   
>> Hi all,
>> I have switched from testing to unstable. So the interface on host
>> changed from usb0 to eth2.
>> I have modified my configuration method for connecting the FR (change
>> all usb0 by eth2 in script from
>> http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others.
>> I can connect to the FR using ssh, but cant connect to the internet with it.
>> I have tried many configuration in order to forward eth2 to eth1 (the
>> one connected to the web). But nothing works.
>> How do you manage this (Pc host is debian testing) ?
>>
>> _______________________________________________
>> Shr-User mailing list
>> [email protected]
>> http://lists.shr-project.org/mailman/listinfo/shr-user
>>
>>
>>   
>>     
>
>
> _______________________________________________
> Shr-User mailing list
> [email protected]
> http://lists.shr-project.org/mailman/listinfo/shr-user
>
>
>   

_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to