Wednesday, 13 March 2013

DHCP server on vyatta

DHCP server

vyatta@R1#set interfaces ethernet eht1 address 192.168.0.254/24

IP range 

vyatta@R1# set service dhcp‐server shared‐network‐name TECHXPERT subnet
192.168.0.0/24 start 192.168.0.101 stop 192.168.0.199

Default Gateway 
vyatta@R1# set service dhcp‐server shared‐network‐name TECHXPERT subnet
192.168.0.0/24 default‐router 192.168.0.254

Primary DNS
vyatta@R1# set service dhcp‐server shared‐network‐name TECHXPERT subnet
192.168.0.0/24 dns‐server 8.8.8.8

Secondary  DNS

vyatta@R1# set service dhcp‐server shared‐network‐name TECHXPERT subnet
192.168.0.0/24 dns‐server 4.2.2.2


vyatta@R1# commit

DHCP Client 

vyatta@R2#set interfaces ethernet eht1 address 192.168.0.254/24

vyatta@R2# commit


No comments:

Post a Comment