In the following a redundant VLAN configuration is presented using only BCAM commands. For this purpose two VLAN-capable and operated device connections are available which are to be operated without tagged frame. The VLAN node must be defined with VLAN-ID=*UNTAGGED.
Dynamic generation
/REMARK Definition of the VLAN devices VLDV1 and VLDV2
/CREATE-VLAN-DEVICE DEVICE-NAME=VLDV1-
/ ,WRITE-DEVICE=60B0-
/ ,READ-DEVICE=60B1-
/ ,LAN-ADDRESS=*DYNAMIC-
/ ,MAX-LPDU-SIZE=*BY-DEVICE
/CREATE-VLAN-DEVICE DEVICE-NAME=VLDV2-
/ ,WRITE-DEVICE=60B2-
/ ,READ-DEVICE=60B3-
/ ,LAN-ADDRESS=*DYNAMIC-
/ ,MAX-LPDU-SIZE=*BY-DEVICE
/REMARK Definition of the VLAN node VLANND1
/CREATE-NODE NODE-NAME=VLANND1-
/ ,IP-SUBNET-MASK=255.255.255.128-
/ ,LAN-TYPE=*VIRTUAL(-
/ VLAN-ID=*UNTAGGED-
/ ,PRIORITY=*STD)
/REMARK Definition of the VLAN lines VLLNR1, VLLRN2
/CREATE-VLAN-LINE LINE-NAME=VLLNR1-
/ ,HOST-NAME=*STD-
/ ,NODE-NAME=VLANND1-
/ ,DEVICE-NAME=VLDV1-
/ ,IP-ADDRESS=139.22.108.24-
/ ,AUTO-ROUTE-SWITCHING=*OFF-
/ ,ROUTE-RESWITCHING=*OFF
/CREATE-VLAN-LINE LINE-NAME=VLLNR2-
/ ,HOST-NAME=*STD-
/ ,NODE-NAME=VLANND1-
/ ,DEVICE-NAME=VLDV2-
/ ,IP-ADDRESS=139.22.108.10-
/ ,AUTO-ROUTE-SWITCHING=*OFF-
/ ,ROUTE-RESWITCHING=*OFF
Note
The definitions of the VLAN lines permit switching operations to be controlled by the AUTO-ROUTE-SWITCHING and ROUTE-RESWITCHING operands which become effective when the VLAN lines are activated. In this example the switching of the routes is suppressed, but this can be changed later with appropriate MODIFY-VLAN-LINE commands.
/MODIFY-VLAN-LINE LINE-NAME=VLLNR1,-
/ ,AUTO-ROUTE-SWITCHING=*ON-
/ ,ROUTE-RESWITCHING=*ON
/MODIFY-VLAN-LINE LINE-NAME=VLLNR2,-
/ ,AUTO-ROUTE-SWITCHING=*ON-
/ ,ROUTE-RESWITCHING=*ON