netsh bridge
The netsh bridge command configures network adapter bridge settings in Windows. Windows commands reference
On Windows
Windows
The netsh bridge command configures network adapter bridge settings in Windows. By creating a network bridge, you can link two or more network segments, allowing devices on separate segments to communicate seamlessly as if they're part of a single network.
netsh bridge [add | create | destroy | dump | help | list | remove | set | show | ?]netsh bridge add <Adapter ID> to <Bridge GUID>netsh bridge create [<Adapter ID #1> <Adapter ID #2>]netsh bridge destroy <Bridge GUID>netsh bridge listnetsh bridge remove <Adapter ID> from <Bridge GUID>netsh bridge remove all from <Bridge GUID>netsh bridge set adapter [id=]<integer> [[forcecompatmode=]enable|disable]netsh bridge show adapter
To add a network adapter (Adapter ID 3) to an existing bridge, with Bridge GUID {12345678-ABCD-EF01-2345-6789ABCDEF03}, run the following command
netsh bridge add adapter=3 bridge={12345678-ABCD-EF01-2345-6789ABCDEF03}IdentifyTo create a new network bridge with two adapters (Adapter ID 1 and Adapter ID 2), run the following command
netsh bridge create adapter=1 adapter=2IdentifyTo destroy a bridge and remove all its adapters (Bridge GUID {12345678-ABCD-EF01-2345-6789ABCDEF02}), run the following command
netsh bridge destroy bridge={12345678-ABCD-EF01-2345-6789ABCDEF02}IdentifyTo display all created network bridges and their GUIDs, run the following command
netsh bridge listIdentifyTo remove a network adapter (Adapter ID 2) from an existing bridge, with Bridge GUID {12345678-ABCD-EF01-2345-6789ABCDEF02}, run the following command
netsh bridge remove adapter=2 bridge={12345678-ABCD-EF01-2345-6789ABCDEF02}IdentifyTo display all available network adapters, run the following command
netsh bridge show adapterIdentifyTo modify an adapter (Adapter ID 1) in a bridge to enable Layer 3 compatibility mode, run the following command
netsh bridge set adapter id=1 forcecompatmode=enableIdentifybridge addAdds a network adapter, specified by its Adapter ID, to an existing bridge identified by its Bridge GUID.bridge createCreates a new network bridge that includes two specified network adapters. The newly created bridge is assigned its own unique GUID, which can be retrieved using the netsh bridge list command.bridge destroyRemoves all network adapters from the specified bridge, identified by its bridge GUID, and deletes the bridge.bridge dumpCreates a script containing the current context configuration. The script can be saved to a file and used to restore settings if they're altered or need to be replicated on another system.bridge listDisplays all the created bridges that are uniquely identified by the bridge GUID.bridge removeRemoves a network adapter, specified by its Adapter ID, from a bridge identified by its Bridge GUID.
Using the all parameter removes all network adapters from the specified bridge and deletes the bridge.bridge set adapterModifies the bridge configuration for the specified adapter.
id - The identifier of the network adapter to configure. To view available adapter IDs, use the netsh bridge show adapter command.
forcecompatmode - Specifies whether to enable or disable Layer 3 compatibility mode for the adapter:
- enable: Turns on Layer 3 mode.
- disable: Turns off Layer 3 mode.bridge show adapterDisplays a list of all available network adapters, including their Adapter IDs, current settings, and status flags, indicating which adapters can participate in a network bridge.help or ?Displays a list of commands and their descriptions in the current context.