← 返回命令列表

Linux command

bridge 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

bridge link

Example

bridge vlan

Add

sudo bridge vlan add dev lan0 vid 100 pvid untagged

Remove

sudo bridge vlan delete dev lan0 vid 100

Monitor

bridge monitor

说明

bridge shows and manipulates Linux bridge devices and their forwarding database. It manages bridge ports, VLANs, and FDB entries for Layer 2 switching functionality.

参数

link
List bridge interfaces and ports
vlan
Show or manage VLAN configuration
fdb
Forwarding database management
mdb
Multicast group database management
monitor
Watch for changes in bridge configuration
add
Add VLAN or FDB entry
delete
Remove VLAN or FDB entry
vid _vlan-id_
VLAN identifier (1-4094)
pvid
Set as port VLAN ID
tagged/untagged
VLAN tagging mode

FAQ

What is the bridge command used for?

bridge shows and manipulates Linux bridge devices and their forwarding database. It manages bridge ports, VLANs, and FDB entries for Layer 2 switching functionality.

How do I run a basic bridge example?

Run `bridge link` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does link do in bridge?

List bridge interfaces and ports