User guide
6
3)CPErequestsinitsLINUXBoot-upprocess,wherecongurationleisrequested:
Option: 53, 61, 60, 50, 54, 55, 1, 3, 28, 66, 67
custom configuration
WhentheOSissueadhcprequestalenameofacongurationlecanbesenttothenode.Thiscongu-
rationleisthendownloadedbytftpduringthebootprocessandissuedinsteadofthedefaultcongura-
tion. In this way it is possible to persist settings for each customer (by mapping the hardware address of
the node and the customer number).
Theserverandthelenameofthecongurationleshouldbesentinrespectivetftp-server-name(op-
tion66)andbootle-name(option67)fromthedhcpserver.Noticetheseoptionsaredifferentfromthe
bootle/bootserverusedinthebootpresponse.
Ifitisnotfeasiblethatthedhcpserverdistinguishthecustomer’scongurationsbaseonthehardware
addressanalternativemethodcanbeused.Thedhcpserversendsoutthenameofagenericcongura-
tion.Thiscongurationcanthenincludeinstructiontothenodeoffetchinganodespeciccongureby
tftpwheretherequestedlenameisacombinationofthenodehardwareaddress.
Inthegenericcongurationscript,whichiscommonforalldevicesandthatwillprovisionedduringboot
up, the following instructions can be inserted:
source /etc/dhcp.vars
export WAN_MACADDR=$(ip addr show dev eth0 | grep “ether” | cut -d “ “ -f6
| tr -d :)
tftp -g -r my_conf_$WAN_MACADDR -l /tmp/config.sh $TFTP_SERVER
save_configuration
source /tmp/config.sh