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 IPv6 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 map the 2001:db8:100::101 IP address to the device with a MAC address of 00:0c:29:34:91:45.

Table 1. Creating a static mapping

Step

Command

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


vyatta@R1#set service dhcpv6-server static-mapping lab ipv6-address 2001:db8:100::101

Specify the host identifier string ( "00:0c:29:34:91:45"- 6 bytes of host MAC address) within the static mapping called lab.


vyatta@R1#set service dhcpv6-server static-mapping lab identifier 00:0c:29:34:91:45

Commit the information.


vyatta@R1# commit

Show the configuration.


vyatta@R1# show service dhcp-server shared-network-name LAB-NET
       static-mapping lab
   {
       ipv6-address 2001:db8:100::101
       identifier 00:0c:29:34:91:45
   }