Partilhar via


Netsh commands for Network Bridge

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Netsh commands for Network Bridge

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.

You can run these commands from the Windows Server 2003 family command prompt or from the netsh bridge context. To successfully run these commands at the Windows Server 2003 family command prompt, 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.

To view the command syntax, click a command:

  • show adapter

  • set adapter

Note

  • Internet Connection Sharing and Network Bridge are not included in Windows Server 2003, Web Edition; Windows Server 2003, Datacenter Edition; and the Itanium-based versions of the original release of the Windows Server 2003 operating systems.

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.

Examples

In the first example, 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.

In the second example, this command lists the adapter ID, friendly name, and the state of the Layer 3 compatibility mode information for adapter 2.

show adapter

show 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 only be run 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.

Examples

In this example, the command is used to force adapter 2 to run in Layer 3 compatibility mode.

set adapter 2 forcecompatmode=enable

Notes

  • The install and uninstall commands are not supported in the netsh bridge context. Network Bridge can only be set up or removed through Network Connections. For more information, see Set up Network Bridge or Remove Network Bridge.

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

Formatting legend

Format Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

See Also

Concepts

Network Bridge
Remove Network Bridge
Set up Network Bridge
Command-line reference A-Z
Command shell overview