beautypg.com

H3C Technologies H3C S10500 Series Switches User Manual

Page 164

background image

153

127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0

2.

Configure basic MPLS TE, and enable RSVP-TE and CSPF

# Configure PE 1.

[PE1] mpls lsr-id 2.2.2.2

[PE1] mpls

[PE1-mpls] lsp-trigger all

[PE1-mpls] mpls te

[PE1-mpls] mpls rsvp-te

[PE1-mpls] mpls te cspf

[PE1-mpls] quit

[PE1] interface vlan-interface 2

[PE1-Vlan-interface2] mpls

[PE1-Vlan-interface2] mpls te

[PE1-Vlan-interface2] mpls rsvp-te

[PE1-Vlan-interface2] quit

# Configure PE 2.

[PE2] mpls lsr-id 3.3.3.3

[PE2] mpls

[PE2-mpls] lsp-trigger all

[PE2-mpls] mpls te

[PE2-mpls] mpls rsvp-te

[PE2-mpls] mpls te cspf

[PE2-mpls] quit

[PE2] interface vlan-interface 2

[PE2-Vlan-interface2] mpls

[PE2-Vlan-interface2] mpls te

[PE2-Vlan-interface2] mpls rsvp-te

[PE2-Vlan-interface2] quit

3.

Enable OSPF TE

# Configure PE 1.

[PE1] ospf

[PE1-ospf-1] opaque-capability enable

[PE1-ospf-1] area 0

[PE1-ospf-1-area-0.0.0.0] mpls-te enable

[PE1-ospf-1-area-0.0.0.0] quit

[PE1-ospf-1] quit

# Configure PE 2.

[PE2] ospf

[PE2-ospf-1] opaque-capability enable

[PE2-ospf-1] area 0

[PE2-ospf-1-area-0.0.0.0] mpls-te enable

[PE2-ospf-1-area-0.0.0.0] quit

[PE2-ospf-1] quit

4.

Configure an MPLS TE tunnel

# Create a TE tunnel with PE 1 as the headend and PE 2 as the tail. The signaling protocol is RSVP-TE.

[PE1] interface tunnel 1