I want this dhcp server to provide the following information
- IP-address;
- tftp server name;
- bootfile name;
- hostname dhcp-server;
My /etc/dhcp/dhcpd.conf file:
Code: Select all
subnet 192.168.1.0 netmask 255.255.255. 0 {
range 192.168.1.2 192.168.1.254;
option subnet-mask 255.255.255.0;
next-server 192.168.1.1;
#DHCP option 67
option bootfile-name "RouterOS.conf";
option host-name "192.168.1.1";
option tftp-server-name "192.168.1.1";
default-lease-time 86400;
max-lease-time 86400;
}
Code: Select all
Message type: Boot Reply (2)
Hardware type: Ethernet
Hardware address length: 6
Hops: 0
Transaction ID: 0xd72f8ee1
Seconds elapsed: 2
Bootp flags: 0x8000 (Broadcast)
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 192.168.1.1 (192.168.1.2)
Next server IP address: 192.168.1.1 (192.168.1.1)
Relay agent IP address: 0.0.0.0 (0.0.0.0)
Client MAC address: Routerbo_bc:da:ae (00:0c:42:bc:da:ae)
Client hardware address padding: 000000000000000000
Server host name not given <----
Boot file name not given <----
Magic cookie: DHCP
Option: (t=53, l=1) DHCP Message Type = DHCP ACC
Option: (t=54, l=4) DHCP Server Identifier = 192.168.1.1
Option: (t=51, l=4) IP Address Lease Time = 1 day
Option: (t=1, l=4) Subnet Mask 255.255.255.0
Option: (t=3, l=4) Router = 192.168.1.1
End Option
Padding
It is a little outdated, but I need confirmation if RouterOS can be told where to find its configuration file (boot file) and where (TFTP server address).
Can I add an extra DHCP option in the option parameter request list of the isc-dhcp-server?