edit /etc/network/interfaces , that depends on your network setup . if you are using ubuntu on pc, add a new connection >> shared to other computers , and use example interfaces file below auto usb0 iface usb0 inet static address 10.42.43.10 network 10.42.43.0 netmask 255.255.255.0 broadcast 10.42.43.255 gateway 10.42.43.1