Vyatta Network OS Documentation

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

Configuring interfaces

The kind and number of interfaces you configure depend on your physical device and the topology of your network. However, almost every topology requires that at least one Ethernet interface is configured.Vyatta NOS automatically discovers all physical interfaces on startup and creates configuration nodes for them.

In this basic scenario, the dp0p1p1 data plane interface is configured as an Internet-facing interface. This configuration allows the system to reach the DNS server and default gateway through a default route configured in subsequent steps.

The loopback interface, which is a software interface, is also automatically created on startup, preconfigured to the 127.0.0.1/8 IP address. The loopback interface is always available as long as the device can be reached. This availability makes the loopback interface particularly useful for mapping to the system host name as a router ID in routing protocols, such as BGP and OSPF, or as a peer ID for internal BGP peers.

Configure an Internet-facing Ethernet interface

Configure the dp0p1p1interface with an IP address of 192.0.2.21 and a prefix length of 24.


vyatta@R1# set interfaces dataplane dp0p1p1 address 192.0.2.21/24
[edit]
vyatta@R1# commit
[edit]
vyatta@R1# 

            

To view the configuration, use the show interfaces command.


vyatta@R1# show interfaces
 interfaces {
     dataplane dp0dp1dp1 {
         address 192.0.2.21/24
     }
     loopback lo {
 }
[edit]
vyatta@R1#

            

Configuring a default route

To reach the default gateway, configure a default route with the next-hop address of 192.0.2.99.


vyatta@R1# set protocols static route 0.0.0.0/0 next-hop 192.0.2.99
[edit]
vyatta@R1# commit
[edit]
vyatta@R1# 

            

To view the configuration, use the show protocols command.


vyatta@R1# show protocols
 protocols {
     static {
         route 0.0.0.0/0 {
             next-hop 192.0.2.99
         }
     }
 }     
[edit]
vyatta@R1#