This is an old revision of the document!
Traffic Processing by VLAN
vlan group data has been moved from UDR to SDR. Global rules for vlan drop, vlan pass, vlan hide, and vlan permit defined via the legacy vlan group CLI command have been converted and migrated from UDR to SDR, with removal from UDR.
- Drop traffic without analysis from a specific VLAN:
fdpi_cli vlan rule add <id> perm drop
- Drop traffic with prior analysis but without NetFlow export from a specific VLAN (used for asymmetric traffic scenarios where duplicate traffic from another site is delivered to the node. Traffic must be analyzed and dropped so it does not enter statistics):
fdpi_cli vlan rule add <id> perm hide
- Pass traffic without any analysis from a specific VLAN:
fdpi_cli vlan rule add <id> perm pass
- Display current settings in SDR:
fdpi_cli vlan rule dump
CLI update (vlan rule dump)
Added the ability to filter output by rule type:
Format:
vlan rule dump [type]
type — rule type: perm, dhcp, all (default)
Examples:
vlan rule dump perm
vlan rule dump dhcp
vlan rule dump
VLAN Rule
VLAN Rule provides flexible traffic management at the VLAN and QinQ level, allowing assignment of packet processing policies for individual VLANs, VLAN ranges, or QinQ tunnels.
Rule types
The following rule types are supported:
dhcp— controls DHCP request processing.dhcp enable— allow DHCP processing in this VLAN/QinQ.dhcp disable— disable DHCP processing. All DHCP packets in this VLAN/QinQ will be dropped.
perm— defines the base processing behavior for all traffic in a VLAN/QinQ.drop— fully drop all packets. Packets are not processed further and are not included in NetFlow statistics.pass— pass packets without processing. Packets are included in NetFlow statistics.accept— pass packets for full system processing. Packets are included in NetFlow statistics.hide— packets go through internal processing stages (with exceptions) but are dropped after processing. In this case:- packets are not included in NetFlow statistics;
- services 9, 12, 15, 18, NAT, and policing (global and per-channel) are not applied;
- packets are not recorded via ajb — IPFIX, SIP, FTP, etc.
PPPoE support (VLAN Rule)
PPPoE traffic processing support has been added to VLAN rules.
PPPoE rules:
vlan rule add <Range> pppoe [enable | drop | pass | delay N]
PPPoE rules with Service-Name filtering:
vlan rule add <Range> pppoe sname <Service-Name> [enable | drop | pass | delay N]
Permissions:
enable— allow PPPoE processingdrop— drop PPPoE packetspass— pass PPPoE packets without processingdelay N— establish PPPoE session with N-second delay (0 < N < 16)
VLAN/QinQ range syntax
Rules are applied to ranges defined as follows:
- Single VLAN:
156 - VLAN range:
56-78 - Any VLAN:
*orany - QinQ:
67.*or67.any— S-VLAN=67, any C-VLAN*.68orany.68— any S-VLAN, C-VLAN=68*.*orany.any— any QinQ12-156.78-90— S-VLAN range [12..156], C-VLAN range [78..90]609.1-199— S-VLAN=609, C-VLAN range [1..199]
67) and QinQ (67.*) are independent and do not overlap.
Rule priority
If rule ranges overlap, the system determines the final action using a "from general to specific" approach:
- First, rules with the widest ranges are applied (e.g., 1-4095 or any.any)
- Then more specific rules may override them
Example:
vlan rule add 300-700 dhcp disable vlan rule add 645 dhcp enable vlan rule add 430-439 dhcp enable
Management
vlan rule add— add a new rule to SDRvlan rule modify— modify an existing rule in SDRvlan rule delete— delete a rule from SDRvlan rule show— display all rules for a VLAN/QinQvlan rule dump— output rules from SDRvlan rule purge vlan/qinq/all— clear VLAN/QinQ rules in SDR or bothvlan rule apply— force rule application (no more than once per minute)
* in CLI for QinQ ranges, it is recommended to enclose expressions in quotes or use any.
Change application behavior: changes are stored in SDR and automatically applied after 5 minutes since the last modification.
Was this information helpful?