Operation: | Add IPv4 DHCP Server / Edit IPv4 DHCP Server
Description: | To Add/Update IPv4 DHCP Server.

Sample Configuration
    	<DHCPServer>
    		<Name>Name</Name>
    		<Interface>PortA</Interface>
    		<UseInterfaceIPasGateway>UseInterfaceIPAsGateway/ANY</UseInterfaceIPasGateway>
    		<IPLease>
    			<IP>StartIPAddress-EndIPAddress</IP>
    			:
    		</IPLease>
    		<ConflictDetection>Disable</ConflictDetection>
    		<StaticLease>
    			<Lease>
    				<HostName>host</HostName>
    				<MACAddress>mac</MACAddress>
    				<IPAddress>ip</IPAddress>
    			</Lease>
    			:
    		</StaticLease>
    	<!-- for IPV4 only-->
    		<SubnetMask>128.0.0.0</SubnetMask>
    		<DomainName>name</DomainName>
    		<Gateway>{IPAddress}</Gateway>
    		<DefaultLeaseTime>1440</DefaultLeaseTime>
    		<MaxLeaseTime>2880</MaxLeaseTime>
    		<ConflictDetection>Enable/Disable</ConflictDetection>
    		<UseApplianceDNSSettings>Enable</UseApplianceDNSSettings>
    		<!-- Use this tag when above tag has value disabled -->
    		<PrimaryDNSServer>DNSIPAddress</PrimaryDNSServer>
    		<SecondaryDNSServer>DNSIPAddress</SecondaryDNSServer>
    		<PrimaryWINSServer>ipaddress</PrimaryWINSServer>
    		<SecondaryWINSServer>ipaddress</SecondaryWINSServer>
    	</DHCPServer>

Attribute/Parameter Information :

