Boot-Provisioning

These scenarios check DHCP server boot provisioning options used for PXE (Preboot Execution Environment) boot. This includes: bootfile-name and bootfile-server (next-server). Verification is done via the hidden extended-detail command to confirm the client correctly received the options.

Bootfile Options

Description

Verify bootfile provisioning options via extended-detail.

Scenario

Example 1

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.0.0.1/24
set service dhcp-server shared-network bootfile-name-only subnet 10.0.0.0/24 options bootfile-name pxelinux.0
set service dhcp-server shared-network bootfile-name-only subnet 10.0.0.0/24 start 10.0.0.5 stop 10.0.0.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 dhcp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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

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

Step 4: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:11:14 2026
Reason:            BOUND

Example 2

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.0.0.1/24
set service dhcp-server shared-network bootfile-server-only subnet 10.0.0.0/24 options bootfile-server 10.0.0.100
set service dhcp-server shared-network bootfile-server-only subnet 10.0.0.0/24 start 10.0.0.5 stop 10.0.0.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 dhcp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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

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

Step 4: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:11:20 2026
Reason:            BOUND

Example 3

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.0.0.1/24
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-name pxelinux.0
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-server 10.0.0.100
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 start 10.0.0.5 stop 10.0.0.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 dhcp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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

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

Step 4: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:11:25 2026
Reason:            BOUND

Step 5: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:11:25 2026
Reason:            BOUND

Example 4

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.0.0.1/24
set interfaces ethernet eth0 vrf VRF0
set service dhcp-server shared-network bootfile-vrf local-vrf VRF0
set service dhcp-server shared-network bootfile-vrf subnet 10.0.0.0/24 options bootfile-name pxelinux.0
set service dhcp-server shared-network bootfile-vrf subnet 10.0.0.0/24 options bootfile-server 10.0.0.100
set service dhcp-server shared-network bootfile-vrf subnet 10.0.0.0/24 start 10.0.0.5 stop 10.0.0.5
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
set system vrf VRF0

Step 2: Set the following configuration in DUT1 :

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

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

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

Step 4: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:11:32 2026
Reason:            BOUND

Step 5: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:11:32 2026
Reason:            BOUND

Example 5

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.0.0.1/24
set service dhcp-server shared-network bootfile-hostname subnet 10.0.0.0/24 options bootfile-name pxelinux.0
set service dhcp-server shared-network bootfile-hostname subnet 10.0.0.0/24 options bootfile-server tftp.example.com
set service dhcp-server shared-network bootfile-hostname subnet 10.0.0.0/24 start 10.0.0.5 stop 10.0.0.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 dhcp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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

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

Step 4: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:11:38 2026
Reason:            BOUND

Bootfile Change Options

Description

Verify bootfile options can be changed dynamically.

Scenario

Example 1

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.0.0.1/24
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-name pxelinux.0
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-server 10.0.0.100
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 start 10.0.0.5 stop 10.0.0.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 dhcp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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

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

Step 4: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:11:48 2026
Reason:            BOUND

Step 5: Modify the following configuration lines in DUT0 :

set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-name grub.efi

Step 6: Run command service dhcp-client renew interface eth0 at DUT1 and expect this output:

Show output
Renewing DHCP lease on interface eth0...

Step 7: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     grub.efi
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43198
Expiry date:       Mon Mar 23 21:11:48 2026
Reason:            REBOOT

Example 2

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.0.0.1/24
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-name pxelinux.0
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-server 10.0.0.100
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 start 10.0.0.5 stop 10.0.0.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 dhcp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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

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

Step 4: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:11:55 2026
Reason:            BOUND

Step 5: Modify the following configuration lines in DUT0 :

set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-server 10.0.0.101

Step 6: Run command service dhcp-client renew interface eth0 at DUT1 and expect this output:

Show output
Renewing DHCP lease on interface eth0...

Step 7: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.101
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43198
Expiry date:       Mon Mar 23 21:11:55 2026
Reason:            REBOOT

Bootfile Change Both Options

