The source-lifetime command specifies the timeout period of (S, G) entries on the switch.
The undo source-lifetime command restores the default value of the timeout period.
By default, the timeout period is 210 seconds.
source-lifetime { interval | infinity } [ group-policy acl6-number ]
undo source-lifetime
undo source-lifetime { interval | infinity } [ group-policy acl6-number ]
Parameter | Description | Value |
---|---|---|
interval | Specifies the timeout period of (S, G) entries on the switch. | The value is an integer that ranges from 60 to 65535, in seconds. |
infinity | Indicates that (S, G) entries on the switch will never age out. | - |
group-policy | Specifies a group policy to determine to which the configured timeout period takes effect. | - |
acl6-number | Specifies the number of a basic or advanced ACL. | The value is an integer that ranges from 2000 to 3999. |
Usage Scenario
A switch creates a timer for each (S, G) entry. The source-lifetime command is used to set the value of the timer. After receiving a multicast packet from S, the interface resets the timer. If the timer times out, the (S, G) entry is considered invalid.
If you run this command multiple times for the same range of multicast forwarding entries and specify interval and infinity respectively in the commands, infinity takes precedence over interval.
Prerequisites
IPv6 multicast routing has been enabled using the multicast ipv6 routing-enable command in the system view.
Precautions
This command is valid for both PIM-DM (IPv6) and PIM-SM (IPv6).