For adapters that are part of the Network Bridge, you can use commands in the netsh bridge context to enable or disable Layer 3 compatibility mode and show configuration information for these adapters.

Caution
Use caution when enabling the Network Bridge component in Windows®. It causes a computer attached to two or more networks to rebroadcast all traffic from each network to the others that are part of the bridge. This can be a significant security risk if you enable the bridge on a computer that contains a network adapter attached to your private LAN and another adapter that is connected to the Internet.

You can run these commands from the command prompt on a computer running Microsoft® Windows Vista® or Windows Server® 2008 from the netsh bridge context. To successfully run these commands at the command prompt on a computer running Windows Server 2008, you must type netsh bridge before typing the commands and parameters as they appear in this topic.

For more information about netsh, see Netsh Overview and Enter a Netsh Context.

Netsh commands for Network Bridge

To view the command syntax, click a command:

For information on how to interpret netsh command syntax, see Formatting Legend.

show adapter

Displays adapter identification, adapter names, and the state of the Layer 3 compatibility mode of adapters that are part of Network Bridge.

Syntax:

Show adapter [[id=] AdapterID ]

Parameters:

[[id=] AdapterID ]

Optional. Specifies the information to display for a specific adapter.

/?

Displays help at the command prompt.

Example commands:

Show adapter

This command lists all of the adapters that are part of Network Bridge and provides adapter ID numbers, friendly names, and the state of the Layer 3 compatibility mode that corresponds to each adapter.

show adapter 2

This command lists the adapter ID, friendly name, and the state of the Layer 3 compatibility mode information for adapter 2.

set adapter

This command modifies the configuration of a specified adapter that is part of Network Bridge by setting the state of the adapter to either enable or disable network layer (Layer 3) compatibility mode.

Syntax:

set adapter [id=] AdapterID [forcecompatmode=]{enable | disable}

Parameters:

[id=] AdapterID

Required. Specifies which adapter that is part of Network Bridge to configure.

[forcecompatmode=]{ enable| disable}

Required. Specifies whether Layer 3 mode compatibility is enabled or disabled for the specified adapter.

/?

Displays help at the command prompt.

Remarks:

  • This command should be run only if an enabled Network Bridge does not forward network traffic to all network segments. This condition can exist if one or more network adapters (typically wireless) included in the bridge do not support promiscuous mode.

  • For more information about determining adapter ID values, see show adapter.

  • The install and uninstall commands are not supported in the netsh bridge context. Network Bridge can be set up or removed only through Network Connections.

Example commands:

set adapter 2 forcecompatmode=enable

This command is used to force adapter 2 to run in Layer 3 compatibility mode.

Note
The dump command is not supported in the netsh bridge context.