openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

swirl_ge_bc.soc (1017B)


      1 #
      2 # 
      3 #
      4 # This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      5 # 
      6 # Copyright 2007-2019 Broadcom Inc. All rights reserved.
      7 
      8 #Ports 0-1 configuration
      9 set rcerror=F
     10 vlan destroy 10
     11 vlan destroy 20
     12 
     13 port ge0 SP=1000 LB=MAC AF=F EN=T
     14 port ge1 SP=1000 LB=MAC AF=F EN=T
     15 
     16 s epc_link 0xffffffff
     17 #m config tag_en=1
     18 #clear vtable
     19 #clear ptable
     20 #modify pvlan 0 1 vlan_tag=10 port_bitmap=0x3 ut_port_bitmap=0x3 sp_st=3 cml=2
     21 #modify pvlan 1 1 vlan_tag=10 port_bitmap=0x3 ut_port_bitmap=0x3 sp_st=3 cml=2
     22 #l2 add PBM=ge0 MAC=00:00:00:00:00:01 V=10 ST=T
     23 #l2 add PBM=ge1 MAC=00:00:00:00:00:01 V=10 ST=T
     24 
     25 vlan create 10 PBM=ge0,ge1 UBM=ge0,ge1
     26 pvlan set ge0 10
     27 pvlan set ge1 10
     28 
     29 tx 1 PBM=0x1 UBM=0x1 L=68 VL=10 P=0x12345678 PI=1 SM=00:00:00:00:00:02 SMI=0 DM=ff:ff:ff:ff:ff:ff DMI=0 COS=0 CRC=Recompute
     30 tx 1 PBM=0x2 UBM=0x2 L=68 VL=10 P=0x12345678 PI=1 SM=00:00:00:00:00:02 SMI=0 DM=ff:ff:ff:ff:ff:ff DMI=0 COS=0 CRC=Recompute
     31 
     32 loop * "show counters"
     33 
     34 
     35 
     36