To create a new VLAN, use the vlan create command. For example, the following
command creates a new VLAN with ID=5 which includes ports xe2 & xe5 in both tagged
and untagged mode:
BCM.0> vlan create 5 pbm=xe2,xe5 ubm=xe2,xe5
To add ports to an existing VLAN, use the vlan add command. For example, the following
command adds port xe0 to VLAN 10 in tagged mode:
BCM.0> vlan add 10 pbm=xe0
To remove ports from an existing VLAN, use the vlan remove command. For example, the
following command removes port xe2 from VLAN 5:
BCM.0> vlan remove 5 pbm=xe2
To display the default VLAN IDs for all ports, use the pvlan show command.
To modify the default VLAN ID for a port, or ports, use the pvlan set command. For
example, the following command sets the default VLAN ID to 10 for ports xe2 & xe5:
BCM.0> pvlan set pbm=xe2,xe3 10
Port Mirroring
First you must configure a mirror destination. This is the port (referred as the destport)
where the mirrored packets are replicated to. The mirror dest create API returns a mirror
ID. This ID is then used in all further mirror API commands. The first ID defaults to
0x3c000000. Next the user calls the mirror dest add command to attach a port (referred
as the srcport) to an already created mirror ID. This source port is where the mirrored
packets come from. The mirror dest add API command also takes a mode parameter which
specifies whether to replicate Ingress, Egress, or both types of packets. The mode
parameter values can be Ingress, Egress, or IngressEgress.
Example commands to replicate Ingress and Egress packets from xe0 to xe1 (using
bcm.user.proxy):
BCM.0> mir dest create id=0 destport=xe1
BCM.0> mir dest add id=0x3c000000, mode=IngressEgress
srcport=xe0
To display the mirror configurations:
BCM.0> mir show
BCM.0> mir dest show
To remove the example mirror configuration:
BCM.0> mir dest delete id=0x3c000000 mode=IngressEgress
srcport=xe0
MC1600 Extreme Edge Server Installation and Use (6806870A02B)
Software Configuration
107
Need help?
Do you have a question about the MC1600 and is the answer not in the manual?