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.

Configuring for networks directly connected to the system

This examples shows how to create three address pools.

  • dp0p1p1_POOL. This address pool serves the 172.16.0.0/24 subnet, which is connected to the dp0p1p1 interface. The lease time remains at the default, 24 hours (86,400 seconds). This address pool uses the DNS name server at 172.16.0.34.
  • dp0p1p2_30_POOL. This address pool serves the 10.10.30.0/24 subnet, which is connected directly to the dp0p1p2 interface. The lease time remains at the default, 24 hours (86,400 seconds). This address pool uses the DNS name server at 10.10.40.34, which is directly connected to dp0p1p2.40 (that is, dp0p1p2 virtual interface [vif] 40).
  • dp0p1p2_40_POOL. This address pool serves the 10.10.40.0/24 subnet, which is connected to the dp0p1p2.40 interface. The lease time remains at the default, 24 hours (86,400 seconds). This address pool uses the DNS name server at 10.10.40.34, which is connected to dp0p1p2.40.

In all these pools, the range of addresses is configured for .100 through .199.

Figure 1. DHCP address pool configuration
Table 1. Configuring DHCP address pools
Step Command

Create the configuration node for dp0p1p1_POOL on the 172.16.0.0/24 subnet. Specify the start and stop IP addresses for the pool.


vyatta@R1# set service dhcp-server shared-network-name dp0p1p1_POOL subnet 172.16.0.0/24 start 172.16.0.100 stop 172.16.0.199

Specify the default router for dp0p1p1_POOL.


vyatta@R1# set service dhcp-server shared-network-name dp0p1p1_POOL subnet 172.16.0.0/24 default-router 172.16.0.65

Specify a DNS server for dp0p1p1_POOL.


vyatta@R1# set service dhcp-server shared-network-name dp0p1p1_POOL subnet 172.16.0.0/24 dns-server 172.16.0.34

Create the configuration node for dp0p1p2_30_POOL on the 10.10.30.0/24 subnet. Specify the start and stop IP addresses for the pool.


vyatta@R1# set service dhcp-server shared-network-name dp0p1p2_30_POOL subnet 10.10.30.0/24 start 10.10.30.100 stop 10.10.30.199

Specify the default router for dp0p1p2_30_POOL.


vyatta@R1# set service dhcp-server shared-network-name dp0p1p2_30_POOL subnet 10.10.30.0/24 default-router 10.10.30.65

Specify a DNS server for dp0p1p2_30_POOL.


vyatta@R1# set service dhcp-server shared-network-name dp0p1p2_30_POOL subnet 10.10.30.0/24 dns-server 10.10.40.34

Create the configuration node for dp0p1p2_40_POOL on the 10.10.40.0/24 subnet. Specify the start and stop IP addresses for the pool.


vyatta@R1# set service dhcp-server shared-network-name dp0p1p2_40_POOL subnet 10.10.40.0/24 start 10.10.40.100 stop 10.10.40.199

Specify the default router for dp0p1p2_40_POOL.


vyatta@R1# set service dhcp-server shared-network-name dp0p1p2_40_POOL subnet 10.10.40.0/24 default-router 10.10.40.65

Specify a DNS server for dp0p1p2_40_POOL.


vyatta@R1# set service dhcp-server shared-network-name dp0p1p2_40_POOL subnet 10.10.40.0/24 dns-server 10.10.40.34

Commit the changes.


vyatta@R1# commit

Show the configuration.


vyatta@R1# show service dhcp-server
		shared-network-name dp0p1p1_POOL {
		subnet 172.16.0.0/24 {		
			default-router 172.16.0.65
			dns-server 172.16.0.34
			start 172.16.0.100 {
				stop 172.16.0.199
			}
		}
	}
	shared-network-name dp0p1p2_30_POOL {
		subnet 10.10.30.0/24 {
			default-router 10.10.30.65
			dns-server 10.10.40.34
			start 10.10.30.100 {
				stop 10.10.30.199
			}
		}
	}
	shared-network-name dp0p1p2_40_POOL {
		subnet 10.10.40.0/24 {
			default-router 10.10.40.65
			dns-server 10.10.40.34
			start 10.10.40.100 {
				stop 10.10.40.199
			}
		}
	}

Show the interface configuration.


vyatta@R1# show interfaces
 dataplane dp0p1p1 {
     address 172.16.0.65/24
     hw-id 00:0c:29:42:05:2b
 }
 dataplane dp0p1p2 {
     address 10.10.30.65/24
     hw-id 00:0c:29:42:05:35
     vif 40 {
         address 10.10.40.65/24
     }
 }