|
| 1 | +{% block banner %} |
| 2 | +# =============== Managed by SONiC Config Engine DO NOT EDIT! =============== |
| 3 | +# generated from /usr/share/sonic/templates/dhclient.conf.j2 using sonic-cfggen |
| 4 | +# file: /etc/dhcp/dhclient.conf |
| 5 | +# |
| 6 | +{% endblock banner %} |
| 7 | +# Configuration file for /sbin/dhclient, which is included in Debian's |
| 8 | +# dhcp3-client package. |
| 9 | +# |
| 10 | +# This is a sample configuration file for dhclient. See dhclient.conf's |
| 11 | +# man page for more information about the syntax of this file |
| 12 | +# and a more comprehensive list of the parameters understood by |
| 13 | +# dhclient. |
| 14 | +# |
| 15 | +# Normally, if the DHCP server provides reasonable information and does |
| 16 | +# not leave anything out (like the domain name, for example), then |
| 17 | +# few changes must be made to this file, if any. |
| 18 | +# |
| 19 | + |
| 20 | +option rfc3442-classless-static-routes code 121 = array of unsigned integer 8; |
| 21 | +option snmp-community code 224 = text; |
| 22 | +option minigraph-url code 225 = text; |
| 23 | +option acl-url code 226 = text; |
| 24 | +option tftp-server-name code 66 = text; |
| 25 | +option bootfile-name code 67 = text; |
| 26 | +option user-class code 77 = text; |
| 27 | +option provisioning-script-url code 239 = text; |
| 28 | +option dhcp6.user-class code 15 = text; |
| 29 | +option dhcp6.provisioning-script-url code 239 = text; |
| 30 | +option dhcp6.boot-file-url code 59 = text; |
| 31 | + |
| 32 | +send host-name = gethostname(); |
| 33 | +request subnet-mask, broadcast-address, time-offset, routers, |
| 34 | + domain-name, domain-name-servers, domain-search, host-name, |
| 35 | + dhcp6.name-servers, dhcp6.domain-search, interface-mtu, dhcp6.fqdn, |
| 36 | + rfc3442-classless-static-routes, ntp-servers, log-servers, |
| 37 | +{%- if ZTP is defined and ZTP_DHCP_DISABLED is not defined -%}bootfile-name, provisioning-script-url, tftp-server-name, |
| 38 | + dhcp6.provisioning-script-url, dhcp6.boot-file-url,{%- endif -%} |
| 39 | + snmp-community, minigraph-url, acl-url; |
| 40 | +{% if ZTP is defined and ZTP_DHCP_DISABLED is not defined %} |
| 41 | +send user-class "SONiC-ZTP"; |
| 42 | +send dhcp6.user-class "SONiC-ZTP"; |
| 43 | +send dhcp-client-identifier "SONiC##{{ ZTP['mode']['product-name'] }}##{{ ZTP['mode']['serial-no'] }}"; |
| 44 | +retry 60; |
| 45 | +{% endif %} |
0 commit comments