
132
[RouterB] interface tunnel 4
[RouterB-Tunnel4] ip address 10.1.1.1 255.255.255.0
[RouterB-Tunnel4] tunnel-protocol mpls te
[RouterB-Tunnel4] destination 3.3.3.3
[RouterB-Tunnel4] mpls te tunnel-id 10
# Configure IGP shortcut.
[RouterB-Tunnel4] mpls te igp shortcut
[RouterB-Tunnel4] mpls te igp metric relative -1
[RouterB-Tunnel4] mpls te commit
# Enable MPLS.
[RouterB-Tunnel4] mpls
[RouterB-Tunnel4] quit
# Configure OSPF TE.
[RouterB] ospf
[RouterB-ospf-1] opaque-capability enable
[RouterB-ospf-1] enable traffic-adjustment
[RouterB-ospf-1] area 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] mpls-te enable
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
After the configuration, execute the
display interface tunnel
command on Router B. The
output shows that tunnel interface Tunnel 4 is up.
[RouterB] display interface tunnel
Tunnel4 current state: UP
Line protocol current state: UP
Description: Tunnel4 Interface
The Maximum Transmit Unit is 64000
Internet Address is 10.1.1.1/24 Primary
Encapsulation is TUNNEL, service-loopback-group ID not set.
Tunnel source unknown, destination 3.3.3.3
Tunnel protocol/transport CR_LSP
Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0
Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0
Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0
Last 300 seconds input: 0 bytes/sec, 0 packets/sec
Last 300 seconds output: 8 bytes/sec, 0 packets/sec
0 packets input, 0 bytes
0 input error
47 packets output, 2740 bytes
0 output error
Execute the
display ip routing-table
command on Router B. The output shows that the
outgoing interface to Router C is the tunnel interface Tunnel 4.
[RouterB] display ip routing-table
Routing Tables: Public
Destinations : 12 Routes : 12
Destination/Mask Proto Pre Cost NextHop Interface