Description

Verify both bootfile options can be changed simultaneously.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.0.0.1/24
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-name pxelinux.0
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-server 10.0.0.100
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 start 10.0.0.5 stop 10.0.0.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 dhcp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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

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

Step 4: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:12:05 2026
Reason:            BOUND

Step 5: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:12:05 2026
Reason:            BOUND

Step 6: Modify the following configuration lines in DUT0 :

set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-name grub.efi

Step 7: Modify the following configuration lines in DUT0 :

set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-server 10.0.0.101

Step 8: Run command service dhcp-client renew interface eth0 at DUT1 and expect this output:

Show output
Renewing DHCP lease on interface eth0...

Step 9: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.101
Bootfile name:     grub.efi
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43197
Expiry date:       Mon Mar 23 21:12:05 2026
Reason:            REBOOT

Step 10: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.101
Bootfile name:     grub.efi
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43197
Expiry date:       Mon Mar 23 21:12:05 2026
Reason:            REBOOT

Bootfile Remove Options

Description

Verify bootfile options can be removed individually.

Scenario

Example 1

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.0.0.1/24
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-name pxelinux.0
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-server 10.0.0.100
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 start 10.0.0.5 stop 10.0.0.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 dhcp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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

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

Step 4: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:12:17 2026
Reason:            BOUND

Step 5: Modify the following configuration lines in DUT0 :

delete service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-name

Step 6: Run command service dhcp-client renew interface eth0 at DUT1 and expect this output:

Show output
Renewing DHCP lease on interface eth0...

Step 7: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:
Subnet mask:
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:
Bootfile name:
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:
Lease time:
Expiry date:
Reason:            PREINIT

Example 2

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.0.0.1/24
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-name pxelinux.0
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-server 10.0.0.100
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 start 10.0.0.5 stop 10.0.0.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 dhcp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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

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

Step 4: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:12:24 2026
Reason:            BOUND

Step 5: Modify the following configuration lines in DUT0 :

delete service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-server

Step 6: Run command service dhcp-client renew interface eth0 at DUT1 and expect this output:

Show output
Renewing DHCP lease on interface eth0...

Step 7: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:
Subnet mask:
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:
Bootfile name:
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:
Lease time:
Expiry date:
Reason:            PREINIT

Bootfile Remove Both Options

Description

Verify both bootfile options can be removed simultaneously.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.0.0.1/24
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-name pxelinux.0
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-server 10.0.0.100
set service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 start 10.0.0.5 stop 10.0.0.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 dhcp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

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

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

Step 4: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:12:34 2026
Reason:            BOUND

Step 5: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:       10.0.0.100
Bootfile name:     pxelinux.0
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43200
Expiry date:       Mon Mar 23 21:12:34 2026
Reason:            BOUND

Step 6: Modify the following configuration lines in DUT0 :

delete service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options bootfile-name

Step 7: Modify the following configuration lines in DUT0 :

delete service dhcp-server shared-network bootfile-both subnet 10.0.0.0/24 options

Step 8: Run command service dhcp-client renew interface eth0 at DUT1 and expect this output:

Show output
Renewing DHCP lease on interface eth0...

Step 9: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:
Subnet mask:
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:
Bootfile name:
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:
Lease time:
Expiry date:
Reason:            PREINIT

Step 10: Run command service dhcp-client show leases extended-detail interface eth0 at DUT1 and expect this output:

Show output
Interface:         eth0
IP address:        10.0.0.5
Subnet mask:       255.255.255.0
Routers:
Name-servers:
Domain-name:
Domain-search:
NTP servers:
Time servers:
Time offset:
SMTP servers:
POP3 servers:
WINS servers:
TFTP server:
TFTP server addr:
Next server:
Bootfile name:
NIS domain:
NIS servers:
NIS+ domain:
NIS+ servers:
RFC3442 routes:
WPAD url:
DHCP server:       10.0.0.1
Lease time:        43197
Expiry date:       Mon Mar 23 21:12:33 2026
Reason:            REBOOT