Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & 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 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 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 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 IP address.
vyatta@R1# set system static-host-mapping host-name R1 inet
Commit the change.
vyatta@R1# commit
Show the configuration.
vyatta@R1# show system static-host-mapping
host-name R1 {