393
session max-entries
Use
session max-entries
to set the maximum number of sessions.
Use
undo session max-entries
to cancel the upper limit.
Syntax
In standalone mode:
session max-entries
max-entries
slot
slot-number
undo session max-entries
[
max-entries
]
slot
slot-number
In IRF mode:
session max-entries
max-entries
chassis
chassis-number
slot
slot-number
undo session max-entries
[
max-entries
]
chassis
chassis-number
slot
slot-number
Default
The maximum number of sessions depends on the device model.
Views
System view
Default command level
2: System level
Parameters
max-entries
: Specifies the maximum number of sessions. The value range is 1 to 10000000.
slot
slot-number
: Specifies a card by its slot number. The
slot-number
argument represents the
number of the slot where the card resides. (In standalone mode.)
chassis
chassis-number
slot
slot-number
: Specifies a card on a member device. The
chassis-number
argument specifies the ID of the IRF member device. The
slot-number
argument
specifies the number of the slot that holds the card. (In IRF mode)
Usage guidelines
For distributed devices, you can set the maximum number of sessions based on slots.
The maximum number should not exceed the session count specification of a device or a card.
Examples
# Set the maximum number of sessions to 100000.
<Sysname> system
[Sysname] session max-entries 100000
session persist acl
Use
session persist acl
to specify the persistent session rule. All sessions permitted by the
specified ACL are considered persistent sessions.
Use
undo session persist
to remove the configuration.
Syntax
session persist acl
acl-number
[
aging-time
[
seconds
]
time-value
]
undo session persist