Custom-Code-Options

These scenarios check DHCPv6 server custom code options. This verifies that code-56 (ntp-servers) option with ip-address type is correctly generated in the server config and received by the client.

Test Code Option With Name And Multiple IP Addresses

Description

This scenario checks a custom code option with multiple ip-address values and a custom name (ntp-servers). The generated config should define the option with the given name and the client should receive the NTP server addresses in its lease.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address '10::1/64'
set service dhcpv6-server options code 56 data ip-address '10::100'
set service dhcpv6-server options code 56 data ip-address '10::101'
set service dhcpv6-server options code 56 name ntp-servers
set service dhcpv6-server shared-network code-test subnet '10::/64' address-range start '10::5' stop '10::5'
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address dhcpv6
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 3: Run the command interfaces ethernet eth0 show on DUT1 and check whether the output contains the following tokens:

10::5
Show output
-----------------------------------------------------------------
Name           IP Address           Admin  Oper  Vrf  Description
-----------------------------------------------------------------
eth0  10::5/128                     up     up
      fe80::dcad:beff:feef:6c10/64

Step 4: Run the command show monitor-db system dhcpv6 interface eth0 on DUT1 and check whether the output contains the following tokens:

ntp-servers: 10::100, 10::101
Show output
ipv6-address: 10::5
ipv6-prefixlen: 128
max-lifetime: 43200
ntp-servers: 10::100, 10::101
preferred-lifetime: 7200
reason: BOUND6
starts: 1779218143