Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
daves_mesh_network_experiments [2013-07-24 12:33] – created davegriffithsdaves_mesh_network_experiments [2013-07-25 07:22] (current) davegriffiths
Line 5: Line 5:
 === Setting up dhcp server === === Setting up dhcp server ===
  
-Used for example to ssh into a raspberry pi or beagleboard with no router present+Used for example to ssh into a raspberry pi or beagleboard from a laptop with no router present.
  
   apt-get install isc-dhcp-server   apt-get install isc-dhcp-server
Line 16: Line 16:
   default-lease-time 600;   default-lease-time 600;
   max-lease-time 7200;   max-lease-time 7200;
 +  
   authoritative;   authoritative;
 +  
   subnet 192.168.0.0 netmask 255.255.255.0 {   subnet 192.168.0.0 netmask 255.255.255.0 {
           ## dhcp start  and end IP range ##           ## dhcp start  and end IP range ##
Line 25: Line 25:
           option broadcast-address 192.168.0.255; ## broadcast           option broadcast-address 192.168.0.255; ## broadcast
           option routers 192.168.0.1; ## router IP           option routers 192.168.0.1; ## router IP
 +  
           host eth0 {           host eth0 {
                   hardware ethernet 70:5A:B6:0B:1C:67;                   hardware ethernet 70:5A:B6:0B:1C:67;
                   fixed-address 192.168.0.1;                   fixed-address 192.168.0.1;
           }           }
 +  
   }   }
  
Line 45: Line 45:
 Plug in cables, and scan: Plug in cables, and scan:
  
-sudo arp-scan --interface=eth0 192.168.0.0/24+  sudo arp-scan --interface=eth0 192.168.0.0/24 
 + 
 +=== 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 192.168.2.1 
 + 
  
 +[[https://github.com/jech/babeld]]
  
  • daves_mesh_network_experiments.1374669188.txt.gz
  • Last modified: 2013-07-24 12:33
  • by davegriffiths