< Home

source-lifetime (IPv6)

Function

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.

Format

source-lifetime { interval | infinity } [ group-policy acl6-number ]

undo source-lifetime

undo source-lifetime { interval | infinity } [ group-policy acl6-number ]

Parameters

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.

Views

PIM-IPv6 view

Default Level

2: Configuration level

Usage Guidelines

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 configure source-lifetime interval, the configured timeout period applies to all (S, G) entries.
  • If you configure source-lifetime interval { group-policy acl6-number }:
    • If you specify an advanced ACL name in the command, the configured timeout period applies to the (S, G) entries in which the source and group addresses are permitted by the specified ACL.
    • If you specify a basic ACL number in the command, the configured timeout period applies to the (S, G) entries in which the source addresses are permitted by the specified ACL.
    • If you specify an advanced ACL number in the command, the configured timeout period applies to the (S, G) entries in which the source and group addresses are permitted by the specified ACL.
  • If you configure source-lifetime infinity, all (S, G) entries will never age out.
  • If you configure source-lifetime infinity { group-policy acl6-number }:
    • If you specify an advanced ACL name in the command, the (S, G) entries in which the source and group addresses are permitted by the specified ACL will never age out.
    • If you specify a basic ACL number in the command, the (S, G) entries in which the source addresses are permitted by the specified ACL will never age out.
    • If you specify an advanced ACL number in the command, the (S, G) entries in which the source and group addresses are permitted by the specified ACL will never age out.

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).

Example

# Set the timeout period of (S, G) entries on the switch to 200 seconds.

<HUAWEI> system-view
[HUAWEI] multicast ipv6 routing-enable
[HUAWEI] pim-ipv6
[HUAWEI-pim6] source-lifetime 200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >