Static IP via Option 82 - methodology

perl-list perl-list at network1.net
Wed Jan 22 17:25:11 UTC 2014


The problem, I am assuming here, seems to be that the initial DISCOVER - OFFER - REQUEST - ACK at some point fails to include the option 82 circuit-id data in the return to the relay agent using the host statement method. I'll break it down simply: 

Working method: 
---------------------------------- 

class "10-24-24-9" { 
match if option agent.circuit-id = "1.21.1.4/Ethernet9"; 
} 

subnet 10.24.24.0 netmask 255.255.255.0 { 
option routers 10.24.24.1; 
option subnet-mask 255.255.255.0; 
pool { 
server-name "192.168.0.12"; 
filename "SomeCFG.cfg"; 
deny dynamic bootp clients; 
allow members of "10-24-24-9"; 
range 10.24.24.9; 
} 

} 
---------------------------------- 

Non-working method: 
---------------------------------- 

subnet 10.24.24.0 netmask 255.255.255.0 { 
option routers 10.24.24.1; 
option subnet-mask 255.255.255.0; 

} 

host 10-24-24-9 { 
host-identifier option agent.circuit-id "1.21.1.4/Ethernet9"; 
fixed-address 10.24.24.9; 
} 
---------------------------------- 

oh man - i think I just realized why this didn't work. No TFTP file/server available. So now I have new questions as I didn't think about this before. 

Can I put 'server-name "192.168.0.12";' in the subnet {} statement or does that have to be inside a pool {} statement? 

Can I put 'filename "SomeCFG.cfg";' in the host {} declaration as we need different filenames for different hosts? 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20140122/501f00d5/attachment.html>


More information about the dhcp-users mailing list