dhcp code for pxe server

Posted by avoq on Server Fault See other posts from Server Fault or by avoq
Published on 2014-06-05T21:17:13Z Indexed on 2014/06/05 21:26 UTC
Read the original article Hit count: 191

Filed under:
|

I'm trying to understand every single line of the following script but to no avail.

I'd be glad if someone could help me. For sure I know its purpose is to start the DHCP server as well as the TFTP...But I'm stuck:

killall dnsmasq 2>/dev/null
dnsmasq --enable-tftp 
--tftp-root=$PXEDATA/boot 
--dhcp-boot=pxelinux.0,"$IP",$IP
--dhcp-range=$(echo $IP | cut -d. -f1-3).50,$(echo $IP | cut -d. -f1-3).250,
infinite   
--dhcp-option=option:router,192.168.0.254 --log-dhcp

Why killall, why dnsmasq> 2 What does "2>" stand for?

"--" what does it mean?

Thanks a lot.

© Server Fault or respective owner

Related posts about linux

Related posts about bash