Defining VLAN Rules

Configuring VLAN Rule Definitions

OmniSwitch 6600 Family Network Configuration Guide

April 2006

page 8-21

Defining Custom (User) Rules

A custom rule captures mobile port frames that contain a specified pattern of data at a specified location. 

Custom rules require the user to specify the following parameter values:

To define a custom rule, enter 

vlan

 followed by an existing VLAN ID then 

user

 followed by offset, data 

pattern, and mask values. For example, the following command creates a custom rule for VLAN 310:

-> vlan 310 user 14 e0000000 bb000000

In this example, frames received on a mobile port that contain 

E0 

in the specified data pattern located at 

the 14th byte of the frame qualify for dynamic assignment to VLAN 310.

Use the 

no

 form of the 

vlan user

 command to remove a custom rule. Note that it is only necessary to enter 

the offset and data pattern values to identify which rule to remove.

-> vlan 310 no user 14 e0000000

Defining Port Rules

Port rules do not require mobile port traffic to trigger dynamic assignment. When this type of rule is 

defined, the specified mobile port is immediately assigned to the specified VLAN. As a result, port rules 

are often used for silent network devices, which do not trigger dynamic assignment because they do not 

send traffic.

Port rules only apply to outgoing mobile port broadcast types of traffic and do not classify incoming traf-

fic. In addition, multiple VLANs can have the same port rule defined. The advantage to this is that broad-

cast traffic from multiple VLANs is forwarded out one physical mobile port. When a mobile port is 

specified in a port rule, however, its incoming traffic is still classified for VLAN assignment in the same 

manner as all other mobile port traffic. 

To define a port rule, enter 

vlan

 followed by an existing VLAN ID then 

port

 followed by a mobile 

slot/port

 designation. For example, the following command creates a port rule for VLAN 755:

-> vlan 755 port 2/3

In this example, all traffic on VLAN 755 is flooded out mobile port 2 on slot 3. 

Note that it is possible to define a port rule for a non-mobile (fixed, untagged) port, however, the rule is 

not active until mobility is enabled on the port. 

Use the no form of the 

vlan port

 command to remove a port rule.

-> vlan 755 no port 2/3

Parameter

Definition

offset

A number between 0 and 72. Specifies the number of bytes into the 

frame where the pattern (value) is found.

value

A four byte hex value that specifies a pattern of data (e.g., 60020000).

mask

A four byte hex value that identifies the bytes in the pattern to compare 

to the frame contents at the offset location. Use any hex value in the 

mask

 to mark bytes in the pattern to match and ‘0’ to mark bytes in the 

pattern to ignore (e.g., aaaa0000 is the 

mask

 for the 60020000 

value

 

pattern).

Page 189
Image 189
Open full-size image