Vyatta Network OS Documentation

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

Default gateway

The following table shows how to specify a default gateway for the system at 172.16.0.254.

To specify the default gateway, perform the following steps in configuration mode.

Table 1. Setting the default gateway
Step Command
Specify the default gateway.
vyatta@R1# set protocols static route 0.0.0.0/0 next-hop 172.16.0.254
Commit the change.
vyatta@R1# commit
Show the configuration.
vyatta@R1# show protocols static

route 0.0.0.0/0 {  
     next-hop 172.16.0.254
}