Spanning-tree group configuration – ADLINK aTCA-N700 User Manual

Page 53

Advertising
background image

aTCA-N700 SW Users Guide

47

- Set default VLAN tag for port(s)
Port bitmaps are read from the VTABLE entry for the VID.
<vid> must have been created and all ports in <pbmp> must
belong to that VLAN.


Some examples of the pvlan command are described in the following.

** Set port xe0, xe2 default vlan= 2.


BCM.0> pvlan xe0,xe2 2


** Display port xe0, xe2 default vlan information.


BCM.0> pvlan show xe0,xe2
Port xe0 default VLAN is 2
Port xe2 default VLAN is 2


8.3.4. Spanning-tree group configuration


For STG (Spanning-Tree Group) STG 1 contains all vlans and forwards all ports. STG
usage is as shown below.


Usage (STG): Usages:

stg create [<id>] - Create a STG; optionally specify ID

stg destroy <id> - Destroy a STG

stg show [<id>] - List STG(s)

stg add <id> <vlan_id> [...] - Add VLAN(s) to a STG

stg remove <id> <vlan_id> [...] - Remove VLAN(s) from a STG

stg stp - Get span tree state, all ports/STGs

stg stp <id> - Get span tree state of ports in STG

stg stp <id> <pbmp> <state> - Set span tree state of ports in STG

(disable/block/listen/learn/forward)

stg default [<id>] - Show or set the default STG


Some examples of the STG command are described in the following.

** Create STG 2.


BCM.0> stg create 2
BCM.0> stg show 2
STG 2: contains 0 VLANs


** Add vlan 3 in STG 2.


BCM.0> stg add 2 3
BCM.0> stg show 2
STG 2: contains 1 VLAN (3)


** Configure span tree state to be forward for STG 2 port xe0, xe2.


BCM.0> stg stp 2 xe0,xe2 forward
BCM.0> stg stp 2
STG 2:
Disable: xe1,xe3-xe34

Forward: xe0,xe2


** Remove vlan 3 from STG 2.

Advertising