This document describes OpenROUTE Networks Dynamic Host Configuration Protocol (DHCP) implementation for both the DHCP client and the DHCP server and includes the following sections:
DHCP Overview
Configuring DHCP Client
DHCP Client Commands
Configuring DHCP Server
DHCP Server Commands
DHCP Overview
Dynamic Host Configuration Protocol (DHCP) is an Internet standard for passing configuration information, including Internet Protocol (IP) addresses, to hosts on a Transmission Control Protocol/Internet Protocol (TCP/IP) network. DHCP is an extension of the BOOTstrap Protocol (BOOTP), adding the capability of automatic allocation of reusable network addresses. When you configure your OpenROUTE Networks router to use DHCP, you enable dynamic, centralized management of the IP addresses on your local internet so you no longer need to assign and track IP addresses manually.
The OpenROUTE Networks DHCP implementation allows an OpenROUTE router LAN interface to be either a DHCP client or a DHCP server, but not both simultaneously.
IP config> add address
Which net is this address for [0]?
New address [0.0.0.0]?
Allow dynamic address assignment via DHCP(Yes or [No]):yes
IP>dhcDHCP Client>
Clear [M]
Clears either global counters or the counters on a specified interface.
Syntax: clear
clear
Clearing global counters.Example:
clear 0
Clearing counters for client configured on 0.
exit
interface
DHC Client> interfaceNetwork Number (CR for summary)?
NetName IP Address Mask ServerId State
Eth/0 128.185.5.2 255.255.255.0 192.168.111.250 Bound
TKR/0 0.0.0.0 0.0.0.0 255.255.255.255 SelectingInterfaces that are Bound:
NetName IP Address Bound Lease Renewal Rebind BroadcastAddr
Time Time Time Time
Eth/0 128.185.5.2 15 1000 500 875 255.255.255.255
NetName IP Address Mask serverId State
Eth/0 162.6.0.226 255.255.0.0 162.6.0.20 Bound
Destination address: 162.6.0.20
Requested address: 0.0.0.0
Time since bound: 149
Bad packets received: 0
Discover packets sent: 0
Request packets sent: 0
Decline packets sent: 0
Release packets sent: 0
Active Lease:
serverId: 162.6.0.20
Packet Type: DhcpOffer
Broadcast Address: 162.6.255.255
Lease Time: 1802
Renewal Time: 901
Rebind Time: 1576
Offered Lease(s): None
Release [M]
Releases the lease.
Syntax: release
release
statistics
Number of clients: 1
Number of clients bound: 1
Bad packets received: 0
Buffer allocation failures: 0
Memory allocation failures: 0
Input packet overflows: Net Count
Eth/0 0
IP config>dhsDHCP Server Config>
IP>dhsDHCP Server>
add fixed-assignment 0
Interface [0]?IP Address? 128.185.10.16
MAC Address? 000093B40014
- Note: If you have already configured a fixed IP address, the address you entered overwrites the MAC address.
add non-assignable-range 0
First address of range [0.0.0.0] ?128.185.4.10
Last address of range [0.0.0.0] ?128.185.4.15
- Note: IP address range must be a valid range in the same class network.
clear-all
Are you sure you want to delete all DHCP Server configuration (Yes or [No])?
delete fixed-assignment
Interface [0]?IP Address? 128.185.10.16
delete non-assignable-range
Interface [0]?First address of range [0.0.0.0] ?128.185.5.10
Last address of range [0.0.0.0] ?128.185.5.15
disable
Interface [0]?Free your run-time in-memory config(Yes or [No]): yes
enable 0
exit
IP Config>
IP>
free all-dynamic-assignments 0
free one-dynamic-assignment 0
IP address?128.185.11.17
DHCP Server config>list all
Interface [5]?Ifc State Assignable-IP-Address-Range
5 enabled *0.0.0.0-0.0.0.0 (*=automatically derived)
Option Profile: (*=automatically derived)
Subnet Mask: *255.255.0.0
Default Gateway: *162.6.0.34
DNS1: 162.6.0.2
DNS2: 0.0.0.0
DNS3: 0.0.0.0
Domain Name: openroute
Lease Time: 360 secondsDynamic assignments:
IP Address MAC Address State BoundTime LeaseTime
162.6.0.1 000093B40014 Bound 0 360
DHCP Server>list all
Ifc State ClientsBound ServerId Assignable-IP-Address-Range
0 enabled 2 *162.6.0.2 *162.6.0.1-162.2.255.254Option Profile (*=automatically derived):
Subnet Mask: *255.255.255.0
Default Gateway: *10.10.1.237
DNS1: 0.0.0.0
DNS2: 0.0.0.0
DNS3: 0.0.0.0
Domain Name: <none>
Lease Time: 14400 secondsNon-assignable IP address ranges:
0.0.0.0-0.0.0.0Dynamic assignments:
IP Address MAC Address State BoundTime LeaseTime
10.10.1.1 000093B4003C Bound 4137 14400
10.10.1.2 000093B8A878 Bound 2877 14400
|
State
| Possible states the server lease can be in: |
dynamic-assignment interface number
Lists any IP address(es) dynamically assigned to the selected interface.
Example: list dynamic-assignment
Interface [5]?Dynamic assignments:
IP Address MAC Address State BoundTime LeaseTime
162.6.0.1 000093B40014 Bound 0 360
list fixed-assignment
Interface [0]?Fixed assignments:
IP Address MAC Address State BoundTime LeaseTime
128.185.10.5 000093B40014 Bound 187 300
DHCP Server Config>list interfaces
Ifc State Assignable-IP-Address-Range (*=automatically derived)
0 disabled *0.0.0.0-0.0.0.0
5 enabled *0.0.0.0-0.0.0.0
DHCP Server>list interfaces
Ifc State ClientsBound ServerId Assignable-IP-Address-Range
0 enabled-but interface has no fixed IP address-no run-time config
5 enabled 0 *162.6.0.34 *162.6.0.1 - 162.6.255.254
list non-assignable-range
Interface [5]?Non-assignable IP address ranges:
128.185.10.10 128.185.10.15
list profile options
Interface [5]?Option Profile (*=automatically derived):
Subnet Mask: *255.255.0.0
Default Gateway: *162.6.0.34
DNS1: 162.6.0.2
DNS2: 0.0.0.0
DNS3: 0.0.0.0
Domain Name: openroute
Lease Time: 360 seconds
revert
Interface [5]?
save
Interface [5]?
set assignable-range
First address of range [0.0.0.0]? 128.185.19.1Last address of range [0.0.0.0]? 128.185.19.5
set default-gateway 0
Default Gateway (0.0.0.0 = automatic default) [0.0.0.0]?
set dns 0
DNS1 (0.0.0.0 = none) [0.0.0.0]? 128.185.7.8
set domain-name 0
Domain name? boston
set lease-time 0
lease time [14400]? 3600
set subnet-mask 0
Subnet Mask (0.0.0.0 = automatic default) [0.0.0.0]?