I needed a quick and easy DHCP server on a Vyatta at work and it is very simple to do and thought I would share it. The first thing we need to do is to log in our Vyatta router and enter the configure mode.
Your LAN interface will need an IP address in it. In this example we will use 192.168.1.0/24 since that is very common. Our vyatta router is 192.168.1.254 by the way.
The commands typed will be in bold. The # is just signifying a line as in the console.
# set service dhcp-server shared-network-name JaredTest subnet 192.168.1.0/24 start 192.168.1.5 stop 192.168.1.10
#set service dhcp-server shared-network-name JaredTest description "Give it a Description"
#set service dhcp-server shared-network-name JaredTest subnet 192.168.1.0/24 dns-server 192.168.1.1
#set service dhcp-server shared-network-name JaredTest subnet 192.168.1.0/24 domain-name domain.local
#set service dhcp-server shared-network-name JaredTest subnet 192.168.1.0/24 default-router 192.168.1.254
#commit
#save
That is pretty much it.
0 comments:
Post a Comment