< Home

cluster session-sync filter id

Function

The cluster session-sync filter id command sets conditions for filtering cluster session synchronization information.

The undo cluster session-sync filter id command cancels the setting.

Format

cluster session-sync filter id id { exclude | include } { protocol { protocol-type [ port port-number ] | protocol-number } | existed-time existed-time } *

undo cluster session-sync filter id id

Parameters

Parameter Description Value
id

Specifies the ID of a filtering rule.

The value is an integer ranging from 0 to 31.

exclude

Indicates that session backup is based on exclusion filtering rules. If this parameter is set, the rule with include cannot be configured.

-

include

Indicates that session backup is based on inclusion filtering rules. If this parameter is set, the rule with exclude cannot be configured.

-

protocol-type

Indicates the protocol.

  • gre: GRE
  • icmp: ICMP
  • sctp: SCTP. If this parameter is used, a port number needs to be specified.
  • tcp: TCP. If this parameter is used, a port number needs to be specified.
  • udp: UDP If this parameter is used, a port number needs to be specified.
port port-number

Specifies the port number used by the protocol.

The value is an integer ranging from 1 to 65535.

protocol-number

Specifies a protocol number.

The value is an integer ranging from 0 to 255.

existed-time existed-time

Specifies the duration of a session.

The value is an integer ranging from 0 to 86400, in seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

After a cluster is built, the session backup traffic between member devices is heavy. If the actual link bandwidth is insufficient, the function for filtering session backup information can be used to back up only required sessions, reducing the bandwidth for session backup. Note that after the function for filtering session backup information is configured, services may be temporarily interrupted due to incomplete backup of session entries when a fault occurs.

Precautions

When multiple filtering conditions are configured, the device matches sessions with filtering rules in an ascending order of their IDs. If a session matches a rule, the other rules are ignored. When a session matches a rule, the session is not backed up if exclude is set and is backed up if include is set.

Before running the cluster session-sync filter id command, run the cluster session-sync filter enable command to enable the function for filtering cluster session information.

Example

# Configure the device to back up only GRE sessions.

C_No2_M<sysname> system-view
C_No2_M[sysname] cluster session-sync filter enable
C_No2_M[sysname] cluster session-sync filter id 1 include protocol gre
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >