setenv ipaddr 10.0.0.2
setenv netmask 255.255.255.9
setenv gateway 10.0.0.1
這樣 host 端:
ifconfig usb0 10.0.0.1 netmask 255.255.255.0 up
就可以完成連線,然後:
ping 10.0.0.1
checksum bad
checksum bad
host 10.0.0.1 is alive
代表 ping host OK
host 端可以修改 /etc/network/interfaces:
auto usb0
iface usb0 inet static
address 10.0.0.1
netmask 255.255.255.0
gateway 10.0.0.2
沒有留言:
張貼留言