From 5061ea54ee76fce3c0318f19dc03fbb0349cd3db Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 20 Oct 2025 02:04:57 +0100 Subject: [PATCH] Reorganised DHCP into categories --- src/lib/constants/nav.ts | 834 +++++++++--------- .../options/freeform-tlv/+page.svelte | 0 .../option119-domain-search/+page.svelte | 0 .../option121-classless-routes/+page.svelte | 0 .../option150-tftp-server}/+page.svelte | 0 .../option43-vendor-specific}/+page.svelte | 0 .../option60-vendor-class}/+page.svelte | 0 .../options/option61-clientid}/+page.svelte | 0 .../option82-relay-agent}/+page.svelte | 0 .../options/pxe-boot-profile}/+page.svelte | 0 .../identity/duid-generator/+page.svelte | 0 .../identity/iaid-calculator/+page.svelte | 0 .../+page.svelte | 0 13 files changed, 433 insertions(+), 401 deletions(-) rename src/routes/dhcp/{ => v4}/options/freeform-tlv/+page.svelte (100%) rename src/routes/dhcp/{ => v4}/options/option119-domain-search/+page.svelte (100%) rename src/routes/dhcp/{ => v4}/options/option121-classless-routes/+page.svelte (100%) rename src/routes/dhcp/{options/option150-tftp => v4/options/option150-tftp-server}/+page.svelte (100%) rename src/routes/dhcp/{option-43 => v4/options/option43-vendor-specific}/+page.svelte (100%) rename src/routes/dhcp/{option-60-builder => v4/options/option60-vendor-class}/+page.svelte (100%) rename src/routes/dhcp/{identity/clientid-option61 => v4/options/option61-clientid}/+page.svelte (100%) rename src/routes/dhcp/{options/option82-builder => v4/options/option82-relay-agent}/+page.svelte (100%) rename src/routes/dhcp/{options/pxe-profile => v4/options/pxe-boot-profile}/+page.svelte (100%) rename src/routes/dhcp/{ => v6}/identity/duid-generator/+page.svelte (100%) rename src/routes/dhcp/{ => v6}/identity/iaid-calculator/+page.svelte (100%) rename src/routes/dhcp/v6/options/{dns-search-rfc3646 => option23-24-dns}/+page.svelte (100%) diff --git a/src/lib/constants/nav.ts b/src/lib/constants/nav.ts index a8ae766..9fe80aa 100644 --- a/src/lib/constants/nav.ts +++ b/src/lib/constants/nav.ts @@ -802,416 +802,448 @@ export const SUB_NAV: Record = { ], '/dhcp': [ { - href: makePath('/dhcp/option-43'), - label: 'Option 43 Generator', - description: 'Generate DHCP Option 43 for wireless controller discovery (Cisco, Aruba, Ruckus, UniFi)', - icon: 'router', - featured: true, - keywords: [ - 'dhcp', - 'option', - '43', - 'wireless', - 'controller', - 'cisco', - 'catalyst', - 'meraki', - 'aruba', - 'ruckus', - 'smartzone', - 'zonedirector', - 'unifi', - 'extreme', - 'vendor-specific', - 'ap', - 'discovery', - 'capwap', - 'lwapp', - 'access point', - 'wlc', + title: 'DHCPv4 Options', + description: 'DHCPv4 option generators and builders', + items: [ + { + href: makePath('/dhcp/v4/options/option43-vendor-specific'), + label: 'Option 43 - Vendor Specific', + description: 'Generate DHCP Option 43 for wireless controller discovery (Cisco, Aruba, Ruckus, UniFi)', + icon: 'router', + featured: true, + keywords: [ + 'dhcp', + 'dhcpv4', + 'option', + '43', + 'wireless', + 'controller', + 'cisco', + 'catalyst', + 'meraki', + 'aruba', + 'ruckus', + 'smartzone', + 'zonedirector', + 'unifi', + 'extreme', + 'vendor-specific', + 'ap', + 'discovery', + 'capwap', + 'lwapp', + 'access point', + 'wlc', + ], + }, + { + href: makePath('/dhcp/v4/options/option60-vendor-class'), + label: 'Option 60 - Vendor Class', + description: + 'Build vendor class identifiers for DHCP class-based policies (ISC, Kea, Windows, dnsmasq, MikroTik)', + icon: 'tools', + keywords: [ + 'dhcp', + 'dhcpv4', + 'option', + '60', + 'vendor', + 'class', + 'identifier', + 'vci', + 'policy', + 'isc', + 'kea', + 'windows', + 'dnsmasq', + 'mikrotik', + 'cisco', + 'phones', + 'pxe', + 'boot', + 'aruba', + 'ruckus', + 'unifi', + 'class-based', + 'scopes', + ], + }, + { + href: makePath('/dhcp/v4/options/option61-clientid'), + label: 'Option 61 - Client ID', + description: + 'Build and decode DHCPv4 Client Identifier: hardware type + MAC address or arbitrary opaque data per RFC 2132', + icon: 'id-card', + keywords: [ + 'dhcp', + 'dhcpv4', + 'client', + 'identifier', + 'option', + '61', + 'hardware', + 'type', + 'mac', + 'address', + 'opaque', + 'decode', + 'encode', + 'rfc', + '2132', + 'kea', + 'isc', + 'dhcpd', + 'configuration', + ], + }, + { + href: makePath('/dhcp/v4/options/option82-relay-agent'), + label: 'Option 82 - Relay Agent', + description: 'Construct and parse DHCP Relay Agent Information with Circuit-ID, Remote-ID, and VLAN formats', + icon: 'tools', + keywords: [ + 'dhcp', + 'dhcpv4', + 'option', + '82', + 'relay', + 'agent', + 'information', + 'circuit-id', + 'remote-id', + 'vlan', + 'builder', + 'parser', + 'suboption', + 'tlv', + 'acl', + 'policy', + 'cisco', + 'kea', + 'isc', + 'network', + 'infrastructure', + ], + }, + { + href: makePath('/dhcp/v4/options/option119-domain-search'), + label: 'Option 119 - Domain Search', + description: + 'Encode and decode Domain Search List (RFC 3397/6731) to/from RFC 1035 wire format with domain compression', + icon: 'globe', + keywords: [ + 'dhcp', + 'dhcpv4', + 'option', + '119', + 'domain', + 'search', + 'list', + 'rfc', + '3397', + '6731', + '1035', + 'wire', + 'format', + 'compression', + 'encoder', + 'decoder', + 'isc', + 'kea', + 'dns', + 'suffix', + 'client', + 'configuration', + ], + }, + { + href: makePath('/dhcp/v4/options/option121-classless-routes'), + label: 'Option 121/249 - Classless Routes', + description: + 'Encode and decode Classless Static Routes (RFC 3442 / MSFT 249) with bit-packed network prefixes for routing configuration', + icon: 'compass', + keywords: [ + 'dhcp', + 'dhcpv4', + 'option', + '121', + '249', + 'classless', + 'static', + 'routes', + 'routing', + 'rfc', + '3442', + 'microsoft', + 'msft', + 'bit-packing', + 'prefix', + 'gateway', + 'encoder', + 'decoder', + 'isc', + 'kea', + 'network', + 'route', + 'destination', + ], + }, + { + href: makePath('/dhcp/v4/options/option150-tftp-server'), + label: 'Options 150/66/67 - TFTP Server', + description: + 'Configure TFTP servers for PXE boot and Cisco IP phones with Option 150 (TFTP list), Option 66 (server name), and Option 67 (bootfile)', + icon: 'server', + keywords: [ + 'dhcp', + 'dhcpv4', + 'option', + '150', + '66', + '67', + 'tftp', + 'server', + 'pxe', + 'boot', + 'cisco', + 'ip', + 'phones', + 'bootfile', + 'next-server', + 'filename', + 'network', + 'boot', + 'pxelinux', + 'bootx64.efi', + 'uefi', + 'bios', + 'isc', + 'kea', + 'encoder', + 'decoder', + 'configuration', + ], + }, + { + href: makePath('/dhcp/v4/options/pxe-boot-profile'), + label: 'PXE Boot Profile', + description: + 'Generate PXE boot profiles with automatic UEFI/BIOS detection using Options 93/94 for architecture-aware bootfile selection', + icon: 'tools', + keywords: [ + 'dhcp', + 'dhcpv4', + 'pxe', + 'profile', + 'boot', + 'uefi', + 'bios', + 'option', + '93', + '94', + '66', + '67', + 'architecture', + 'detection', + 'bootfile', + 'tftp', + 'network', + 'generator', + 'isc', + 'dhcpd', + 'kea', + 'configuration', + 'preset', + 'ipxe', + 'wds', + 'windows', + 'deployment', + 'firmware', + ], + }, + { + href: makePath('/dhcp/v4/options/freeform-tlv'), + label: 'Freeform TLV Composer', + description: + 'Build custom DHCP options using Type-Length-Value encoding with support for IPv4, IPv6, FQDN, strings, hex data, and numeric types', + icon: 'tools', + keywords: [ + 'dhcp', + 'dhcpv4', + 'tlv', + 'type', + 'length', + 'value', + 'custom', + 'option', + 'freeform', + 'composer', + 'builder', + 'ipv4', + 'ipv6', + 'fqdn', + 'string', + 'hex', + 'uint8', + 'uint16', + 'uint32', + 'boolean', + 'encoder', + 'generator', + 'isc', + 'dhcpd', + 'kea', + 'configuration', + 'wire', + 'format', + 'vendor', + 'specific', + 'site', + 'local', + ], + }, ], }, { - href: makePath('/dhcp/option-60-builder'), - label: 'Option 60 Builder', - description: - 'Build vendor class identifiers for DHCP class-based policies (ISC, Kea, Windows, dnsmasq, MikroTik)', - icon: 'tools', - keywords: [ - 'dhcp', - 'option', - '60', - 'vendor', - 'class', - 'identifier', - 'vci', - 'policy', - 'isc', - 'kea', - 'windows', - 'dnsmasq', - 'mikrotik', - 'cisco', - 'phones', - 'pxe', - 'boot', - 'aruba', - 'ruckus', - 'unifi', - 'class-based', - 'scopes', + title: 'DHCPv6 Options', + description: 'DHCPv6 option generators and configuration tools', + items: [ + { + href: makePath('/dhcp/v6/options/option23-24-dns'), + label: 'Options 23/24 - DNS', + description: + 'Configure DNS servers (Option 23) and search domains (Option 24) for DHCPv6 clients per RFC 3646', + icon: 'globe', + keywords: [ + 'dhcpv6', + 'dhcp', + 'v6', + 'ipv6', + 'option', + '23', + '24', + 'dns', + 'recursive', + 'name', + 'server', + 'domain', + 'search', + 'list', + 'rfc', + '3646', + 'wire', + 'format', + 'kea', + 'configuration', + 'stateless', + 'stateful', + 'slaac', + 'autoconfiguration', + 'resolver', + 'suffix', + ], + }, ], }, { - href: makePath('/dhcp/kea-isc-snippets'), - label: 'Kea/ISC Snippets Generator', - description: - 'Generate complete subnet configurations for ISC dhcpd and Kea DHCP servers with pools, options, and reservations', - icon: 'code-file', - keywords: [ - 'dhcp', - 'isc', - 'kea', - 'snippets', - 'generator', - 'subnet', - 'configuration', - 'dhcpd.conf', - 'pools', - 'options', - 'reservations', - 'static', - 'lease', - 'classes', - 'json', - 'dhcp4', - 'dhcp6', + title: 'DHCPv6 Identity', + description: 'DHCPv6 client identity and association identifier tools', + items: [ + { + href: makePath('/dhcp/v6/identity/duid-generator'), + label: 'DUID Generator', + description: + 'Generate DHCP Unique Identifiers (DUID) for DHCPv6 clients: DUID-LLT, DUID-EN, DUID-LL, and DUID-UUID per RFC 8415', + icon: 'fingerprint', + keywords: [ + 'dhcp', + 'dhcpv6', + 'duid', + 'unique', + 'identifier', + 'identity', + 'client', + 'rfc', + '8415', + 'duid-llt', + 'duid-en', + 'duid-ll', + 'duid-uuid', + 'link-layer', + 'enterprise', + 'uuid', + 'mac', + 'address', + 'hardware', + 'type', + 'timestamp', + 'kea', + 'isc', + 'dhcpd', + 'configuration', + 'generator', + ], + }, + { + href: makePath('/dhcp/v6/identity/iaid-calculator'), + label: 'IAID Calculator', + description: + 'Calculate Identity Association Identifier (IAID) for DHCPv6 interfaces from index, name, or MAC address with OS-specific conventions', + icon: 'hash', + keywords: [ + 'dhcp', + 'dhcpv6', + 'iaid', + 'identity', + 'association', + 'identifier', + 'interface', + 'index', + 'name', + 'mac', + 'address', + 'hash', + 'calculator', + 'linux', + 'windows', + 'macos', + 'freebsd', + 'rfc', + '8415', + ], + }, ], }, { - href: makePath('/dhcp/options/option82-builder'), - label: 'Option 82 Builder', - description: - 'Construct and parse DHCP Relay Agent Information (Option 82) with Circuit-ID, Remote-ID, and VLAN formats', - icon: 'tools', - keywords: [ - 'dhcp', - 'option', - '82', - 'relay', - 'agent', - 'information', - 'circuit-id', - 'remote-id', - 'vlan', - 'builder', - 'parser', - 'suboption', - 'tlv', - 'acl', - 'policy', - 'cisco', - 'kea', - 'isc', - 'network', - 'infrastructure', - ], - }, - { - href: makePath('/dhcp/options/option119-domain-search'), - label: 'Option 119 - Domain Search', - description: - 'Encode and decode Domain Search List (RFC 3397/6731) to/from RFC 1035 wire format with domain compression', - icon: 'globe', - keywords: [ - 'dhcp', - 'option', - '119', - 'domain', - 'search', - 'list', - 'rfc', - '3397', - '6731', - '1035', - 'wire', - 'format', - 'compression', - 'encoder', - 'decoder', - 'isc', - 'kea', - 'dns', - 'suffix', - 'client', - 'configuration', - ], - }, - { - href: makePath('/dhcp/options/option121-classless-routes'), - label: 'Option 121/249 - Classless Routes', - description: - 'Encode and decode Classless Static Routes (RFC 3442 / MSFT 249) with bit-packed network prefixes for routing configuration', - icon: 'compass', - keywords: [ - 'dhcp', - 'option', - '121', - '249', - 'classless', - 'static', - 'routes', - 'routing', - 'rfc', - '3442', - 'microsoft', - 'msft', - 'bit-packing', - 'prefix', - 'gateway', - 'encoder', - 'decoder', - 'isc', - 'kea', - 'network', - 'route', - 'destination', - ], - }, - { - href: makePath('/dhcp/options/option150-tftp'), - label: 'Options 150/66/67 - TFTP Server', - description: - 'Configure TFTP servers for PXE boot and Cisco IP phones with Option 150 (TFTP list), Option 66 (server name), and Option 67 (bootfile)', - icon: 'server', - keywords: [ - 'dhcp', - 'option', - '150', - '66', - '67', - 'tftp', - 'server', - 'pxe', - 'boot', - 'cisco', - 'ip', - 'phones', - 'bootfile', - 'next-server', - 'filename', - 'network', - 'boot', - 'pxelinux', - 'bootx64.efi', - 'uefi', - 'bios', - 'isc', - 'kea', - 'encoder', - 'decoder', - 'configuration', - ], - }, - { - href: makePath('/dhcp/options/pxe-profile'), - label: 'PXE Profile Generator', - description: - 'Generate PXE boot profiles with automatic UEFI/BIOS detection using Options 93/94 for architecture-aware bootfile selection', - icon: 'tools', - keywords: [ - 'dhcp', - 'pxe', - 'profile', - 'boot', - 'uefi', - 'bios', - 'option', - '93', - '94', - '66', - '67', - 'architecture', - 'detection', - 'bootfile', - 'tftp', - 'network', - 'generator', - 'isc', - 'dhcpd', - 'kea', - 'configuration', - 'preset', - 'ipxe', - 'wds', - 'windows', - 'deployment', - 'firmware', - ], - }, - { - href: makePath('/dhcp/options/freeform-tlv'), - label: 'Freeform TLV Composer', - description: - 'Build custom DHCP options using Type-Length-Value encoding with support for IPv4, IPv6, FQDN, strings, hex data, and numeric types', - icon: 'tools', - keywords: [ - 'dhcp', - 'tlv', - 'type', - 'length', - 'value', - 'custom', - 'option', - 'freeform', - 'composer', - 'builder', - 'ipv4', - 'ipv6', - 'fqdn', - 'string', - 'hex', - 'uint8', - 'uint16', - 'uint32', - 'boolean', - 'encoder', - 'generator', - 'isc', - 'dhcpd', - 'kea', - 'configuration', - 'wire', - 'format', - 'vendor', - 'specific', - 'site', - 'local', - ], - }, - { - href: makePath('/dhcp/v6/options/dns-search-rfc3646'), - label: 'DHCPv6 Options 23/24 - DNS', - description: 'Configure DNS servers (Option 23) and search domains (Option 24) for DHCPv6 clients per RFC 3646', - icon: 'globe', - keywords: [ - 'dhcpv6', - 'dhcp', - 'v6', - 'ipv6', - 'option', - '23', - '24', - 'dns', - 'recursive', - 'name', - 'server', - 'domain', - 'search', - 'list', - 'rfc', - '3646', - 'wire', - 'format', - 'kea', - 'configuration', - 'stateless', - 'stateful', - 'slaac', - 'autoconfiguration', - 'resolver', - 'suffix', - ], - }, - { - href: makePath('/dhcp/identity/duid-generator'), - label: 'DUID Generator', - description: - 'Generate DHCP Unique Identifiers (DUID) for DHCPv6 clients: DUID-LLT, DUID-EN, DUID-LL, and DUID-UUID per RFC 8415', - icon: 'fingerprint', - keywords: [ - 'dhcp', - 'dhcpv6', - 'duid', - 'unique', - 'identifier', - 'identity', - 'client', - 'rfc', - '8415', - 'duid-llt', - 'duid-en', - 'duid-ll', - 'duid-uuid', - 'link-layer', - 'enterprise', - 'uuid', - 'mac', - 'address', - 'hardware', - 'type', - 'timestamp', - 'kea', - 'isc', - 'dhcpd', - 'configuration', - 'generator', - ], - }, - { - href: makePath('/dhcp/identity/iaid-calculator'), - label: 'IAID Calculator', - description: - 'Calculate Identity Association Identifier (IAID) for DHCPv6 interfaces from index, name, or MAC address with OS-specific conventions', - icon: 'hash', - keywords: [ - 'dhcp', - 'dhcpv6', - 'iaid', - 'identity', - 'association', - 'identifier', - 'interface', - 'index', - 'name', - 'mac', - 'address', - 'hash', - 'calculator', - 'linux', - 'windows', - 'macos', - 'freebsd', - 'rfc', - '8415', - ], - }, - { - href: makePath('/dhcp/identity/clientid-option61'), - label: 'Client ID (Option 61)', - description: - 'Build and decode DHCPv4 Client Identifier (Option 61): hardware type + MAC address or arbitrary opaque data per RFC 2132', - icon: 'id-card', - keywords: [ - 'dhcp', - 'dhcpv4', - 'client', - 'identifier', - 'option', - '61', - 'hardware', - 'type', - 'mac', - 'address', - 'opaque', - 'decode', - 'encode', - 'rfc', - '2132', - 'kea', - 'isc', - 'dhcpd', - 'configuration', + title: 'Configuration Generators', + description: 'Server configuration generators and snippets', + items: [ + { + href: makePath('/dhcp/kea-isc-snippets'), + label: 'Kea/ISC Snippets', + description: + 'Generate complete subnet configurations for ISC dhcpd and Kea DHCP servers with pools, options, and reservations', + icon: 'code-file', + keywords: [ + 'dhcp', + 'isc', + 'kea', + 'snippets', + 'generator', + 'subnet', + 'configuration', + 'dhcpd.conf', + 'pools', + 'options', + 'reservations', + 'static', + 'lease', + 'classes', + 'json', + 'dhcp4', + 'dhcp6', + ], + }, ], }, ], diff --git a/src/routes/dhcp/options/freeform-tlv/+page.svelte b/src/routes/dhcp/v4/options/freeform-tlv/+page.svelte similarity index 100% rename from src/routes/dhcp/options/freeform-tlv/+page.svelte rename to src/routes/dhcp/v4/options/freeform-tlv/+page.svelte diff --git a/src/routes/dhcp/options/option119-domain-search/+page.svelte b/src/routes/dhcp/v4/options/option119-domain-search/+page.svelte similarity index 100% rename from src/routes/dhcp/options/option119-domain-search/+page.svelte rename to src/routes/dhcp/v4/options/option119-domain-search/+page.svelte diff --git a/src/routes/dhcp/options/option121-classless-routes/+page.svelte b/src/routes/dhcp/v4/options/option121-classless-routes/+page.svelte similarity index 100% rename from src/routes/dhcp/options/option121-classless-routes/+page.svelte rename to src/routes/dhcp/v4/options/option121-classless-routes/+page.svelte diff --git a/src/routes/dhcp/options/option150-tftp/+page.svelte b/src/routes/dhcp/v4/options/option150-tftp-server/+page.svelte similarity index 100% rename from src/routes/dhcp/options/option150-tftp/+page.svelte rename to src/routes/dhcp/v4/options/option150-tftp-server/+page.svelte diff --git a/src/routes/dhcp/option-43/+page.svelte b/src/routes/dhcp/v4/options/option43-vendor-specific/+page.svelte similarity index 100% rename from src/routes/dhcp/option-43/+page.svelte rename to src/routes/dhcp/v4/options/option43-vendor-specific/+page.svelte diff --git a/src/routes/dhcp/option-60-builder/+page.svelte b/src/routes/dhcp/v4/options/option60-vendor-class/+page.svelte similarity index 100% rename from src/routes/dhcp/option-60-builder/+page.svelte rename to src/routes/dhcp/v4/options/option60-vendor-class/+page.svelte diff --git a/src/routes/dhcp/identity/clientid-option61/+page.svelte b/src/routes/dhcp/v4/options/option61-clientid/+page.svelte similarity index 100% rename from src/routes/dhcp/identity/clientid-option61/+page.svelte rename to src/routes/dhcp/v4/options/option61-clientid/+page.svelte diff --git a/src/routes/dhcp/options/option82-builder/+page.svelte b/src/routes/dhcp/v4/options/option82-relay-agent/+page.svelte similarity index 100% rename from src/routes/dhcp/options/option82-builder/+page.svelte rename to src/routes/dhcp/v4/options/option82-relay-agent/+page.svelte diff --git a/src/routes/dhcp/options/pxe-profile/+page.svelte b/src/routes/dhcp/v4/options/pxe-boot-profile/+page.svelte similarity index 100% rename from src/routes/dhcp/options/pxe-profile/+page.svelte rename to src/routes/dhcp/v4/options/pxe-boot-profile/+page.svelte diff --git a/src/routes/dhcp/identity/duid-generator/+page.svelte b/src/routes/dhcp/v6/identity/duid-generator/+page.svelte similarity index 100% rename from src/routes/dhcp/identity/duid-generator/+page.svelte rename to src/routes/dhcp/v6/identity/duid-generator/+page.svelte diff --git a/src/routes/dhcp/identity/iaid-calculator/+page.svelte b/src/routes/dhcp/v6/identity/iaid-calculator/+page.svelte similarity index 100% rename from src/routes/dhcp/identity/iaid-calculator/+page.svelte rename to src/routes/dhcp/v6/identity/iaid-calculator/+page.svelte diff --git a/src/routes/dhcp/v6/options/dns-search-rfc3646/+page.svelte b/src/routes/dhcp/v6/options/option23-24-dns/+page.svelte similarity index 100% rename from src/routes/dhcp/v6/options/dns-search-rfc3646/+page.svelte rename to src/routes/dhcp/v6/options/option23-24-dns/+page.svelte