Consider the following scenario:
- You use the netsh command to enable a network interface on a computer that is running Windows Server 2008 or Windows Vista. The computer retrieves IP addresses from a DHCP server.
- You use the netsh command to set a default gateway for the network interface.
In this scenario, the default gateway is set successfully. You can verify it by running the ipconfig /all command. However, the default gateway of the network interface is missing after the computer restarts. If you double-click the following registry entry, you find that a null character exists in the value data of the DhcpDefaultGateway subkey: