[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Resolu] Was: Connexion OpenMoko et perte du resolv.conf



Le 4 décembre 2009 14:59, Kevin Hinault <hinault@gmail.com> a écrit :
> 2009/12/4 François TOURDE <fra-duf-no-spam@tourde.org>:
>> Perso, mon interface était usb0, et il n'y avait pas de

Et bien en fait le problème venait de usb0 ! L'utilisation de eth1
créer ce problème mais pas usb0. Voilà ma conf dans le
/etc/network/interfaces qui fonctionne plutôt bien :
# freerunner SHR
auto usb0
allow-hotplug usb0
iface usb0 inet static
      address 192.168.0.200
      netmask 255.255.255.0
      up iptables -A POSTROUTING -t nat -s 192.168.0.0/24 -j MASQUERADE
      up echo 1 > /proc/sys/net/ipv4/ip_forward
      down iptables -D POSTROUTING -t nat -s 192.168.0.0/24 -j MASQUERADE
      down echo 0 > /proc/sys/net/ipv4/ip_forward

J'aurais bien aimé comprendre comment Debian attribue usb ou eth aux
interfaces. C'est suite à une réinstallation que j'ai réglé ce
problème ...

-- 
Kévin


Reply to: