Содержание

VLAN Traffic Handling

The vlan group data has been moved from UDR to SDR. Global rules for vlan drop, vlan pass, vlan hide, vlan permit previously set by the old CLI command vlan group have been converted and moved from UDR to SDR, being removed from UDR.
  1. Drop traffic without analysis from a specific VLAN:
    fdpi_cli vlan rule add <id> perm drop
  2. Drop traffic with preliminary analysis but without passing it to Netflow statistics from a specific VLAN (Used for asymmetric traffic when a copy of traffic from another site is fed to the site. It is necessary to analyze and drop the traffic so that it does not end up in statistics):
    fdpi_cli vlan rule add <id> perm hide
  3. Pass traffic without any analysis from a specific VLAN:
    fdpi_cli vlan rule add <id> perm pass
  4. Display existing settings in UDR:
    fdpi_cli vlan rule dump

    To display rules of only a specific type (e.g., only perm), the [type] parameter is used:

    fdpi_cli vlan rule dump perm

    Example command output:

    # fdpi_cli vlan rule dump 
    1000  perm hide
    2000  perm drop
    3000  perm pass
    4000  perm hide

    In this example, all protocols related to VLAN 1000 and 4000 are subject to hide, i.e., traffic from one site is duplicated to another site; VLAN 2000 — traffic is dropped, VLAN 3000 — traffic is passed.

For more details, see the section Configuring Service-Name for VLAN

VLAN Rule

VLAN Rule allows flexible management of network traffic at the VLAN and QinQ level, assigning specific packet processing policies for individual VLANs, VLAN ranges, or QinQ tunnels.

Rule Types

The following rule types are supported:

Syntax for VLAN/QinQ Range Description

Rules apply to ranges specified in the following format:

Rules for ordinary VLANs (67) and QinQ (67.*) are independent and do not overlap.

Service-Name Support for QinQ Rules with Service-Name work correctly for QinQ:

Rule Priority

If ranges of several rules overlap, the system determines the resulting action based on the "general to specific" principle:

  1. First, rules with the broadest ranges (e.g., 1-4095 or any.any) are applied.
  2. Then rules with narrower ranges (e.g., 100-200) can override the action set by the general rules.

Example:
The following rules will create the policy: "Disable DHCP for all VLANs in the range 300-700, but enable it for VLAN 645 and the range 430-439".

vlan rule add 300-700 dhcp disable
vlan rule add 645 dhcp enable
vlan rule add 430-439 dhcp enable

Management

When using * in the CLI for QinQ ranges, it is recommended to enclose the expression in quotes (e.g., '*.68' ) or use the keyword any (e.g., any.68) to avoid incorrect interpretation of the * character by the bash shell.

Change application specifics: Changes to rules made with add, modify, or delete are saved in SDR and automatically applied by the system 5 minutes after the last modification. The vlan rule apply command allows you to apply them forcefully, but no more than once per minute.

Using VLAN Rule in BALANCER

VLAN rules can also be used by the BALANCER component for packet filtering. This allows, at the traffic balancing stage, to filter out unwanted VLAN/QinQ before they reach the main processing modules.