dhcp code for pxe server
- by avoq
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.