home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Creating a static mapping

Situations exist in which it makes sense to map a specific IP address to a specific host rather than dynamically assign an IP address from a pool of addresses. This mapping is known as a “static mapping.”

A static mapping is defined by using the static-mapping option of the service dhcp-server configuration node. The following example shows how to create a static mapping by associating the 172.16.0.101 IP address to the device with a MAC address of 00:15:c5:b3:2e:65.

Table 1. Creating a static mapping

Step

Command

Create a static mapping called lab and specify the static IP address.


vyatta@R1# set service dhcp-server static-mapping lab ip-address 172.16.0.101

Specify the associated MAC address within the lab static mapping.


vyatta@R1# set service dhcp-server static-mapping lab mac-address 00:15:c5:b3:2e:65

Commit the changes.


vyatta@R1# commit

Show the configuration.


vyatta@R1# show service dhcp-server
	static-mapping lab {
     ip-address 172.16.0.101
     mac-address 00:15:c5:b3:2e:65
 }