Parameter | Mandatory | Default | Description
--- | --- | --- | ---
Name | Yes |  | Description: Specify name for DHCP Server. Name confines to: Type is 'SCALAR'. Datatype is 'STRING'. Comma (,) is not allowed. Maximum characters allowed are 50. UTF-8 character(s) are allowed.
Interface | No |  | Description: Select interface on which DHCP Service is to be configured. Interface confines to: Type is 'SCALAR'. Datatype is 'STRING'.
IP | No |  | Description: Specify IP Address range from which DHCP Server will assign addresses to the clients. IP confines to: Type is 'ARRAY'. Datatype is 'STRING'. Maximum characters allowed are 50. Multiple values are allowed. Note: This option is available if the lease type selected is 'Dynamic'.
HostName | No |  | Description: Specify host name if lease type selected is 'Static' where specific IP addresses are assigned to the clients. HostName confines to: Type is 'ARRAY'. Datatype is 'STRING'. Multiple values are allowed.
MACAddress | No |  | Description: Specify MAC Address for defining MAC-IP mapping if lease type is 'Static'. MACAddress confines to: Type is 'ARRAY'. Datatype is 'MACADDRESS'. Maximum characters allowed are 17. Multiple values are allowed.
IPAddress | No |  | Description: Specify IP Address for MAC-IP mapping for 'Static' lease type. IPAddress confines to: Type is 'ARRAY'. Datatype is 'IPADDRESS'. Maximum characters allowed are 15. Multiple values are allowed. Duplicate values will not be ignored. IP Class other than 'MULTICAST', 'RESERVED', 'LOCALHOST', 'UNSPECIFIED', 'BROADCAST', 'LINKLOCAL' is allowed.
SubnetMask | Yes |  | Description: Select the Subnet mask for the Server. SubnetMask confines to: Type is 'SCALAR'. Datatype is 'IPADDRESS'. Maximum characters allowed are 15.
UseInterfaceIPasGateway | No | Disable | Description: Select to use interface IP as gateway. UseInterfaceIPasGateway confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only 'on' are allowed.
Gateway | Yes |  | Description: Specify IP Address for default gateway, if Use Interface IP as Gateway is not selected. Gateway confines to: Type is 'SCALAR'. Datatype is 'IPADDRESS'. Maximum characters allowed are 15.
DefaultLeaseTime | Yes | 1440 | Description: Specify Default Lease Time in minutes. DefaultLeaseTime confines to: Type is 'SCALAR'. Datatype is 'INTEGER'. Range 1 to 43200 is allowed. Maximum digits allowed are 5.
MaxLeaseTime | Yes | 2880 | Description: Specify Maximum Lease Time in minutes after which DHCP Clients must ask Server for new settings. MaxLeaseTime confines to: Type is 'SCALAR'. Datatype is 'INTEGER'. Range 1 to 43200 is allowed. Maximum digits allowed are 5.
UseApplianceDNSSettings | No | Enable | Description: Enable to use Appliance DNS Settings. UseApplianceDNSSettings confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only 'on' are allowed.
PrimaryDNSServer | No |  | Description: Provide Primary DNS Server IP Address if appliance DNS Server is not to be used. PrimaryDNSServer confines to: Type is 'SCALAR'. Datatype is 'IPADDRESS'. Maximum characters allowed are 15. IP Class other than 'MULTICAST', 'RESERVED', 'LOCALHOST', 'UNSPECIFIED', 'BROADCAST', 'LINKLOCAL' is allowed.
SecondaryDNSServer | No |  | Description: Provide Secondary DNS Server IP Address if appliance DNS Server is not be used. SecondaryDNSServer confines to: Type is 'SCALAR'. Datatype is 'IPADDRESS'. Maximum characters allowed are 15. IP Class other than 'MULTICAST', 'RESERVED', 'LOCALHOST', 'UNSPECIFIED', 'BROADCAST', 'LINKLOCAL' is allowed.
PrimaryWINSServer | No |  | Description: Specify IP Address of Primary WINS Server. PrimaryWINSServer confines to: Type is 'SCALAR'. Datatype is 'IPADDRESS'. Maximum characters allowed are 15.
SecondaryWINSServer | No |  | Description: Specify IP Address of Secondary WINS Server. SecondaryWINSServer confines to: Type is 'SCALAR'. Datatype is 'IPADDRESS'. Maximum characters allowed are 15.
ConflictDetection | No |  | Description: Enable to check IP before leasing to avoid leasing out repetitive IP addresses. ConflictDetection confines to: Type is 'SCALAR'. Datatype is 'STRING'. Only 'on' are allowed.
DomainName | No |  | Description: Specify domain name which will be assigned to the DHCP Clients. DomainName confines to: Type is 'SCALAR'. Datatype is 'STRING'. Words to be separated by DOT(.). Maximum characters allowed are 250.

Status Message Information :

Operation | Status | Message
--- | --- | ---
Edit IPv4 DHCP Server | 200 |
Edit IPv4 DHCP Server | 500 |
Edit IPv4 DHCP Server | 505 |
Edit IPv4 DHCP Server | 541 |
Edit IPv4 DHCP Server | 542 |
Edit IPv4 DHCP Server | 543 |
Edit IPv4 DHCP Server | 544 |
Edit IPv4 DHCP Server | 545 |
Edit IPv4 DHCP Server | 546 |
Edit IPv4 DHCP Server | 547 |
Add IPv4 DHCP Server | 200 |
Add IPv4 DHCP Server | 500 |
Add IPv4 DHCP Server | 502 |
Add IPv4 DHCP Server | 503 |
Add IPv4 DHCP Server | 505 |
Add IPv4 DHCP Server | 541 |
Add IPv4 DHCP Server | 542 |
Add IPv4 DHCP Server | 543 |
Add IPv4 DHCP Server | 544 |
Add IPv4 DHCP Server | 545 |
Add IPv4 DHCP Server | 546 |
Add IPv4 DHCP Server | 547 |

) Copyright 2015 Sophos Limited. All rights reserved.
Sophos is registered trademarks of Sophos Limited and Sophos Group. All other product and company names mentioned are trademarks or registered trademarks of their respective owners.No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording or otherwise unless you are either a valid licensee where the documentation can be reproduced in accordance with the license terms or you otherwise have the prior permission in writing of the copyright owner.