The following shows an example S- K- and 7100-Series device Protocol-Based VLAN Classification configuration using the steps in Configuring Protocol-Based VLAN Classification. This example configures a policy that ensures that IP traffic received on the specified ingress ports will be mapped to VLAN 2, while all other types of traffic will be mapped to VLAN 3.
System(rw)->set vlan create 2,3 System(rw)->set vlan egress 2 ge.4.1-2 System(rw)->set vlan egress 3 ge.4.3-5 System(rw)->set port ingress-filter ge.5.8-10 disable System(rw)->set policy profile 1 name protocol_based_vlan pvid-status enable pvid 3 System(rw)->set policy rule admin-profile port ge.5.8 port-string ge.5.8 admin-pid 1 System(rw)->set policy rule admin-profile port ge.5.9 port-string ge.5.9 admin-pid 1 System(rw)->set policy rule admin-profile port ge.5.10 port-string ge.5.10 admin-pid 1 System(rw)->set policy rule 1 ether 0x0800 mask 16 vlan 2 System(rw)->set policy rule 1 ether 0x0806 mask 16 vlan 2 System(rw)->set policy rule 1 ether 0x8035 mask 16 vlan 2