Configuration Examples

This appendix contains examples of how to configure selected features available in the TejNOS-EN software. Each example contains procedures on how to configure the feature by using the Web interface, CLI, and SNMP.

NOTE: Since the TejNOS-EN is a single unit system, the port 1/0/x is mentioned as port 0/x (where x = interface number) in the system WUI and CLI.

This appendix describes how to perform the following procedures:

NOTE: Each configuration example starts from a factory-default configuration unless otherwise noted.

Configuring VLANs

The diagram in this section shows a switch with four ports configured to handle the traffic for two VLANs. Port 1/0/2 handles traffic for both VLANs, while port 1/0/1 is a member of VLAN 2 only, and ports 1/0/3 and 1/0/4 are members of VLAN 3 only.

The following examples show how to create VLANs, assign ports to the VLANs, and assign a VLAN as the default VLAN to a port.

VLAN Example Network Diagram

Using the Web Interface to Configure VLANs

  1. Access the Switching > VLAN > Configuration page.
  2. Select the Create option in the VLAN ID List field.
  3. Type 2-3 in the VLAN ID-Individual/Range field.

    VLAN Configuration

  4. Click Submit.
  5. Select VLAN 2 from the VLAN ID List.
  6. From the Participation column in the interface table, select Include for ports 1/0/1 and 1/0/2 to specify that these ports are members of VLAN 2.
  7. Select the Tagging All checkbox to specify that frames will always be transmitted tagged from ports that are members of VLAN 2.

    VLAN Configuration 2

  8. Click Submit.
  9. Select VLAN 3 from the VLAN ID and Name List.
  10. Select the Participate option in the VLAN field.
  11. For ports 1/0/2, 1/0/3 and 1/0/4, select Include from the Participation menu to specify that these ports are members of VLAN 3.
  12. Click Submit.
  13. Go to the Switching > VLAN > Port Configuration page.
  14. From the Interface menu, select 1/0/1.
  15. In the Acceptable Frame Types field, select AdmitTaggedOnly to specify that untagged frames will be rejected on receipt.
  16. Click Submit.
  17. From the Interface menu, select 1/0/2.
  18. In the Port VLAN ID field, enter 3 to assign VLAN 3 as the default VLAN for the port.
  19. In the Acceptable Frame Types field, select AdmitTaggedOnly to specify that untagged frames will be rejected on receipt.

    VLAN Port Configuration

  20. Click Submit.

Using the CLI to Configure VLANs

  1. Create VLAN 2 and VLAN 3.

    (Tejas Networks TejNOS-EN Routing) #vlan database

    vlan 2

    vlan 3

    exit

  2. Assign ports 1/0/1 and 1/0/2 to VLAN2 and specify that untagged frames will be rejected on receipt.

    (Tejas Networks TejNOS-EN Routing) #Config

    interface 1/0/1

    vlan participation include 2

    vlan acceptframe vlanonly

    exit

    interface 1/0/2

    vlan participation include 2

    vlan acceptframe vlanonly

  3. While in interface config mode for port 1/0/2, assign VLAN3 as the default VLAN.

    (Tejas Networks TejNOS-EN Routing) (Interface 1/0/2)#vlan pvid 3

    exit

  4. Specify that frames will always be transmitted tagged from ports that are members of VLAN 2.

    (Tejas Networks TejNOS-EN Routing)(Config)#vlan port tagging all 2

    exit

  5. Assign the ports that will belong to VLAN 3.

    NOTE: Port 1/0/2 belongs to both VLANs, and port 1/0/1 can never belong to VLAN 3.

    (Tejas Networks TejNOS-EN Routing) #Config

    interface 1/0/2

    vlan participation include 3

    exit

    interface 1/0/3

    vlan participation include 3

    exit

    interface 1/0/4

    vlan participation include 3

    exit

    exit

  6. Specify that untagged frames will be accepted on port 1/0/4.

    (Tejas Networks TejNOS-EN Routing) #Config

    interface 1/0/4

    vlan acceptframe all

    exit

    exit

Using the SNMP to Configure VLANs

  1. Use the objects in dot1qVlanStaticTable (in dot1qVlan in the QBRIDGE-MIB module) to create VLANs 2 and 3.

    Set the dot1qVlanStaticRowStatus object to ‘CreateandGo (4)’ to create a VLAN. If the other parameters are not specified, simply specifying the dot1qVlanIndex and dot1qVlanStaticRowStatus is sufficient to create the VLAN.

    The full path to the object is iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).dot1dBridge(17).qBridgeMIB(7). qBridgeMIBObjects(1).dot1qVlan(4).dot1qVlanStaticTable(3).dot1qVlanStaticEntry(1).dot1qVlanStaticRowStatus(5).

    Using the SNMP to Configure VLANs

  2. To assign ports 1/0/1 and 1/0/2 to VLAN2, retrieve the current dot1qStaticEgressPorts mask and append interfaces 1/0/1 and 1/0/2 to this mask by setting the first octet to 0xC0.

    The dot1qVlanStaticEgressPorts bit mask can be constructed according to the following rules:

  3. To specify that frames will always be transmitted tagged from ports that are members of VLAN 2, use the dot1qVlanStaticUntaggedPorts object and set the value of the appropriate number of octets to 0.

    Each octet represents eight ports, so for a 48-port switch, the first six octets would be zero.

  4. To specify that ports 1/0/1 and 1/0/2 will only accept tagged frames and will reject untagged frames on receipt, set the dot1qPortAcceptableFrameTypes object to admitOnlyVlanTagged(2).

    The object is in dot1qPortVlanEntry in the dot1qPortVlanTable.

  5. To assign VLAN3 as the default VLAN for interface 1/0/2., set the value of dot1qPvid for 1/0/2 (instance 2) to 3.
  6. To assign ports 1/0/2, 1/0/3, and 1/0/4 to VLAN3, retrieve the current dot1qStaticEgressPorts mask and append the interfaces to this mask by setting the first octet to 0x70.