Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

service dhcp-server static-mapping <mapname> static-mapping-parameters <params>

Specifies additional static-mapping parameters for a DHCP server.

set service dhcp-server static-mapping mapname static-mapping-parameters params
delete service dhcp-server static-mapping mapname static-mapping-parameters params
show service dhcp-server static-mapping mapname static-mapping-parameters
mapname
Optional. Multinode. Allows you to statically map an IP address within an address pool to the MAC address of a device on the network.

You can define multiple static mappings of this type by creating multiple static-mapping configuration nodes.

params
A string of parameters to be used by the DHCP server. The string must be enclosed in single quotation marks (’).

Configuration mode


service {
    dhcp-server {
        static-mapping mapname {
        static-mapping-parameters params
        }	
    }
}
Note:

This feature is advanced and should be used by only expert users in special situations.

Use this command to specify additional static-mapping parameters for a DHCP server that are not available with the service dhcp-server commands. The Vyatta DHCP server commands are a subset of those that are available for DHCP server configuration. This command provides access to all DHCP server configuration parameters. More information regarding DHCP server configuration is located on the dhcpd.conf man page. To access the page, type the following at the Vyatta command prompt:

man dhcpd.conf

The Vyatta router does no validation before passing the parameter string to the DHCP server process (dhcpd). Because of this nonvalidation, it is imperative that the syntax described in the dhcpd.conf documentation be strictly followed. Failure to do so could result in a failure of the DHCP server. It is advisable to check the system log for errors when using these parameter strings. In addition, the show system processes command determines if the dhcpd process is still running.

The scope of these parameters is for the specified map name. They apply to all static-mappings within this scope unless parameters with a narrower scope are specified by using the static-mapping-parameters version of this command.

Multiple parameter strings can be specified. Each parameter string that is specified adds a separate line to the dhcpd.conf file.

Use the set form of this command to specify additional static-mapping parameters for a DHCP server.

Use the delete form of this command to remove additional static-mapping parameters from a DHCP server.

Use the show form of this command to display the additional static-mapping parameters for a DHCP server.