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.

IP address

The IP address of the system can be statically mapped to its host name for local DNS purposes by using the system static-host-mapping command.

IP networks are specified in CIDR format—that is, in ip-address /prefix notation such as 192.168.12.0/24. For a single address, use dotted quad format, that is, a.b.c.d. For a network prefix, enter a decimal number from 1 through 32.

A good practice is to map the host name of the system to the loopback address because the loopback interface is the most reliable on the system. In this example, the loopback interface is given the 10.0.0.65 address. This address is configured for the loopback interface in the sample topology used in this guide.

The following table shows how to create a static mapping between the R1 host name and 10.0.0.65 IP address. The DNS server uses this IP address to resolve DNS requests for R1.mydomain.com.

To map the host name to the IP address, perform the following steps in configuration mode.

Table 1. Mapping the IP address of the system to its host name
Step Command
Map the R1 host name to the 10.0.0.65 IP address.
vyatta@R1# set system static-host-mapping host-name R1 inet 10.0.0.65
Commit the change.
vyatta@R1# commit
Show the configuration.
vyatta@R1# show system static-host-mapping
host-name R1 {
   inet 10.0.0.65
}