The source-lifetime command specifies the timeout period of (S, G) or (*, 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 acl-number ]
undo source-lifetime
undo source-lifetime { interval | infinity } [ group-policy acl-number ]
Parameter | Description | Value |
---|---|---|
interval | Specifies the timeout period of (S, G) or (*, 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. | - |
acl-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 starts a timer for each (S, G) or (*, G) entry. The source-lifetime command sets the timer value. After receiving a multicast packet from S, the interface resets the timer. If the timer times out, the (S, G) or (*, 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
IP multicast routing has been enabled using the multicast routing-enable command.
Precautions
This command is valid for both PIM-DM and PIM-SM.