1
0
mirror of https://github.com/balkian/balkian.github.com.git synced 2024-11-05 11:31:42 +00:00
balkian.github.com/post/scripts/pxe.sh
2021-01-19 12:35:27 +01:00

10 lines
313 B
Bash

#/bin/bash
USER=j
IFNAME=enp62s0u1u3
BINARY=test.bin
ip address flush dev $IFNAME
ip address add 10.1.1.10/24 dev $IFNAME
dnsmasq -i $IFNAME --dhcp-range=10.1.1.50,10.1.1.100 \
--dhcp-boot=$BINARY \
--enable-tftp --tftp-root=/home/$USER/Downloads/pxe -d -u $USER -p0 -K --log-dhcp --bootp-dynamic