Configuring a DHCP Server in Gaia Clish
Syntax
add dhcp server subnet <Subnet Entry> netmask <Mask> include-ip-pool start <First IPv4 Address> end <Last IPv4 Address> exclude-ip-pool start <First IPv4 Address> end <Last IPv4 Address> |
set dhcp server subnet <Subnet Entry> enable disable include-ip-pool <First IPv4 Address-Last IPv4 Address> {enable | disable} exclude-ip-pool <First IPv4 Address-Last IPv4 Address> {enable | disable} default-lease <Lease in Seconds> max-lease <Maximal Lease in Seconds> default-gateway <Default Gateway IPv4 Address> domain <Domain Name for the DHCP Clients> dns <DNS Server IPv4 Address> |
delete dhcp server subnet <Subnet Entry> include-ip-pool <First IPv4 Address-Last IPv4 Address> exclude-ip-pool <First IPv4 Address-Last IPv4 Address> |
|
show dhcp server all status subnet <Subnet Entry> ip-pools subnets |
|
Important - After you add, configure, or delete features, run the " |
Parameters
Parameter |
Description |
---|---|
|
Specifies the IPv4 address of the DHCP subnet on an Ethernet interface of the Gaia Check Point security operating system that combines the strengths of both SecurePlatform and IPSO operating systems. device. Hosts behind the Gaia interface get IPv4 addresses from address pools in the subnet. For example: |
|
Specifies the IPv4 subnet mask in CIDR notation. For example: |
|
Specifies the IPv4 address that starts and the IPv4 address that ends the included allocated IP Pool range. For example: |
|
Specifies the IPv4 address that starts and the IPv4 address that ends the excluded allocated IP Pool range. For example: |
|
Specifies the range of IPv4 addresses to include in the IP pool. For example: |
|
Specifies the range of IPv4 addresses to exclude from the IP pool. For example: |
|
Enables the DHCP Server subnet, or the DHCP Server process (depending on the context). |
|
Disables the DHCP Server subnet, or the DHCP Server process (depending on the context). |
|
Specifies the default DHCP lease in seconds, for host IPv4 addresses. Applies only if DHCP clients do not request a unique lease time. If you do not enter a value, the default is 43,200 seconds. |
|
Specifies the maximal DHCP lease in seconds, for host IPv4 addresses. This is the longest lease available. If you do not enter a value, the configuration default is 86,400 seconds. |
|
Optional. Specifies the IPv4 address of the default gateway for the network hosts |
|
Optional. Specifies the domain name of the network hosts. For example: |
|
Optional. Specifies the DNS servers that the network hosts will use to resolve hostnames. Optionally, specify a primary, secondary and tertiary server in the order of precedence. For example: |
|
Shows all DHCP Server's configuration settings. |
|
Configures the DHCP Server subnet settings. |
|
The IP addresses pools in the DHCP Server subnet, and their status: Enabled or Disabled. |
|
The status of the DHCP Server process: Enabled or Disabled. |
Example
gaia> add dhcp server subnet 192.168.2.0 netmask 24 gaia> add dhcp server subnet 192.168.2.0 include-ip-pool start 192.168.2.20 end 192.168.2.90 gaia> add dhcp server subnet 192.168.2.0 include-ip-pool start 192.168.2.120 end 192.168.2.150 gaia> add dhcp server subnet 192.168.2.0 exclude-ip-pool start 192.168.2.155 end 192.168.2.254 gaia> set dhcp server subnet 192.168.2.0 include-ip-pool 192.168.2.20-192.168.2.90 enable gaia> set dhcp server subnet 192.168.2.0 include-ip-pool 192.168.2.120-192.168.2.150 disable gaia> set dhcp server subnet 192.168.2.0 exclude-ip-pool 192.168.2.155-192.168.2.254 enable gaia> set dhcp server subnet 192.168.2.0 default-lease 43200 gaia> set dhcp server subnet 192.168.2.0 max-lease 86400 gaia> set dhcp server subnet 192.168.2.0 default-gateway 192.168.2.103 gaia> set dhcp server subnet 192.168.2.0 domain example.com gaia> set dhcp server subnet 192.168.2.0 dns 192.168.2.101, 192.168.2.102, 192.168.2.103 gaia> set dhcp server subnet 192.168.2.0 enable |
gaia> add dhcp server subnet 172.30.4.0 netmask 24 gaia> add dhcp server subnet 172.30.4.0 include-ip-pool start 172.30.4.10 end 172.30.4.99 gaia> set dhcp server subnet 172.30.4.0 include-ip-pool 172.30.4.10-172.30.4.99 enable gaia> set dhcp server subnet 172.30.4.0 default-lease 43200 gaia> set dhcp server subnet 172.30.4.0 max-lease 86400 gaia> set dhcp server subnet 172.30.4.0 disable |
gaia> add dhcp server subnet 10.20.30.0 netmask 24 gaia> set dhcp server subnet 10.20.30.0 default-lease 43200 gaia> set dhcp server subnet 10.20.30.0 max-lease 86400 gaia> set dhcp server subnet 10.20.30.0 disable |
gaia> show dhcp server all DHCP Server Enabled DHCP-Subnet 192.168.2.0 State Enabled Net-Mask 24 Maximum-Lease 86400 Default-Lease 43200 Domain example.com Default Gateway 192.168.2.103 DNS 192.168.2.101, 192.168.2.102, 192.168.2.103 Pools (Include List) 192.168.2.20-192.168.2.90 : enabled 192.168.2.120-192.168.2.150 : disabled Pools (Exclude List) 192.168.2.155-192.168.2.254 : enabled DHCP-Subnet 172.30.4.0 State Disabled Net-Mask 24 Maximum-Lease 86400 Default-Lease 43200 Pools (Include List) 172.30.4.10-172.30.4.99 : enabled DHCP-Subnet 10.20.30.0 State Disabled Net-Mask 24 Maximum-Lease 86400 Default-Lease 43200 gaia> |