Example Configuration

The following shows an example S- K- and 7100-Series device VLAN configuration using the steps in Static VLAN Configuration. In this example, VLAN 100 is created and named VLANRED. Ports ge.1.2, 1.3 and 1.4 are assigned to VLAN 100 and added to its egress list. VLAN 100 is then configured as a routing interface with an IP address of 120.20.20.24.

System(rw)->set vlan create 100
System(rw)->set vlan name 100 VLANRED
System(rw)->set port vlan ge.1.2-4 100
    The PVID is used to classify untagged frames as they
    ingress into a given port.  Would you like to add the selected
    port(s) to this VLAN's untagged egress list and remove them
    from all other VLANs untagged egress list (y/n)  [n]? y
    NOTE:  Choosing 'y' will not remove the port(s) from previously
    configured tagged egress lists.
System(rw)->router
System(rw)-router)->configure terminal
System(rw)-router-config)->interface vlan 100
System(rw)-router-config-intf-Vlan-100)->ip address 120.20.20.1/24
System(rw)-router(config-intf-Vlan-100)->no shutdown

If you want to configure a port to drop incoming frames that do not have a VLAN ID that matches a VLAN ID on the port‘s egress list, use the set port ingress-filter command. For example:

System(rw)->set port ingress-filter ge.1.2-4 enable

If you want to configure a port to discard tagged or untagged incoming frames, use the set port discard command. For example, to configure the ports to drop tagged frames on ingress:

System(rw)->set port discard ge.1.2-4 tagged