beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 155

background image

3-73

[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] mpls

[PE2-mpls] mpls te

[PE2-mpls] mpls te cspf

[PE2-mpls] quit

[PE2] interface vlan-interface 2

[PE2-Vlan-interface2] mpls te

[PE2-Vlan-interface2] quit

[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] mpls

[PE1-mpls] mpls rsvp-te

[PE1-mpls] quit

[PE1] interface vlan-interface 2

[PE1-Vlan-interface2] mpls rsvp-te

[PE1-Vlan-interface2] quit

[PE1] interface tunnel 1

[PE1-Tunnel1] ip address 12.1.1.1 255.255.255.0

[PE1-Tunnel1] tunnel-protocol mpls te

[PE1-Tunnel1] destination 3.3.3.3

[PE1-Tunnel1] mpls te tunnel-id 10

[PE1-Tunnel1] mpls te signal-protocol rsvp-te

[PE1-Tunnel1] mpls te commit

[PE1-Tunnel1] quit

Perform the display interface tunnel command on PE 1. You can see that the tunnel interface is up.

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

[PE2] mpls

[PE2-mpls] mpls rsvp-te

[PE2-mpls] quit

[PE2] interface vlan-interface 2

[PE2-Vlan-interface2] mpls rsvp-te

[PE2-Vlan-interface2] quit

[PE2] interface tunnel 1

[PE2-Tunnel1] ip address 12.1.1.2 255.255.255.0

[PE2-Tunnel1] tunnel-protocol mpls te

[PE2-Tunnel1] destination 2.2.2.2

[PE2-Tunnel1] mpls te tunnel-id 10

[PE2-Tunnel1] mpls te signal-protocol rsvp-te