Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/dhcp-users or, via email, send a message with subject or body 'help' to dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. Re: omshell error - 9216 exceeds max (255) for precision (glenn.satch...@uniq.com.au) ---------------------------------------------------------------------- Message: 1 Date: Sun, 26 Apr 2020 02:05:04 +1000 From: glenn.satch...@uniq.com.au To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: omshell error - 9216 exceeds max (255) for precision Message-ID: <61f7be4c4935e0cf22b6560cc254f...@uniq.com.au> Content-Type: text/plain; charset=US-ASCII; format=flowed Hi Prasanth I'll think you need to write colon separated pairs of hex digits, the parser is expecting a two digit hex character there, eg 981 decimal = 0x3d5 >> set statements = "default-lease-time=03:d5;" and your earlier example, 9216 decimal = 0x2400 (hexadecimal) > set statements = "option routers=1:0:1:2; option interface-mtu=9216; try writing as: > set statements = "option routers=1:0:1:2; option interface-mtu=24:00;" More info in the omshell man page. regards, -glenn On 2020-04-25 19:14, prasanth ns wrote: >> On Tuesday, March 31, 2020, 02:53:24 PM PDT, Bill Shirley > <b...@c3po.polymerindustries.biz> wrote: > >> You're giving it an IPv4 address but the routers and > domain-name-servers options are IPv6 addresses. You're >> using a semi-colon as the separator instead of a dot. Generally, MTU > is 1,500 or less. > > Thanks Bill. Apologies for the delayed response. I corrected the IPs > as you suggested and tried to analyze the MTU issue a bit more. What I > noticed is that the issue is not just with the interface-mtu value, > but with any number you specify as part of the configuration on > omshell. Here is another way I reproduced it. This time with > default-lease-time. > > CASE1 > > # omshell >> connect > obj: <null> >> new group > obj: group >> set statements = "default-lease-time=100;" > obj: group > statements = "DEFAULT-LEASE-TIME=100;" >> create > obj: group > statements = "default-lease-time=100;" > name = "ng38b7aa9835b226c0" > > # cat /tmp/dhcpd.leases > # The format of this file is documented in the dhcpd.leases(5) manual > page. > # This lease file was written by isc-dhcp-4.4.2 > > # authoring-byte-order entry is generated, DO NOT DELETE > authoring-byte-order little-endian; > > group ng38b7aa9835b226c0 { > dynamic; > SUPERSEDE SERVER.DEFAULT-LEASE-TIME = 00; << INCORRECT > VALUE > } > > CASE 2 > > # omshell >> connect > obj: <null> >> new group > obj: group >> set statements = "DEFAULT-LEASE-TIME=99;" > obj: group > statements = "default-lease-time=99;" >> create > obj: group > statements = "default-lease-time=99;" > name = "ng38b7aac835b22c30" > > # cat /tmp/dhcpd.leases > # The format of this file is documented in the dhcpd.leases(5) manual > page. > # This lease file was written by isc-dhcp-4.4.2 > > # authoring-byte-order entry is generated, DO NOT DELETE > authoring-byte-order little-endian; > > group ng38b7aac835b22c30 { > dynamic; > SUPERSEDE SERVER.DEFAULT-LEASE-TIME = 99; << CORRECT > VALUE > } > > CASE 3 > > # omshell >> connect > obj: <null> >> new group > obj: group >> set statements = "DEFAULT-LEASE-TIME=981;" > obj: group > statements = "default-lease-time=981;" >> create > obj: group > statements = "default-lease-time=981;" > name = "ng38b7ab3935b23100" > > # cat /tmp/dhcpd.leases > # The format of this file is documented in the dhcpd.leases(5) manual > page. > # This lease file was written by isc-dhcp-4.4.2 > > # authoring-byte-order entry is generated, DO NOT DELETE > authoring-byte-order little-endian; > > group ng38b7ab3935b23100 { > dynamic; > supersede SERVER.DEFAULT-LEASE-TIME = 81; << INCORRECT > VALUE > } > > In all the 3 cases above JUST 2 LEAST SIGNIFICANT DIGITS APPEARED IN > THE LEASE FILE. In /var/log/messages I found these error messages. > > dhcpd: network client line 1: 100 exceeds max (255) for precision. > dhcpd: default-lease-time=100; > dhcpd: ^ > > dhcpd: network client line 1: 981 exceeds max (255) for precision. > > dhcpd: default-lease-time=981; > dhcpd: ^ > > Wondering if this is parser bug or my usage is incorrect. > > Thanks, > Prashanth > > Bill > > On 3/31/2020 10:02 AM, prasanth ns wrote: > >> > > Hi dhcp-users, > > I am trying to configure a host reservation through omshell. For some > reason dhcpd doesn't accept mtu and I see this error in syslog. Any > idea what is going wrong? > > "dhcpd: network client line 1: 9216 EXCEEDS MAX (255) FOR PRECISION. > dhcpd: option routers=1:0:1:2; option INTERFACE-MTU=9216;" > > Also my lease file shows incorrect MTU of 16 instead of 9216. > > # cat /tmp/dhcpd.leases > > host some-host { > dynamic; > hardware ethernet 00:82:67:85:b1:94; > fixed-address 192.168.4.40; > supersede routers = 01:00:01:02; > SUPERSEDE INTERFACE-MTU = 16; <<<<<< > supersede domain-name-servers = 02:01:00:05; > } > > # dhcpd --version > isc-dhcpd-4.4.2 > > Here are the commands I enter at omshell: > > new host > set name = "some-host" > set hardware-address = 00:82:67:85:b1:94 > set hardware-type = 1 > set ip-address = 192.168.4.40 > set statements = "option routers=1:0:1:2; option interface-mtu=9216; > option domain-name-servers = 02:01:00:05; " > create > > Thanks in advance, > Prashanth. > > _______________________________________________ > dhcp-users mailing list > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > > _______________________________________________ > dhcp-users mailing list > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users > _______________________________________________ > dhcp-users mailing list > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ Subject: Digest Footer _______________________________________________ dhcp-users mailing list dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 138, Issue 12 *******************************************