You can use commands in the Netsh netio context to configure binding filters. The Netsh commands for netio can be run manually at the netsh prompt or in scripts and batch files.
To run these commands from the command prompt, you must either enter the netsh netio context or prepend the context to the command. For example, if you are at the command prompt but have not typed netsh and then netio to enter the netsh netio context, you must type:
netsh netio command
Where command is the command that you want to run, including all of the required parameters for the command.
For information on how to interpret netsh command syntax, see Formatting Legend.
Netsh netio command reference
This section contains the following commands.
The following entries provide details for each command.
add bindingfilter
Adds a binding filter.
Syntax
add bindingfilter [npi=]NPI [client=] client [provider=] provider [[type=]block|singleclient] [[store=]active|persistent]
Parameters
- npi
- Required. Specifies the network programming interface GUID or name as a string value.
- client
- Required. Specifies the client name or GUID as a string value.
- provider
- Required. Specifies the client name or GUID as a string value.
- type
- Optional. Specifies either block or singleclient. Singleclient is the default. If you specify block, the specified client cannot bind to the provider. If you specify singleclient, only the specified client can bind to the provider.
- store
- Optional. Specifies that the binding filter is either active or persistent. Persistent is the default. If you specify active, the filter is applied only until the computer is restarted; after it is restarted the binding filter is not applied. If you specify persistent, the filter is permanently applied.
Examples
The following example disables IPv4 loopback by installing an NMR filter to prevent the binding.
netsh netio add bindingfilter framing ipv4 fl4l block persistent
The following example disables IPv6 loopback by installing an NMR filter to prevent the binding.
netsh netio add bindingfilter framing ipv6 fl6l block persistent
Note |
---|
To prevent bindings with the 802 framing layer, use fl48 or fl68. |
delete bindingfilter
Deletes a binding filter.
Syntax
delete bindingfilter [npi=]NPI [client=] client [provider=] provider [[store=]active|persistent]
Parameters
- npi
- Required. Specifies the network programming interface guid or name as a string value.
- client
- Required. Specifies the client name or guid as a string value.
- provider
- Required. Specifies the client name or guid as a string value.
- store
- Optional. Specifies that the deletion of the binding filter is either active or persistent. Persistent is the default. If you specify active, the filter is deleted only until the computer is restarted; after it is restarted the binding filter is applied again. If you specify persistent, the filter is permanently deleted.
show bindingfilters
Displays all binding filters.
Syntax
show bindingfilters [[store=]active|persistent]
Parameters
- store
- Optional. Specifies that the binding filters that are displayed are either active or persistent. Persistent is the default. If you specify active, the binding filters in the stack are displayed. If you specify persistent, only persistent binding filters are displayed.