User Guide
DDOC0108-000-A2
CNS4 CSfC
11 - 10
Command Line Interface
Revision 0.0
11.2.8
dhcpconfig
Syntax
dhcpconfig [-h |
--
help |
--
version]
dhcpconfig -A -s IP NM [-r val val] [-n val] [-g val] [-d val] [-t val]
dhcpconfig -D -s IP NM
dhcpconfig -A -b NAME [-m val | -c val] [-t val] [-f val] [-n val] [-g val] [-d val] [-t val]
dhcpconfig -D -b NAME
Description
The dhcpconfig command allows the user to configure DHCP services on the CNS4 unit.
Options
Options for subnet and BOOTP declarations:
-h,
--
help............................ Print help message
--
version ............................ Print program version
-A,
--
add ............................ Add/Update subnet or bootp entry
-D,
--
delete: ....................... Delete subnet or bootp entry.
-n,
--
netmask <ip> ............. Netmask to assign to subnet clients
-g,
--
gateway <ip> ............. Gateway to assign to clients in subnet
-i,
--
domainserver <ip> ...... IP of Domain Name Server to assign to clients
-d,
--
domain <str>.............. Domain Name to assign to clients
-o,
--
offset <str>................. Time offset from UTC in seconds
Options specific to subnet declarations:
-s,
--
subnet <ip> <nm>...... IP and netmask for DHCP Subnet entry (Required)
-r,
--
ange <ip> <ip>............ Low to high range of IP addresses to provide
Options specific to BOOTP declarations:
-b,
--
bootp <str> ................ Name for bootp entry (Required)
-m,
--
mac <str>.................. Ethernet MAC to identify bootp client
-c,
--
clientid <str> .............. Alternative bootp client identifier value
-t,
--
tftpfile <str>................. TFTP file for bootp client to download/boot
-f,
--f
ixedip <ip> ................ Fixed IP for bootp client
NOTE
To start and stop the DHCP service use serv command
Example. View configuration enumerated
Line Identifier
SUBNET.............................. Reports a DHCP subnet declaration
HOST .................................. Reports a BOOTP client declaration
Fields
(only fields defined for the entry are displayed).
subnet=<net> ...................... Reports subnet on which to assign addresses
rn=<ip>-<ip>........................ Reports range of addresses to assign to clients
gw=<ip> .............................. Reports gateway address passed to clients
dns=<ip> ............................. Reports DNS server address passed to clients
nm=<nm>............................ Reports netmask passed to clients
dmn=<str>........................... Reports domain name passed to clients
toff=<int> ............................. Reports time offset passed to clients
host=<str> ........................... Reports name of BOOTP entry / hostname of client
mac=<mac> ........................ Reports MAC address of BOOTP client
id=<str> ............................... Reports client ID of BOOTP client
tftp=<file> ............................ Reports BOOTP file name
cns>
dhcpconfig
[dhcpconfig]
SUBNET: subnet=<net> rn=<ip>-<ip> gw=<ip> dns=<ip> nm=<nm>
dmn=<str>
toff=<int> status=<sts>
BOOTP: host=<str> mac=<mac> id=<str> tftp=<file> ip=<ip>
nm=<nm> gw=<ip>
dmn=<str> dns=<ip> toff=<int> status=<sts>
[!dhcpconfig] <summary>