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

In the basic system scenario, an Internet-facing Ethernet interface is configured. To act as an Internet gateway, the system needs an additional Ethernet interface that faces the office LAN. The example employs the dp0p1p2 interface as the interface to the LAN.

Configure the office LAN-facing Ethernet interface

Assign the 192.168.1.254 IP address to the dp0p1p2 interface with a prefix length of 24, which is the prefix length of the office subnet.


vyatta@R1# set interfaces dataplane dp0p1p2 address 192.168.1.254/24
[edit]
vyatta@R1# commit
[edit]
vyatta@R1# 

            

Here are the interfaces that are configured now.


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