Various records of networking experiments

Setting up dhcp server

Used for example to ssh into a raspberry pi or beagleboard from a laptop with no router present.

apt-get install isc-dhcp-server

Create /etc/dhcp/dhcpd.conf:

ddns-update-style none;
option domain-name "";
option domain-name-servers,;
default-lease-time 600;
max-lease-time 7200;


subnet netmask {
        ## dhcp start  and end IP range ##
        option subnet-mask;     ## subnet
        option broadcast-address; ## broadcast
        option routers; ## router IP

        host eth0 {
                hardware ethernet 70:5A:B6:0B:1C:67;

sudo service isc-dhcp-server start

Set ip address of machine to fixed:

sudo ifconfig eth0

Also sanity check ip addresses via:

route -n

Plug in cables, and scan:

sudo arp-scan --interface=eth0

Running an ad-hoc wireless network on the raspberry pi

ifconfig wlan0 down
iwconfig  wlan0 channel 4
iwconfig  wlan0 mode ad-hoc
iwconfig  wlan0 essid 'raspberry pi ad-hoc'
iwconfig  wlan0 key password
ifconfig  wlan0

  • daves_mesh_network_experiments.txt
  • Last modified: 2013-07-25 07:22
  • by davegriffiths