Configuring DHCP on the SecureStacks

  • 0
  • 1
  • Article
  • Updated 5 years ago
Article ID: 7724 

Products
SecureStack C3
Firmware all
SecureStack C2
Firmware 4.00.24 and higher
SecureStack B3
Firmware all
SecureStack B2
Firmware 3.01.16 and higher
SecureStack A2
Firmware 1.03.17 and higher

Goals
Configure DHCP
Sample configuration 

Symptoms
'set dhcp' 

Cause
As of the firmware versions stated above, the SecureStack product line supports the ability to act as a DHCP Server. This document provides background regarding that feature. 

Solution
A total of 16 DHCP address pools, dynamic and/or static, may be configured per stack. All IP addresses must belong to the same IP subnet as is used by the switch host ('set ip address...'); or if routing is enabled, may alternatively belong to the same subnet as that of a local routed interface. 

Shown below are the available 'set dhcp' commands. The 'clear dhcp' and 'show dhcp' commands are also available, but for brevity are not listed here. 

 C2(rw)->set dhcp ?

enable Configure DHCP server parameters.
disable Disable DHCP server. [default]
bootp Enable automatic address allocation for bootp clients.
conflict Enable the conflict logging on DHCP server.
exclude Configure IP addresses that a DHCP server should not
assign to DHCP clients.
ping Configure the number of packets sent by the DHCP
server.
pool Configure DHCP address pool.

C2(rw)->set dhcp enable ?

<cr>

C2(rw)->set dhcp disable ?

<cr>

C2(rw)->set dhcp bootp ?

enable Enable automatic address allocation for bootp clients.
disable Disable automatic address allocation for bootp
clients. [default]

C2(rw)->set dhcp bootp enable ?

<cr>

C2(rw)->set dhcp bootp disable ?

<cr>

C2(rw)->set dhcp conflict ?

logging Enable the conflict logging on DHCP server. [default]

C2(rw)->set dhcp conflict logging ?

<cr>

C2(rw)->set dhcp exclude ?

<low-address> Specify first IP address in an excluded address range.

C2(rw)->set dhcp exclude 1.2.3.1 ?

<high-address> Specify the last IP address in the excluded address
range.
<cr>

C2(rw)->set dhcp exclude 1.2.3.1 1.2.3.10 ?

<cr>

C2(rw)->set dhcp ping ?

packets Configure the number of packets sent by the DHCP
server.

C2(rw)->set dhcp ping packets ?

<0,2-10> Enter a number in the range 2-10 or 0 to disable the
function. [default 2]

C2(rw)->set dhcp ping packets 5 ?

<cr>

C2(rw)->set dhcp pool ?

<name> Enter pool name up to 31 characters in length.

C2(rw)->set dhcp pool myPool ?

bootfile Configure the default boot image for a BOOTP client.
client-identifier Configure unique identifier of a DHCP client.
client-name Configure name of a DHCP client.
default-router Specify default routers available to the DHCP client.
dns-server Specify DNS servers available to the DHCP client.
domain-name Configure the domain name of a DHCP client.
hardware-address Configure hardware address of a DHCP client.
host Configure IP address and the mask for a manual
binding to a DHCP client.
lease Configure lease time on the DHCP Server.
netbios-name-server Specify the netBIOS name server available to the DHCP
client.
netbios-node-type Configure the netBIOS node type for a DHCP client.
next-server Configure the next server in the boot process of a
DHCP client.
network Configure network number and the mask for the DHCP
address pool.
option Configure DHCP Server options.
<cr>

C2(rw)->set dhcp pool myPool bootfile ?

<filename> Specifies the file name to be used as a boot image.
File name should be up to 128 character long.

C2(rw)->set dhcp pool myPool bootfile myfile ?

<cr>

C2(rw)->set dhcp pool myPool client-identifier ?

<unique-identifier> Specify identifier of the client.

C2(rw)->set dhcp pool myPool client-identifier myID ?

<cr>

C2(rw)->set dhcp pool myPool client-name ?

<name> Specify name of the client up to 31 characters.

C2(rw)->set dhcp pool myPool client-name myName ?

<cr>

C2(rw)->set dhcp pool myPool default-router ?

<ip-address1> Specify address of the default router.

C2(rw)->set dhcp pool myPool default-router 1.2.3.1 1.2.3.2 1.2.3.3 1.2.3.4
1.2.3.5 1.2.3.6 1.2.3.7 1.2.3.8 ?

<cr>

C2(rw)->set dhcp pool myPool dns-server ?

<ip-address1> Specify address of the DNS server.

C2(rw)->set dhcp pool myPool dns-server 1.2.3.1 1.2.3.2 1.2.3.3 1.2.3.4
1.2.3.5 1.2.3.6 1.2.3.7 1.2.3.8 ?

<cr>

C2(rw)->set dhcp pool myPool domain-name ?

<domain> Specifies the domain name of the DHCP client. Domain
name should be up to 255 character long.

C2(rw)->set dhcp pool myPool domain-name myDomain.com ?

<cr>

C2(rw)->set dhcp pool myPool hardware-address ?

<hardware-address> Specify MAC address of the hardware platform of the
client.

C2(rw)->set dhcp pool myPool hardware-address 01-01-01-01-01-01 ?

