Vyatta NOS documentation

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

Show Page Sections

Configure interfaces

How to understand and configure interfaces in the basic system configuration scenario.

The types and quantities of interfaces that you will need to configure depend upon your physical device and the topology of your network. However, almost every topology requires that you configure at least one Ethernet interface.

Vyatta NOS automatically discovers all physical interfaces at start time and creates configuration nodes for them.

Recall that in our reference topology at Example topology for basic system configuration, the data plane interface named dp0p1p1 faces the Internet. This configuration allows the system to reach the DNS server and default gateway through a default route that we configure.

Vyatta NOS also creates a 'loopback' interface automatically, at start time. This is a software interface pre-configured to the IP address 127.0.0.1/8. The loopback interface is always available, as long as the device is reachable.

This availability makes the loopback interface particularly useful to map to the system host name as a router ID in routing protocols like BGP and OSPF, or as a peer ID for internal BGP peers.


Configure an Internet-facing Ethernet interface

An example of how to configure an Internet-facing Ethernet interface for the basic configuration scenario.

  1. Use the set interfaces dataplane command to configure the interface.
    In this example we set the dp0p1p1 interface to use an IP address of 192.0.2.21 and a prefix length of 24.
    user@system# set interfaces dataplane dp0p1p1 address 192.0.2.21/24
  2. Commit your changes.
    user@system# commit
  3. Optional: Use the show interfaces command to view the configuration.
    user@system# show interfaces
    interfaces {
         dataplane dp0dp1dp1 {
             address 192.0.2.21/24
         }
         loopback lo {
     }
    [edit]
    user@system#

Configure a default route

An example of how to configure a default route for the basic configuration scenario.

  1. Use the set protocols static route command to configure a default route, to reach the the default gateway.
    In this example, we configure the default route with a next-hop address of 192.0.2.99.
    user@system# set protocols static route 0.0.0.0/0 next-hop 192.0.2.99
  2. Commit your changes.
    user@system# commit
  3. Optional: Use the show protocols command to view the configuration
    user@system# show protocols
    protocols {
         static {
             route 0.0.0.0/0 {
                 next-hop 192.0.2.99
             }
         }
     }     
    [edit]
    user@system#