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.

Configure the DHCP server

DHCP provides dynamic IP addresses to hosts on a specified subnet. Recall that in our reference topology at Example topology for Internet gateway configuration:
  • The DHCP server provides addresses to hosts on the office LAN
  • The office LAN is attached to the interface named dp0p1p2
  1. 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.
    user@system# 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
  2. Set the default router/gateway and DNS server to the values that match hosts on the office LAN.
    The default router for these devices is the LAN-facing interface of the Internet gateway.
    user@system# set service dhcp-server shared-network-name dp0p1p2_POOL subnet 192.168.1.0/24 default-router 192.168.1.254
    user@system# set service dhcp-server shared-network-name dp0p1p2_POOL subnet 192.168.1.0/24 dns-server 12.34.56.100
  3. Commit your changes.
    user@system# commit
  4. Optional: Use the show service dhcp-server command to view the configuration.
    user@system# 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]
    user@system#