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
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.0.0.1/24 set service dhcp-server shared-network default-router subnet 10.0.0.0/24 options default-router 10.0.0.1 set service dhcp-server shared-network default-router 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.5Show 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 protocols ip show route at DUT1 and check if output contains the following tokens:
via 10.0.0.1Show output
Codes: K - kernel route, C - connected, L - local, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR, f - OpenFabric, t - Table-Direct, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure IPv4 unicast VRF default: S>* 0.0.0.0/0 [1/0] via 10.0.0.1, eth0, weight 1, 00:00:02 C>* 10.0.0.0/24 is directly connected, eth0, weight 1, 00:00:02 L>* 10.0.0.5/32 is directly connected, eth0, weight 1, 00:00:02 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:35:16 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:37:00 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 01:04:22 L> 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:17:52 L 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:18:12
Step 5: Run command traffic dump monitor detail interface eth0 filter "port 67 or port 68" packets 10 at DUT0.
Step 6: Run command service dhcp-client renew interface eth0 at DUT1 and expect this output:
Show output
Renewing DHCP lease on interface eth0...
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
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 default-router-vrf local-vrf VRF0 set service dhcp-server shared-network default-router-vrf subnet 10.0.0.0/24 options default-router 10.0.0.1 set service dhcp-server shared-network default-router-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.5Show 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 protocols ip show route at DUT1 and check if output contains the following tokens:
via 10.0.0.1Show output
Codes: K - kernel route, C - connected, L - local, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR, f - OpenFabric, t - Table-Direct, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure IPv4 unicast VRF default: S>* 0.0.0.0/0 [1/0] via 10.0.0.1, eth0, weight 1, 00:00:01 C>* 10.0.0.0/24 is directly connected, eth0, weight 1, 00:00:01 K * 10.0.0.0/24 [0/0] is directly connected, eth0, weight 1, 00:00:01 L>* 10.0.0.5/32 is directly connected, eth0, weight 1, 00:00:01 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:35:29 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:37:13 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 01:04:35 L> 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:18:05 L 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:18:25
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
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.0.0.1/24 set service dhcp-server shared-network subnet-mask subnet 10.0.0.0/24 options subnet-mask 255.255.255.0 set service dhcp-server shared-network subnet-mask 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.5Show 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 interfaces ethernet eth0 show at DUT1 and expect this output:
Show output
----------------------------------------------------------------- Name IP Address Admin Oper Vrf Description ----------------------------------------------------------------- eth0 10.0.0.5/24 up up fe80::dcad:beff:feef:6c10/64
Step 5: Run command traffic dump monitor detail interface eth0 filter "port 67 or port 68" packets 10 at DUT0.
Step 6: Run command service dhcp-client renew interface eth0 at DUT1 and expect this output:
Show output
Renewing DHCP lease on interface eth0...
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
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 subnet-mask-vrf local-vrf VRF0 set service dhcp-server shared-network subnet-mask-vrf subnet 10.0.0.0/24 options subnet-mask 255.255.255.0 set service dhcp-server shared-network subnet-mask-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.5Show 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 interfaces ethernet eth0 show at DUT1 and expect this output:
Show output
----------------------------------------------------------------- Name IP Address Admin Oper Vrf Description ----------------------------------------------------------------- eth0 10.0.0.5/24 up up fe80::dcad:beff:feef:6c10/64
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
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.0.0.1/24 set service dhcp-server shared-network static-route-single subnet 10.0.0.0/24 options static-route 192.168.100.0/24 next-hop 10.0.0.254 set service dhcp-server shared-network static-route-single 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.5Show 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 show monitor-db system dhcp interface eth0 rfc3442-routes at DUT1 and expect this output:
Show output
192.168.100.0/24-10.0.0.254
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
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.0.0.1/24 set service dhcp-server shared-network static-route-multiple subnet 10.0.0.0/24 options static-route 192.168.100.0/24 next-hop 10.0.0.254 set service dhcp-server shared-network static-route-multiple subnet 10.0.0.0/24 options static-route 192.168.200.0/24 next-hop 10.0.0.253 set service dhcp-server shared-network static-route-multiple 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.5Show 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 show monitor-db system dhcp interface eth0 rfc3442-routes at DUT1 and expect this output:
Show output
192.168.100.0/24-10.0.0.254, 192.168.200.0/24-10.0.0.253
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
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 static-route-vrf local-vrf VRF0 set service dhcp-server shared-network static-route-vrf subnet 10.0.0.0/24 options static-route 192.168.100.0/24 next-hop 10.0.0.254 set service dhcp-server shared-network static-route-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.5Show 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 show monitor-db system dhcp interface eth0 rfc3442-routes at DUT1 and expect this output:
Show output
192.168.100.0/24-10.0.0.254
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
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.0.0.1/24 set service dhcp-server shared-network basic-combined subnet 10.0.0.0/24 options default-router 10.0.0.1 set service dhcp-server shared-network basic-combined subnet 10.0.0.0/24 options static-route 192.168.100.0/24 next-hop 10.0.0.254 set service dhcp-server shared-network basic-combined subnet 10.0.0.0/24 options subnet-mask 255.255.255.0 set service dhcp-server shared-network basic-combined 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.5Show 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 protocols ip show route at DUT1 and check if output contains the following tokens:
via 10.0.0.1Show output
Codes: K - kernel route, C - connected, L - local, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR, f - OpenFabric, t - Table-Direct, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure IPv4 unicast VRF default: S>* 0.0.0.0/0 [1/0] via 10.0.0.1, eth0, weight 1, 00:00:02 C>* 10.0.0.0/24 is directly connected, eth0, weight 1, 00:00:02 L>* 10.0.0.5/32 is directly connected, eth0, weight 1, 00:00:02 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:36:33 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:38:17 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 01:05:39 L> 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:19:09 L 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:19:29
Step 5: Run command interfaces ethernet eth0 show at DUT1 and expect this output:
Show output
----------------------------------------------------------------- Name IP Address Admin Oper Vrf Description ----------------------------------------------------------------- eth0 10.0.0.5/24 up up fe80::dcad:beff:feef:6c10/64
Step 6: Run command show monitor-db system dhcp interface eth0 rfc3442-routes at DUT1 and expect this output:
Show output
192.168.100.0/24-10.0.0.254
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
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.0.0.1/24 set service dhcp-server shared-network default-router subnet 10.0.0.0/24 options default-router 10.0.0.1 set service dhcp-server shared-network default-router 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.5Show 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 protocols ip show route at DUT1 and check if output contains the following tokens:
via 10.0.0.1Show output
Codes: K - kernel route, C - connected, L - local, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR, f - OpenFabric, t - Table-Direct, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure IPv4 unicast VRF default: S>* 0.0.0.0/0 [1/0] via 10.0.0.1, eth0, weight 1, 00:00:01 C>* 10.0.0.0/24 is directly connected, eth0, weight 1, 00:00:01 K * 10.0.0.0/24 [0/0] is directly connected, eth0, weight 1, 00:00:01 L>* 10.0.0.5/32 is directly connected, eth0, weight 1, 00:00:01 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:36:43 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:38:27 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 01:05:49 L> 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:19:19 L 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:19:39
Step 5: Modify the following configuration lines in DUT0 :
set service dhcp-server shared-network default-router subnet 10.0.0.0/24 options default-router 10.0.0.2
Step 6: Run command protocols ip show route at DUT1 and check if output contains the following tokens:
via 10.0.0.2Show output
Codes: K - kernel route, C - connected, L - local, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR, f - OpenFabric, t - Table-Direct, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure IPv4 unicast VRF default: S>* 0.0.0.0/0 [1/0] via 10.0.0.2, eth0, weight 1, 00:00:00 C>* 10.0.0.0/24 is directly connected, eth0, weight 1, 00:00:02 K * 10.0.0.0/24 [0/0] is directly connected, eth0, weight 1, 00:00:02 L>* 10.0.0.5/32 is directly connected, eth0, weight 1, 00:00:02 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:36:44 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:38:28 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 01:05:50 L> 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:19:20 L 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:19:40
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
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.0.0.1/24 set service dhcp-server shared-network default-router subnet 10.0.0.0/24 options default-router 10.0.0.1 set service dhcp-server shared-network default-router 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.5Show 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 protocols ip show route at DUT1 and check if output contains the following tokens:
via 10.0.0.1Show output
Codes: K - kernel route, C - connected, L - local, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR, f - OpenFabric, t - Table-Direct, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure IPv4 unicast VRF default: S>* 0.0.0.0/0 [1/0] via 10.0.0.1, eth0, weight 1, 00:00:02 C>* 10.0.0.0/24 is directly connected, eth0, weight 1, 00:00:02 K * 10.0.0.0/24 [0/0] is directly connected, eth0, weight 1, 00:00:02 L>* 10.0.0.5/32 is directly connected, eth0, weight 1, 00:00:02 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:36:54 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:38:38 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 01:06:00 L> 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:19:30 L 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:19:50
Step 5: Modify the following configuration lines in DUT0 :
delete service dhcp-server shared-network default-router subnet 10.0.0.0/24 options
Step 6: Run command protocols ip show route at DUT1 and expect this output:
Show output
Codes: K - kernel route, C - connected, L - local, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP, T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR, f - OpenFabric, t - Table-Direct, > - selected route, * - FIB route, q - queued, r - rejected, b - backup t - trapped, o - offload failure IPv4 unicast VRF default: C>* 10.0.0.0/24 is directly connected, eth0, weight 1, 00:00:03 K * 10.0.0.0/24 [0/0] is directly connected, eth0, weight 1, 00:00:03 L>* 10.0.0.5/32 is directly connected, eth0, weight 1, 00:00:03 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:36:55 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 00:38:39 L 10.215.168.21/32 is directly connected, eth0 inactive, weight 1, 01:06:01 L> 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:19:31 L 30.0.0.3/32 is directly connected, eth0 inactive, weight 1, 02:19:51