Creating and linking a bridge

Use this task to create a bridge and link it to devices.

A bridge enables you to connect a port to more than one additional port or other entity. The bridge forwards all traffic received by one entity to all other entities connected to the bridge.
  1. Enter the create bridge command.
    (vsh) create bridge BR1
  2. Enter the required create link commands.
    (vsh) create link -bridge BR1 RT1 4/10
    (vsh) create link -bridge BR1 RT2 5/12
    (vsh) create link -bridge BR1 host1 0/1

Example

The following example shows how to create a bridge, link two devices 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