create bridge

Creates a virtual bridge to connect multiple ports and devices.

Syntax

create bridge bridge-name

Command Default

No bridges are defined.

Parameters

bridge-name
Specifies a unique name for the bridge. A valid name must begin with an alphanumeric character. No special characters are allowed, except for the underscore (_) and hyphen (-).

Modes

vShell prompt (vsh)

Usage Guidelines

A bridge forwards all traffic received by one port to all other entities connected to the bridge.

To connect as many entities as required to the bridge, use the link bridge command.

To log into vShell and run this command, enter the user@ubuntu:~$ vsh create bridge command.

To delete a bridge, use the delete bridge command.

Examples

The following example shows how to create a bridge.

(vsh) create bridge bridge_01

The following example shows how to create a bridge, link two routers and a host through the bridge, display the links, and display the bridge summary.

(vsh) create bridge BR1 
(vsh) create link -bridge BR1 RT1 4/10
(vsh) create link -bridge BR1 RT2 5/12
(vsh) create link -bridge BR1 host1 0/1
(vsh) show link
 Name           Port        Name           Port           State
 .....................................................................
 RT1            4/10   <--> BR1          [bridge]         Up
 RT2            5/12   <--> BR1          [bridge]         Up
 host1          0/1    <--> BR1          [bridge]         Up

(vsh) show bridge
 Name           No.connections
 ....................................
 BR1            3