 Note |
This example does not include the mpls traffic-eng auto-tunnel backup nhop-only command because autotunneling would not be able to create any backup tunnels.
|
To determine if there are any backup tunnels, enter the show ip rsvp fast-reroute command. This example shows that there is a static configured primary tunnel and no backup tunnels.
Router(config)# show ip rsvp fast-reroute
Primary Protect BW Backup
Tunnel I/F BPS:Type Tunnel:Label State Level Type
------ ------- ------- ------------ ------ ----- ----
R3-PRP_t0 PO3/1 0:G None None None
The following command causes autotunnels to automatically configure NHOP and NNHOP backup tunnels:
Router(config)# mpls traffic-eng auto-tunnel backup
As illustrated in the show ip interface brief command output, autotunneling created two backup tunnels that have tunnel IDs 65436 and 65437:
Router# show ip interface brief
Interface IP-Address OK? Method Status Protocol
POS2/0 10.0.0.14 YES NVRAM down down
POS2/1 10.0.0.49 YES NVRAM up up
POS2/2 10.0.0.45 YES NVRAM up up
POS2/3 10.0.0.57 YES NVRAM administratively down down
POS3/0 10.0.0.18 YES NVRAM down down
POS3/1 10.0.0.33 YES NVRAM up up
POS3/2 unassigned YES NVRAM administratively down down
POS3/3 unassigned YES NVRAM administratively down down
GigabitEthernet4/0 10.0.0.37 YES NVRAM up up
GigabitEthernet4/1 unassigned YES NVRAM administratively down down
GigabitEthernet4/2 unassigned YES NVRAM administratively down down
Loopback0 10.0.3.1 YES NVRAM up up
Tunnel0 10.0.3.1 YES unset up up
Tunnel65436 10.0.3.1 YES unset up up
Tunnel65437 10.0.3.1 YES unset up up
Ethernet0 10.3.38.3 YES NVRAM up up
Ethernet1 unassigned YES NVRAM administratively down down
R3-PRP#
The following command prevents autotunneling from creating NNHOP backup tunnels:
Router# mpls traffic-eng auto-tunnel backup nhop-only
The “Type” field in the following show ip rsvp fast-reroute command shows that there is only an NHOP tunnel:
Router# show ip rsvp fast-reroute
Primary Protect BW Backup
Tunnel I/F BPS:Type Tunnel:Label State Level Type
------ ------- -------- ------------- ------ ------- ----
R3-PRP_t0 PO3/1 0:G Tu65436:24 Ready any-unl Nhop
The following command changes the minimum and maximum tunnel interface numbers to 1000 and 1100, respectively:
Router# mpls traffic-eng auto-tunnel backup tunnel-num min 1000 max 1100
You can verify the ID numbers and autotunnel backup range ID by entering the show ip rsvp fast-reroute and show ip interface brief commands. In this example, only one backup tunnel is protecting the primary tunnel:
Router# show ip rsvp fast-reroute
Primary Protect BW Backup
Tunnel I/F BPS:Type Tunnel:Label State Level Type
------ ------- -------- ------------- ------ ----- ------
R3-PRP_t0 PO3/1 0:G Tu1000:24 Ready any-unl Nhop
Router# show ip interface brief
Interface IP-Address OK? Method Status Protocol
POS2/0 10.0.0.14 YES NVRAM down down
POS2/1 10.0.0.49 YES NVRAM up up
POS2/2 10.0.0.45 YES NVRAM up up
POS2/3 10.0.0.57 YES NVRAM administratively down down
POS3/0 10.0.0.18 YES NVRAM down down
POS3/1 10.0.0.33 YES NVRAM up up
POS3/2 unassigned YES NVRAM administratively down down
POS3/3 unassigned YES NVRAM administratively down down
GigabitEthernet4/0 10.0.0.37 YES NVRAM up up
GigabitEthernet4/1 unassigned YES NVRAM administratively down down
GigabitEthernet4/2 unassigned YES NVRAM administratively down down
Loopback0 10.0.3.1 YES NVRAM up up
Tunnel0 10.0.3.1 YES unset up up
Tunnel65436 10.0.3.1 YES unset up up
Ethernet0 10.3.38.3 YES NVRAM up up
Ethernet1 unassigned YES NVRAM administratively down down
The default tunnel range for autotunnel backup tunnels is 65,436 through 65,535. The following show ip rsvp fast-reroute command changes the tunnel range IDs:
Router# show ip rsvp fast-reroute
Primary Protect BW Backup
Tunnel I/F BPS:Type Tunnel:Label State Level Type
------ ------- -------- ------------- ------ ----- ------
R3-PRP_t0 PO3/1 0:G Tu1001:0 Ready any-unl N-Nhop
The results are shown in the show ip interface brief command:
Router# show ip interface
Router# show ip interface brief
Interface UP-Address OK? Method Status Protocol
POS2/0 10.0.0.14 YES NVRAM down down
POS2/1 10.0.0.49 YES NVRAM up up
POS2/2 10.0.0.45 YES NVRAM up up
POS2/3 10.0.0.57 YES NVRAM up up
POS3/0 10.0.0.18 YES NVRAM up up
POS3/1 10.0.0.33 YES NVRAM up up
POS3/2 unassigned YES NVRAM administratively down down
POS3/3 unassigned YES NVRAM administratively down down
Loopback0 10.0.3.1 YES NVRAM up up
Tunnel0 10.0.3.1 YES unset up up
Tunnel1000 10.0.3.1 YES unset up up
Tunnel1001 10.0.3.1 YES unset up up
Ethernet0 10.3.38.3 YES NVRAM up up
Ethernet1 unassigned YES NVRAM administratively down down
The following mpls traffic-eng auto-tunnel backup timers removal unused command specifies that a timer will scan backup autotunnels every 50 seconds and the timer will remove tunnels that are not being used:
Router(config)# mpls traffic-eng auto-tunnel backup timers removal unused 50
The following mpls traffic-eng auto-tunnel backup config unnumbered-interface command enables IP processing on POS interface 3/1:
Router(config)# mpls traffic-eng auto-tunnel backup config unnumbered-interface POS3/1
To verify that IP processing is enabled on POS3/1, enter the show interfaces tunnel command:
Router# show interfaces tunnel 1001
Tunnel1001 is up, line protocol is up
Hardware is Tunnel
Interface is unnumbered. Using address of POS3/1 (10.0.0.33)
MTU 1514 bytes, BW 9 Kbit, DLY 500000 usec, rely 255/255, load 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 10.0.0.0, destination 10.0.5.1
Tunnel protocol/transport Label Switching, sequencing disabled
Key disabled
Checksumming of packets disabled
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Queueing strategy: fifo
Output queue 0/0, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 output buffer failures, 0 output buffers swapped out
The following mpls traffic-eng auto-tunnel backup config affinitycommand specifies affinity and link attributes that help in the calculation of the dynamically created backup tunnel:
Router(config)# mpls traffic-eng auto-tunnel backup config affinity 0x22 mask 0x22
To display the affinity and link attributes assigned to a dynamically created backup tunnel, enter the show mpls traffic-eng auto-tunnel backupcommand:
Router# show mpls traffic-eng auto-tunnel backup
State: Enabled
Tunnel Count: 3 (up:2, down: 1)
Tunnel ID Range: 65436-65535
Create Nhop only: Yes
SRLG: Not configured
Delete unused tunnels after: 50 Seconds
Config:
Unnumbered i/f: Looback0
Affinity: 0x22/0x22