BSD Newsletter.com
   Front | Info | Lists | Newsfeeds | Study Guide | What is BSD?
Advertisement: The OpenBSD PF Packet Filter Book: PF for NetBSD, FreeBSD, DragonFly and OpenBSD

BSD Links
·New Links
·Advocacy
·Drivers
·Events
·Flavours
·FAQs
·Guides
·Programming
·Security
·Software
·User Groups

This is the BSDA Study Guide Book written via a wiki collaboration. This is a work in progress. You may contribute to or discuss this specific page at http://bsdwiki.reedmedia.net/wiki/View_and_renew_a_DHCP_lease.html.

View and renew a DHCP lease

Concept

An admin should have a basic understanding of DHCP leases and how to configure a client to override the settings received from a DHCP server. In addition, be able to view the current lease, release it and renew a lease. Since the DHCP client used varies, be familiar with using the DCHP client commands on each BSD.

Introduction

dhclient: Dynamic Host Configuration Protocol (DHCP) client

dhclient.leases: DHCP client lease database

dhclient.conf: DHCP client configuration file

dhcp-options(5): DHCP configuration options

files:

/etc/dhclient.conf

/sbin/dhclient

/sbin/dhclient-script

/var/db/dhclient.leases

configure a client to override the settings received from a DHCP server: use require or supersede options in dhclient.conf

view the current lease (FreeBSD?):

less /var/db/dhclient.leases.if_name

release the current lease:

dhclient -r

renew a lease:

dhclient ifname

Examples

Practice Exercises

More information

dhclient(8), dhclient.leases(5), dhclient.conf(5), rc.conf(5)



Front | Information | Lists | Newsfeeds