beautypg.com

Configuring a bidirectional mpls te tunnel, Label advertisement control configuration example – H3C Technologies H3C S12500-X Series Switches User Manual

Page 63

background image

52

Step Command

Remarks

2.

Configure a static route to

direct traffic to an MPLS TE
tunnel.

For information about static routing
commands, see Layer 3—IP

Routing Command Reference.

By default, no static route exists on
the device.
The interface specified in this
command must be an MPLS TE

tunnel interface.

Configuring PBR to direct traffic to an MPLS TE tunnel

For more information about the commands in this task, see Layer 3—IP Routing Command Reference.
To configure PBR to direct traffic to an MPLS TE tunnel:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Create a PBR policy
node and enter policy

node view.

policy-based-route policy-name [ deny | permit ]
node node-number

By default, no PBR
policy node is created.

3.

Configure an ACL
match criterion.

if-match acl { acl-number | name acl-name }

By default, no ACL
match criterion is

configured.

4.

Specify a tunnel
interface as the packet

output interface.

apply output-interface { tunnel tunnel-number [ track
track-entry-number ] }&<1-n>

N/A

5.

Return to system view.

quit

N/A

6.

Apply the PBR policy.

To apply the policy to the local device:

ip local policy-based-route policy-name

To apply the policy to an interface:

a.

interface interface-type interface-number

b.

ip policy-based-route policy-name

Use either method.
By default, no policy is
applied.

Configuring a bidirectional MPLS TE tunnel

Before you create a bidirectional MPLS TE tunnel, complete the following tasks:

Disable the PHP function on both ends of the tunnel to assign a non-null label to the penultimate
hop.

To set up a bidirectional MPLS TE tunnel in co-routed mode, you must specify the signaling protocol
as RSVP-TE, and use the mpls te resv-style command to configure the resources reservation style as

FF for the tunnel.

To set up a bidirectional MPLS TE tunnel in associated mode and use RSVP-TE to set up one CRLSP
of the tunnel, you must use the mpls te resv-style command to configure the resources reservation

style as FF for the CR-LSP.

To create a bidirectional MPLS TE tunnel, create an MPLS TE tunnel interface on both ends of the tunnel

and enable the bidirectional tunnel function on the tunnel interfaces: