Opened 3 years ago

Last modified 3 years ago

#5169 new defect

Option 66 and Option 67 not passed in an offer

Reported by: dwalden Owned by:
Priority: medium Milestone: Outstanding Tasks
Component: Unclassified Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

A DHCP Offer to a CMTS does not include the TFTP Server option 66 and Boot File option 67. Below is my configuration file.

# This is a basic configuration for the Kea DHCPv4 and DHCPv6 servers.
# Subnet declarations are commented out and no interfaces are listed.
# Therefore, the servers will not listen or respond to any queries.
# The basic configuration must be extended to specify interfaces on
# which the servers should listen. Also, subnets and options must be
# declared.
{

# DHCPv4 configuration starts here.
"Dhcp4":
{
# Add names of interfaces to listen on.

"interfaces-config": {

"interfaces": [ "ens33" ]

# "dhcp-socket-type": "udp"

},

# Use Memfile lease database backend to store leases in a CSV file.

"lease-database": {

"type": "mysql",
"name": "keadhcp",
"host": "127.0.0.1",
"user": "kea",
"password": "Bella3!404"

},

# Setup reclamation of the expired leases and leases affinity.
# Expired leases will be reclaimed every 10 seconds. Every 25
# seconds reclaimed leases, which have expired more than 3600
# seconds ago, will be removed. The limits for leases reclamation
# are 100 leases or 250 ms for a single cycle. A warning message
# will be logged if there are still expired leases in the
# database after 5 consecutive reclamation cycles.

"expired-leases-processing": {

"reclaim-timer-wait-time": 10,
"flush-reclaimed-timer-wait-time": 25,
"hold-reclaimed-time": 3600,
"max-reclaim-leases": 100,
"max-reclaim-time": 250,
"unwarned-reclaim-cycles": 5

},

# Global (inherited by all subnets) lease lifetime is mandatory parameter.

"valid-lifetime": 4000,

# Below an example of the simple subnet declaration. Uncomment to
# enable it. This is a list, denoted with [ ], of structure, denoted
# with { }. Each structure describes a single subnet and may have
# several parameters. One of those parameters is "pools" that is
# also a list of structures.

"subnet4": [

{

"subnet": "172.17.1.0/24",
"pools": [ { "pool": "172.17.1.128 - 172.17.1.150" } ],
"option-data": [

{

"name": "domain-name-servers",
"code": 6,
"space": "dhcp4",
"csv-format": true,
"data": "8.8.8.8, 8.8.4.4"

},
{

"name": "routers",
"code": 3,
"space": "dhcp4",
"csv-format": true,
"data": "172.17.1.1"

},

]

},
{

"subnet": "172.17.2.0/24",
"pools": [ { "pool": "172.17.2.2 - 172.17.2.254" } ],

# "client-class": "VENDOR_CLASS_docsis3.0:",

"next-server": "172.17.1.10",
"relay": { "ip-address": "172.17.2.1" },
"option-data": [

{

"name": "routers",
"code": 3,
"space": "dhcp4",
"csv-format": true,
"data": "172.17.2.1"

},
{

"name": "tftp-server-name",
"code": 66,
"data": "172.17.1.10"

},
{

"name": "boot-file-name",
"code": 67,
"data": "testmodemgateway.cfg"

},
{

"name": "broadcast-address",
"data": "172.17.2.255"

},
{

"name": "log-servers",
"data": "172.17.1.10"

},

# {
# "name": "time-offset",
# "data": "-10800"
# },

{

"name": "time-servers",
"data": "172.17.1.10"

},
{

"name": "domain-name-servers",
"data": "8.8.8.8"

}

]

},
{

"subnet": "172.17.3.0/24",
"pools": [ { "pool": "172.17.3.2 - 172.17.3.254" } ],
"relay": { "ip-address": "172.17.3.1" },
"option-data": [

{

"name": "domain-name-servers",
"code": 6,
"space": "dhcp4",
"csv-format": true,
"data": "8.8.8.8, 8.8.4.4"

},
{

"name": "routers",
"code": 3,
"space": "dhcp4",
"csv-format": true,
"data": "172.17.3.1"

},

]

}

]

},

# DHCPv6 configuration starts here.
"Dhcp6":
{
# Add names of interfaces to listen on.

"interfaces-config": {

"interfaces": [ ]

},

# Use Memfile lease database backend to store leases in a CSV file.

"lease-database": {

"type": "memfile"

},

# Setup reclamation of the expired leases and leases affinity.
# Expired leases will be reclaimed every 10 seconds. Every 25
# seconds reclaimed leases, which have expired more than 3600
# seconds ago, will be removed. The limits for leases reclamation
# are 100 leases or 250 ms for a single cycle. A warning message
# will be logged if there are still expired leases in the
# database after 5 consecutive reclamation cycles.

"expired-leases-processing": {

"reclaim-timer-wait-time": 10,
"flush-reclaimed-timer-wait-time": 25,
"hold-reclaimed-time": 3600,
"max-reclaim-leases": 100,
"max-reclaim-time": 250,
"unwarned-reclaim-cycles": 5

},

# Addresses will be assigned with preferred and valid lifetimes
# being 3000 and 4000, respectively. Client is told to start
# renewing after 1000 seconds. If the server does not respond
# after 2000 seconds since the lease was granted, client is supposed
# to start REBIND procedure (emergency renewal that allows switching
# to a different server).

"preferred-lifetime": 3000,
"valid-lifetime": 4000,
"renew-timer": 1000,
"rebind-timer": 2000,

# The following list defines subnets. Uncomment to enable them.

"subnet6": [

# { "subnet": "2001:db8:1::/64",
# "pools": [ { "pool": "2001:db8:1::/80" } ] },
# { "subnet": "2001:db8:2::/64",
# "pools": [ { "pool": "2001:db8:2::/80" } ] },
# { "subnet": "2001:db8:3::/64",
# "pools": [ { "pool": "2001:db8:3::/80" } ] },
# { "subnet": "2001:db8:4::/64",
# "pools": [ { "pool": "2001:db8:4::/80" } ] }

]

},

# DHCP DDNS configuration starts here.
"DhcpDdns?":
{

"ip-address": "127.0.0.1",
"port": 53001,
"tsig-keys": [],
"forward-ddns" : {},
"reverse-ddns" : {}

},

# Logging configuration starts here. It tells Kea servers to store
# all log messages (on severity INFO or more) in a file.
# debuglevel variable is used on DEBUG level only.
"Logging":
{

"loggers": [

{

"name": "kea-dhcp4",
"output_options": [

{

"output": "var/log/kea-dhcp4.log"

}

],
"severity": "DEBUG",
"debuglevel": 99

},
{

"name": "kea-dhcp6",
"output_options": [

{

"output": "var/log/kea-dhcp6.log"

}

],
"severity": "INFO",
"debuglevel": 0

},
{

"name": "kea-dhcp-ddns",
"output_options": [

{

"output": "var/log/kea-ddns.log"

}

],
"severity": "INFO",
"debuglevel": 0

}

]

}

}

Subtickets

Change History (1)

comment:1 Changed 3 years ago by hschempf

  • Milestone changed from Kea-proposed to Outstanding Tasks

Per 9 Mar team meeting, move to outstanding

Note: See TracTickets for help on using tickets.