netsh » interface » ipv4 » add » address

Microsoft Windows [Version 6.0.6001]
(C) Copyright 2006 Microsoft Corp.
c:\windows>netsh interface ipv4 add address ? Usage: add address [name=] [[address=][/ [[mask=]]] [[type=]unicast|anycast]] [[gateway=] [gwmetric=]] [[validlifetime=]|infinite] [[preferredlifetime=]|infinite] [[subinterface=]] [[store=]active|persistent] Parameters: Tag Value name - Interface name or index. address - IPv4 address to add, optionally followed by the subnet prefix length. mask - The IP subnet mask for the specified IP address. type - One of the following values: unicast: Adds a unicast address (default). anycast: Adds an anycast address. gateway - The IPv4 address of a default gateway to add. gwmetric - The metric to the default gateway. validlifetime - Lifetime over which the address/route is valid. The default value is infinite. preferredlifetime - Lifetime over which the address/route is preferred. The default value is infinite. subinterface - LUID of subinterface on which the default gateway exists. This parameter is only needed on interfaces with multiple subinterfaces. store - One of the following values: active: Address will disappear on next boot. persistent: Address will be persistent. This is the default. Remarks: Adds static IP addresses and default gateways to an interface. If DHCP is enabled on the interface, it will be disabled. Examples: add address "Local Area Connection" add address "Local Area Connection" gateway= gwmetric=2 The first command adds a static IP address of with a subnet mask of to the Local Area Connection interface. The second command adds the IP address of as a second default gateway for this interface with a gateway metric of 2.


Quick - Link:
netsh interface ipv4 show interfaces
Shows interface parameters.
netsh interface portproxy help
Displays a list of commands.
netsh firewall show logging
Shows firewall logging configuration.
netsh p2p pnrp cloud help
Displays a list of commands.


... Windows 10 FAQ
... Windows 10 How To

Windows 10 How To

... Windows 11 How To
... Windows 10 FAQ

Adds a static IP address or default gateway to the specified interface. / Windows Vista

HTTP: ... cmd/en/Windows_Vista/netsh/interface/ipv4/add/address.htm

desk.cpl ,,5. in Windows 10 / 11!

Show clock and time in the start menu in Windows 11 / 10!

The easiest ways to sync with a time server in Windows 10/11!

Externen Monitor bei zugeklapptem Notebook nutzen unter Windows 10/11!

Prevent unwanted restart of Windows 10 / 11 after downloading updates?

Deactivate the automatic arrangement of the symbols under Windows!