Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Networks and Servers using Beaglebone

You're reading from   Building Networks and Servers using Beaglebone Set up and configure a local area network and file server by building your own home-based multimedia server

Arrow left icon
Product type Paperback
Published in May 2015
Publisher
ISBN-13 9781784390204
Length 110 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
William Pretty William Pretty
Author Profile Icon William Pretty
William Pretty
Glenn Vander Veer Glenn Vander Veer
Author Profile Icon Glenn Vander Veer
Glenn Vander Veer
Arrow right icon
View More author details
Toc

Installing DHCP


The Dynamic Host Control Protocol (DHCP) is how your computer, tablet, or smartphone gets an IP address when you log on to a network or an access point at your favorite coffee shop.

The first thing to do, once again, is to make sure that we have the latest version of the software installed, with the following commands:

apt-get update
apt-get install isc-dhcp-server

As you can see in the previous screenshot, we have the latest version installed.

Next, we have to edit the configuration file for the DHCP server. For this, we run the following command:

nano /etc/dhcp/dhcpd.conf

Then, we add the following lines:

subnet 192.168.4.0 netmask 255.255.255.0 {
  range 192.168.4.2 192.168.4.10;
}

This is how your dhcp.conf file will look:

#
# Sample configuration file for ISC dhcpd for Debian
#
#
.
.
.
.
subnet 192.168.4.0 netmask 255.255.255.0 {
  range 192.168.4.2 192.168.4.10;
}

Now that we have DHCP configured, we can reboot our BeagleBone and can try to connect to it wirelessly, as...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image