Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 6882  / 2 Years ago, fri, december 17, 2021, 5:48:19

I have setup-ed a PXE boot server for installing ubuntu via network. Currently i am using hosts mac address to install the ubuntu operating system. I would like to enable the DHCP server in all the subnets for example 172.29.34.0/24 172.29.36.0/24 etc.. instead of using its mac address. Please find my current configuration below,


DHCP Server Configuration:


allow booting;
allow bootp;
subnet 172.29.32.0 netmask 255.255.255.0 {
range 172.29.32.20 172.29.32.200;
option broadcast-address 172.29.1.255;
option routers 172.29.32.1;
}
group {
next-server 172.29.32.9;
filename "/pxelinux.0";
host webppc {
hardware ethernet BC:30:5B:C3:23:69;
option host-name "webppc";
}
}

More From » networking

 Answers
4

I can't guarantee it will work, but you could specify the options per subnet and not by group (though you'll lose assignment of the hostname - that's to be expected if you don't have a unique way (i.e. MAC) of identifying each system).



allow booting;
allow bootp;
subnet 172.29.32.0 netmask 255.255.255.0 {
next-server 172.29.32.9;
filename "/pxelinux.0";

range 172.29.32.20 172.29.32.200;
option broadcast-address 172.29.32.255;
option routers 172.29.32.1;
}
#Repeat this block for each subnet
subnet 172.29.34.0 netmask 255.255.255.0 {
next-server 172.29.32.9; #Note this is on another subnet.
filename "/pxelinux.0";

range 172.29.34.20 172.29.34.200;
option broadcast-address 172.29.34.255;
option routers 172.29.34.1;
}

[#40563] Sunday, December 19, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lishrag

Total Points: 306
Total Questions: 109
Total Answers: 125

Location: Saint Lucia
Member since Wed, Feb 8, 2023
1 Year ago
;