Driver test: close and reopen

Rationale

Closing and reopening an interface is an uncommon action, and problems are unlikely to be discovered during normal operation. The ifclose commands can be used to verify that a card continues to work after being closed and reopened.

A network card

Test sequence

  1. Before starting, ensure that system power is off and the network cable is connected to a network which provides a DHCP server.
  2. Power on and boot to the iPXE command line.
  3. Use ifstat to identify the name of your network interface (hereafter assumed to be net0).
  4. Open the interface and initiate a DHCP request using dhcp net0.
  5. Verify that the DHCP command completes without an error.
  6. Close the interface using ifclose.
  7. Reopen the interface and initiate a DHCP request using dhcp net0.
  8. Verify that this second DHCP command also completes without an error.