Vyatta Network OS Documentation

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

Configuring the DHCP server

DHCP provides dynamic IP addresses to hosts on a specified subnet. In the Internet gateway scenario, the DHCP server provides addresses to hosts on the office LAN, which is attached to the dp0p1p2 interface.

Set up the DHCP server

For the DHCP server, define an address pool from 192.168.1.100 to 192.168.1.199 to dynamically assign addresses to hosts on the office LAN. In addition, set the default router and DNS server to the values that are assigned to hosts on the office LAN. The default router for these devices is the LAN-facing interface of the Internet gateway.


vyatta@R1# set service dhcp-server shared-network-name dp0p1p2_POOL subnet 192.168.1.0/24 start 192.168.1.100 stop 192.168.1.199
[edit]
vyatta@R1# set service dhcp-server shared-network-name dp0p1p2_POOL subnet 192.168.1.0/24 default-router 192.168.1.254
[edit]
vyatta@R1# set service dhcp-server shared-network-name dp0p1p2_POOL subnet 192.168.1.0/24 dns-server 12.34.56.100
[edit]
vyatta@R1# commit
[edit]
vyatta@R1# 

Here is this configuration.


vyatta@R1# show service dhcp-server
	shared-network-name dp0p1p2_POOL {
		subnet 192.168.1.0/24 {
			start 192.168.1.100 {
				stop 192.168.1.199
			}
			dns-server 12.34.56.100
			default-router 192.168.1.254
		}
	}
[edit]
vyatta@R1#