Including or Excluding Administrative Groups from LSP Calculations

When a device uses CSPF to calculate the path for an LSP, it takes into account the administrative group to which an interface belongs; the user can specify which administrative groups the device can include or exclude for this calculation.

For example, to include interfaces in either of the administrative groups "gold" and "silver" in the path calculations for LSP tunnel1, complete the following steps.

  1. Enable the device for configuration.
    device# configure
  2. Enable the MPLS router.
    device(config)# router mpls
  3. Enable and configure the label switched path (LSP).
    device(config-router-mpls)# lsp tunnel1
    in this example, the LSP selected is named tunnel1.
  4. Configure to include selected administrative groups
    device(config-router-mpls-lsp-tunnel1)# include-any gold silver

    In this example, the device includes any of the interfaces that are members of groups gold or silver when calculating the path for this LSP. Only those interfaces in the gold or silver groups are considered for the LSP.

Example

device# configure terminal
device(config)# router mpls
device(config-router-mpls)# lsp tunnel1
device(config-router-mpls-lsp-tunnel1)# include-any gold silver

To exclude interfaces in either administrative group gold or silver when the path for LSP tunnel1 is calculated.

In this example, the device excludes any interface that is a member of group gold or silver when it calculates the path for this LSP. Only interfaces that are not part of either group are considered for the LSP.

device(config-router-mpls)# lsp tunnel1
device(config-router-mpls-lsp-tunnel1)# exclude-any gold silver

To specify that an interface must be a member of both the gold or silver administrative groups in order to be included in the path calculations for LSP tunnel1.

In this example, an interface must be a member of all the groups specified in the include-all command in order to be considered for the LSP. Any interface that is not a member of all the groups is eliminated from consideration.

device(config-router-mpls)# lsp tunnel1
device(config-router-mpls-lsp-tunnel1)# include-all gold silver