<type> Specify protocol of the hardware platform. Enter 1
for Ethernet or 6 for IEEE 802.
<cr>

C2(rw)->set dhcp pool myPool hardware-address 01-01-01-01-01-01 1 ?

<cr>

C2(rw)->set dhcp pool myPool host ?

<address> Specify IP address for the DHCP client.

C2(rw)->set dhcp pool myPool host 1.2.3.1 ?

<mask> Specify network mask for the DHCP client.
<prefix-length> Specify Prefix Length for the DHCP client.
<cr>

C2(rw)->set dhcp pool myPool host 1.2.3.1 255.0.0.0 ?

<cr>

C2(rw)->set dhcp pool myPool host 1.2.3.1 8 ?

<cr>

C2(rw)->set dhcp pool myPool lease ?

<0-59> Specify days for which the lease is valid.
infinite Configure lease time to be infinite.

C2(rw)->set dhcp pool myPool lease 1 ?

<0-1439> Specify hours for which the lease is valid.
<cr>

C2(rw)->set dhcp pool myPool lease 1 0 ?

<0-86399> Specify minutes for which the lease is valid.
<cr>

C2(rw)->set dhcp pool myPool lease 1 0 0 ?

<cr>

C2(rw)->set dhcp pool myPool netbios-name-server ?

<ip-address1> Specify the address of the netBIOS name server.

C2(rw)->set dhcp pool myPool netbios-name-server 1.2.3.1 1.2.3.2 1.2.3.3
1.2.3.4 1.2.3.5 1.2.3.6 1.2.3.7 1.2.3.8 ?

<cr>

C2(rw)->set dhcp pool myPool netbios-node-type ?

b-node Specify the netBIOS node type to b-node.
h-node Specify the netBIOS node type to h-node.
m-node Specify the netBIOS node type to m-node.
p-node Specify the netBIOS node type to p-node.

C2(rw)->set dhcp pool myPool netbios-node-type b-node ?

<cr>

C2(rw)->set dhcp pool myPool netbios-node-type h-node ?

<cr>

C2(rw)->set dhcp pool myPool netbios-node-type m-node ?

<cr>

C2(rw)->set dhcp pool myPool netbios-node-type p-node ?

<cr>

C2(rw)->set dhcp pool myPool next-server ?

<ip-address> Specify address for the next server.

C2(rw)->set dhcp pool myPool next-server 1.2.3.1 ?

<cr>

C2(rw)->set dhcp pool myPool network ?

<network-number> Specify DHCP address pool network number.

C2(rw)->set dhcp pool myPool network 10.20.0.0 ?

<mask> Specify DHCP address pool subnet mask.
<prefix-length> Specify DHCP address pool prefix length.

C2(rw)->set dhcp pool myPool network 10.20.0.0 255.255.0.0 ?

<cr>

C2(rw)->set dhcp pool myPool network 10.20.0.0 16 ?

<cr>

C2(rw)->set dhcp pool myPool option ?

<1-254> Specify the DHCP option code.

C2(rw)->set dhcp pool myPool option 1 ?

ascii Specify the data in ASCII format.
hex Specify the data in HEX format.
ip Specify the data in IP format.

C2(rw)->set dhcp pool myPool option 1 ascii ?

<String1> Specify option string.

C2(rw)->set dhcp pool myPool option 1 ascii "myString" ?

<cr>

C2(rw)->set dhcp pool myPool option 1 hex ?

<String1> Specify option string.

C2(rw)->set dhcp pool myPool option 1 hex "myString" ?

<cr>

C2(rw)->set dhcp pool myPool option 1 ip ?

<ip-address1> Specify option string.

C2(rw)->set dhcp pool myPool option 1 ip 1.2.3.1 ?

<cr>

C2(rw)->

Here is an example of two dynamic pools and one static pool defined on a SecureStack C2 with routing enabled. Make sure you enable DHCP! 

 C2(rw)->set dhcp enable

C2(rw)->set dhcp pool Dynamic1 lease 1 0 0
C2(rw)->set dhcp pool Dynamic1 dns-server 10.15.25.65 20.31.6.34 20.31.6.35
C2(rw)->set dhcp pool Dynamic1 default-router 10.3.0.1
C2(rw)->set dhcp pool Dynamic1 network 10.3.0.0 255.255.0.0
C2(rw)->set dhcp pool Dynamic1 domain-name myDomain.com

C2(rw)->set dhcp pool andAnother
C2(rw)->set dhcp pool andAnother network 10.4.0.0 255.255.0.0

C2(rw)->set dhcp pool Static3 hardware-address 0011.2233.4455
C2(rw)->set dhcp pool Static3 lease 7 0 0
C2(rw)->set dhcp pool Static3 host 10.5.0.200 255.255.0.0
C2(rw)->set dhcp pool Static3 dns-server 10.15.25.65 20.31.6.34 20.31.6.35
C2(rw)->set dhcp pool Static3 default-router 10.5.0.1
C2(rw)->set dhcp pool Static3 domain-name myDomain.com

C2(rw)->

For additional background regarding the many configuration options, please refer to the relevant C3, C2, B3, B2, or A2 Configuration Guide.
Photo of FAQ User

FAQ User, Official Rep

  • 13,620 Points 10k badge 2x thumb

Posted 5 years ago

  • 0
  • 1

There are no replies.

This conversation is no longer open for comments or replies.