auto usb0
iface usb0 inet static
address 192.168.2.14
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
up iptables -t nat -A POSTROUTING -o eth0 -s 192.168.2.15 -j MASQUERADE
up echo 1 > /proc/sys/net/ipv4/ip_forward
down iptables -t nat -D POSTROUTING -o eth0 -s 192.168.2.15 -j MASQUERADE
down echo 0 > /proc/sys/net/ipv4/ip_forward
然后
ifup usb0
注意Knowns issuesThere are a few known issues with the USB networking.
The connection is not available when a MMC card is inserted in the device. The reason is that the USB port in the device can only play one role at a time.
The USB network connection might occasionally die. If this happens then just disconnect the USB cable and connect it again.