KanREN DHCP Seminar November 7-9, 2005

Server Setup Procedures

First, login to your server. Because you'll be experimenting with your network settings throughout the seminar, each station has a serial connection that can always be used to login to your server, even if your network isn't currently usable. Connect your serial port to the console server and start a communications program (Windows HyperTerminal, Mac ZTerm) at 9600 8N1. Press Return a few times until you get a prompt. Type

telnet <your server IP>

and you should get a server login prompt. Login as the user “dhcp” using the password “FrIedlEb”, then type “su -” and reenter the same password. So far, it should look something like this:

Terminal-Keith>telnet 192.168.10.253

Trying 192.168.10.253 ... Open

OpenBSD/i386 (lab1.kanren.net) (ttyp0)

User not authenticated. Using plaintext username and password

login: dhcp

Password:

OpenBSD 3.7 (GENERIC) #0: Mon Aug 8 14:36:18 CDT 2005

Welcome to OpenBSD: The proactively secure Unix-like operating system.

lab1.kanren.net: KanREN's lab/testing server

lab1:/home/dhcp $ su -

Password:

lab1:/root #

Next, create the directory for building the software and download the source code:

lab1:/root # cd /usr/local

lab1:/usr/local # mkdir src

lab1:/usr/local # cd src

lab1:/usr/local/src # wget ftp://ftp.isc.org/isc/dhcp/dhcp-3.0.4b2.tar.gz

--09:54:02-- ftp://ftp.isc.org/isc/dhcp/dhcp-3.0.4b2.tar.gz

=> `dhcp-3.0.4b2.tar.gz'

Resolving ftp.isc.org... done.

Connecting to ftp.isc.org[2001:4f8:0:2::18]:21... failed: No route to host.

Connecting to ftp.isc.org[204.152.184.110]:21... connected.

Logging in as anonymous ... Logged in!

==> SYST ... done. ==> PWD ... done.

==> TYPE I ... done. ==> CWD /isc/dhcp ... done.

==> PASV ... done. ==> RETR dhcp-3.0.4b2.tar.gz ... done.

Length: 879,844 (unauthoritative)

100%[====================================>] 879,844 319.53K/s ETA 00:00

09:54:05 (319.53 KB/s) - `dhcp-3.0.4b2.tar.gz' saved [879844]

lab1:/usr/local/src # ls

dhcp-3.0.4b2.tar.gz

Unpack the source code, change into the source directory, backup the site configuration file, and download a tailored site configuration file.

lab1:/usr/local/src # tar xzf dhcp-3.0.4b2.tar.gz

lab1:/usr/local/src # ls

dhcp-3.0.4b2/ dhcp-3.0.4b2.tar.gz

lab1:/usr/local/src # cd dhcp-3.0.4b2/

lab1:/usr/local/src/dhcp-3.0.4b2 # ls

LICENSE README configure* dst/ relay/

Makefile RELNOTES contrib/ includes/ server/

Makefile.conf client/ dhcpctl/ minires/ site.conf

Makefile.dist common/ doc/ omapip/ tests/

lab1:/usr/local/src/dhcp-3.0.4b2 # mv site.conf site.conf-orig

lab1:/usr/local/src/dhcp-3.0.4b2 # wget http://www.neufeld.newton.ks.us/dhc p/site.conf

--10:14:55-- http://www.neufeld.newton.ks.us/dhcp/site.conf

=> `site.conf'

Resolving www.neufeld.newton.ks.us... done.

Connecting to www.neufeld.newton.ks.us[64.217.128.57]:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 831 [text/plain]

100%[====================================>] 831 811.52K/s ETA 00:00

10:14:55 (811.52 KB/s) - `site.conf' saved [831/831]

Run the configuration script and start the build process.

lab1:/usr/local/src/dhcp-3.0.4b2 # ./configure

System Type: openbsd

Making links in common

Making links in minires

Making links in dst

Making links in omapip

Making links in server

Making links in client

Making links in relay

Making links in dhcpctl

lab1:/usr/local/src/dhcp-3.0.4b2 # make

[lots and lots of output]

Install the newly-built server into the system locations.

lab1:/usr/local/src/dhcp-3.0.4b2 # make install

[lots and lots of output]

Congratulations! The server is built, installed, and ready to configure and start using!

2005-11-07T09:22:35