Mac configuration – ADLINK aTCA-N700 User Manual
Page 54
aTCA-N700 SW Users Guide
48
BCM.0> stg remove 2 3
BCM.0> stg show 2
STG 2: contains 0 VLANs
** Delete STG2.
BCM.0> stg destroy 2
BCM.0> stg show
STG 1: contains 3 VLANs (1,3-4)
Forward: xe
BCM.0>
8.3.5. Mac configuration
Port static mac information is configured by ‘l2’ command.
Usage (L2): Usages:
l2 add [PortBitMap=<pbmp> or Port=<port>] [MACaddress=<mac>]
[Vlanid=<id>]
[Trunk=true|false] [TrunkGroupId=<id>] [STatic=true|false]
[SourceCosPriority=true|false] [DiscardSource=true|false]
[DiscardDest]=true|false] [L3=true|false] [HIT=true|false]
[Replace=true|false] [CPUmirror=true|false] [MIRror=true|false]
[ReplacePriority=true|false] [RemoteLookup=true|false]
[MacBlockPortBitMap=<pbmp>] [Group=<group>]
- Add incrementing L2 addresses associated with port(s)
l2 del [MACaddress=<mac>] [Count=<value>] [Vlanid=<id>]
- Delete incrementing L2 address(s)
l2
show
[PortBitMap=<pbmp]
- Show L2 addresses associated with port(s)
l2 check [hit, valid, static]
- Check full L2 table for valid entries
l2 clear [Module=<n>] [Port=<port>] [MACaddress=<mac>]
[Vlanid=<id>] [TrunkGroupID=<id>] [Static=true|false]
- Remove all L2 entries on the given module, module/port,
VLAN, or trunk group ID
Some examples of mac configuration are shown below.
** Set mac = ’00:00:00:00:00:21’ for port xe0 in L2 table vlan 2.
BCM.0> l2 add pbm=xe0 mac=0x21 v=2 static=true
** Display L2 table.
BCM.0> l2 show
mac=00:00:00:00:00:21 vlan=1 modid=0 port=1/xe0 Static ReplacePriority
** Remove mac ‘00:00:00:00:00:21’ in L2 table.
BCM.0> l2 del mac=0x21 v=2
** Remove all mac information associated with vlan 1 in l2 table.
BCM.0> l2 clear v=1
L2: Deleting static and non-static addresses by VLAN