.. _example_service_dhcp-server_options_basic-options:
#############
Basic-Options
#############
These scenarios check DHCP server basic network options.
This includes: default-router, subnet-mask, and static-route.
*******************
Test Default-Router
*******************
Description
===========
This scenario checks the ``default-router`` option.
The DHCP server configures a default gateway, and the client receives it in the lease.
The client's routing table should show this as the default route.
Verification includes packet capture to confirm Default-Gateway (3) option is sent.
Scenario
========
.. include:: basic-options/testdefault-router
.. raw:: html
***********************
Test Default-Router VRF
***********************
Description
===========
This scenario checks the ``default-router`` option when the DHCP server is configured with VRF.
The default gateway is configured in a VRF environment, and the client receives it correctly.
Scenario
========
.. include:: basic-options/testdefault-routervrf
.. raw:: html
****************
Test Subnet-Mask
****************
Description
===========
This scenario checks the ``subnet-mask`` option.
The DHCP server configures a subnet mask, and the client receives it in the lease.
The client's interface should be configured with this netmask.
Verification includes packet capture to confirm Subnet-Mask (1) option is sent.
Scenario
========
.. include:: basic-options/testsubnet-mask
.. raw:: html
********************
Test Subnet-Mask VRF
********************
Description
===========
This scenario checks the ``subnet-mask`` option when the DHCP server is configured with VRF.
The subnet mask is configured in a VRF environment, and the client receives it correctly.
Scenario
========
.. include:: basic-options/testsubnet-maskvrf
.. raw:: html
************************
Test Static-Route Single
************************
Description
===========
This scenario checks the ``static-route`` option with a single route.
The DHCP server configures a classless static route, and the client receives it.
The route should appear in the client's routing table.
Scenario
========
.. include:: basic-options/teststatic-routesingle
.. raw:: html
**************************
Test Static-Route Multiple
**************************
Description
===========
This scenario checks the ``static-route`` option with multiple routes.
The DHCP server configures two classless static routes, and the client receives both.
Both routes should appear in the client's routing table.
Scenario
========
.. include:: basic-options/teststatic-routemultiple
.. raw:: html
*********************
Test Static-Route VRF
*********************
Description
===========
This scenario checks the ``static-route`` option when the DHCP server is configured with VRF.
The static route is configured in a VRF environment, and the client receives it correctly.
Scenario
========
.. include:: basic-options/teststatic-routevrf
.. raw:: html
***************************
Test Basic Options Combined
***************************
Description
===========
This scenario checks all basic network options configured together.
The DHCP server configures default-router, subnet-mask, and static-route simultaneously.
The client should receive all options and apply them correctly.
Scenario
========
.. include:: basic-options/testbasicoptionscombined
.. raw:: html
**************************
Test Change Default-Router
**************************
Description
===========
This scenario checks that the default router can be changed dynamically.
Configure an initial default gateway, then change it and verify the client receives the new value.
Scenario
========
.. include:: basic-options/testchangedefault-router
.. raw:: html
**************************
Test Remove Default-Router
**************************
Description
===========
This scenario checks that the default router can be removed.
Configure a default gateway, then remove it and verify it is no longer sent to the client.
Scenario
========
.. include:: basic-options/testremovedefault-router
.. raw:: html