--- layout: post status: publish published: true title: Using British Library wifi when DHCP fails wordpress_id: 207 wordpress_url: http://www.martineve.com/?p=207 date: !binary |- MjAxMC0xMC0yNyAwOToyNDoyMCArMDIwMA== date_gmt: !binary |- MjAxMC0xMC0yNyAwOToyNDoyMCArMDIwMA== categories: - Technology tags: - Technology - DHCP comments: - id: 168 author: Tweets that mention Using British Library wifi when DHCP fails | Martin Paul Eve -- Topsy.com author_email: '' author_url: http://topsy.com/www.martineve.com/2010/10/27/using-british-library-wifi-when-dhcp-fails/?utm_source=pingback&utm_campaign=L2 date: !binary |- MjAxMC0xMC0yNyAxMDo1ODo0MyArMDIwMA== date_gmt: !binary |- MjAxMC0xMC0yNyAxMDo1ODo0MyArMDIwMA== content: ! '[...] This post was mentioned on Twitter by Sarah Robins-Hobden, Martin Eve. Martin Eve said: New blog post: Using British Library wifi when DHCP fails http://www.martineve.com/?p=207 [...]' ---

Sometimes, the free wireless service at the British Library goes pear shaped and, if you are accustomed to using it, this can make research quite hard. Occasionally, however the fault is not with the central mechanism but rather with DHCP -- the mechanism that gives your computer an address on their system.

I'm afraid that this is a somewhat technical post, as I don't have time to write a user-friendly (aka. Windows) guide, but to determine if DHCP is at fault (assuming you are using a *nix based system, such as Linux or Mac OS X) you can issue, at a terminal:

cat /var/log/syslog | grep DHCP

once you've tried, probably unsuccessfully, to connect.

If you see lines like this:

Oct 27 10:11:10 allusion dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
Oct 27 10:11:10 allusion dhclient: DHCPOFFER of 192.168.5.218 from 192.168.4.1
Oct 27 10:11:10 allusion dhclient: DHCPREQUEST of 192.168.5.218 on wlan0 to 255.255.255.255 port 67
Oct 27 10:11:13 allusion dhclient: DHCPREQUEST of 192.168.5.218 on wlan0 to 255.255.255.255 port 67
Oct 27 10:11:21 allusion dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
Oct 27 10:11:21 allusion dhclient: DHCPOFFER of 192.168.5.218 from 192.168.4.1
Oct 27 10:11:21 allusion dhclient: DHCPREQUEST of 192.168.5.218 on wlan0 to 255.255.255.255 port 67

Then it might be fixable.

Indeed, simply set your wireless adapter to use a static IP, using the address shown in the DHCPOFFER line, a default gateway of 192.168.4.1 and DNS server likewise 192.168.4.1

Tada -- back online.