Template:FAQ/Questions/steps to get dhcp

What are the steps to get DHCP working with USBNet?
These steps get DHCP working with USBNet:

1. plug in the gumstix

2. Type ifconfig -a to see if usb0 shows up. The kernel recognizes the gumstix. (sidenote: it was not necessary to &quot;modprobe usbnet&quot; in order to get things going)

3. Type ifconfig usb0 192.168.0.1

Now we have an IP assigned to the usb0 interface, which will allow dhcpd to use it.

4. Type route add -host 255.255.255.255 dev usb0 as required to set up dhcpd for the usb0 interface.

5. Edite /etc/dhcpd.conf. All you really need to do is set up a range or specific host IP for our new subnet (192.168.0.x)

dhcpd.conf should look like this: ddns-update-style ad-hoc; option subnet-mask 255.255.255.0; option broadcast-address 192.168.0.255; option routers 192.168.0.1; option domain-name-servers 192.168.0.1; max-lease-time 120; default-lease-time 120;

subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.10 192.168.0.100;}

6. Turn on dhcpd with /usr/sbin/dhcpd -d -f which is the foreground debug mode. This way you can see what DHCP requests are being made, and what leases are being granted. At this point, the gumstix requestsand receives a lease on an IP in the 192.168.0.x range. note that it can take 60seconds or more for the gumstix to grab and address from the DHCP server...

7. Type ssh root@192.168.0.100 and log in to the gumstix.

You may find this helpful to reacquaint yourself with Linux networking How To.