![]() |
Table Of Contents
Restrictions for Tunnel Route Selection
Information About Tunnel Route Selection
How to Configure Tunnel Route Selection
Configuring Tunnel Route Selection
Configuration Examples for Tunnel Route Selection
Configuring Tunnel Route Selection: Example
Verifying and Troubleshooting Tunnel Route Selection: Examples
Feature Information for Tunnel Route Selection
Tunnel Route Selection
First Published: November 17, 2006Last Updated: November 17, 2006The Tunnel Route Selection feature allows the tunnel transport to be routed using a subset of the routing table. When there are equal-cost routes to a tunnel destination, normal tunnel transport behavior is to use one of the available routes chosen at random. The Tunnel Route Selection feature allows the explicit configuration of the outgoing interface for the tunnel transport.
Finding Feature Information in This Module
Your Cisco IOS software release may not support all of the features documented in this module. To reach links to specific feature documentation in this module and to see a list of the releases in which each feature is supported, use the "Feature Information for Tunnel Route Selection" section.
Finding Support Information for Platforms and Cisco IOS and Catalyst OS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS and Catalyst OS software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Contents
•
Restrictions for Tunnel Route Selection
•
Information About Tunnel Route Selection
•
How to Configure Tunnel Route Selection
•
Configuration Examples for Tunnel Route Selection
•
Feature Information for Tunnel Route Selection
Restrictions for Tunnel Route Selection
This feature is supported in the following tunnel modes only:
•
Generic Routing Encapsulation (GRE) IP
•
GRE Multipoint
•
IP in IP
•
Mobile User Datagram Protocol (UDP)
This feature is not supported on a tunnel when the tunnel transport is a GRE Multipoint tunnel.
Supported Configuration
interface tunnel 0tunnel mode gre multipointtunnel route-via tunnel 1interface tunnel 1tunnel mode gre ipUnsupported Configuration
interface tunnel 0tunnel mode gre multipointtunnel route-via tunnel 1interface tunnel 1tunnel mode gre multipointInformation About Tunnel Route Selection
To configure the Tunnel Route Selection feature, you should understand the following concept:
Tunnel Transport Behavior
The Tunnel Route Selection feature allows the tunnel transport to be routed using a subset of the routing table by specifying the outgoing interface of the tunnel transport.
The Tunnel Route Selection feature is not the same as an implementation of policy-based routing for the tunnel transport. The Tunnel Route Selection feature will forward traffic using only a subset of the route table, and it cannot introduce routing loops into the network.
Figure 1 compares default tunnel behavior with the Tunnel Route Selection behavior.
Figure 1 Tunnel Route Selection Traffic
How to Configure Tunnel Route Selection
This section describes the following task required to configure the Tunnel Route Selection feature.
•
Configuring Tunnel Route Selection (required)
Configuring Tunnel Route Selection
Perform the following steps to specify the outgoing interface of the tunnel transport to route the tunnel transport using a subset of the routing table.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface tunnel interface-number
4.
tunnel route-via interface-type interface-number {mandatory | preferred}
5.
end
DETAILED STEPS
Configuration Examples for Tunnel Route Selection
This section provides the following examples required to configure the Tunnel Route Selection feature.
•
Configuring Tunnel Route Selection: Example
•
Verifying and Troubleshooting Tunnel Route Selection: Examples
Configuring Tunnel Route Selection: Example
The following example shows Tunnel 0 configured to use Ethernet interface 0 as its preferred outgoing transport interface. Traffic that exits the router using the tunnel 0 interface will be sent out of Ethernet interface 0 if there is a route to the tunnel destination out of Ethernet interface 0. If there is no route out of Ethernet interface 0, the traffic will be forwarded as if the Tunnel Route Selection feature were not configured.
If the tunnel route-via interface-type interface-number mandatory command is configured, and there is no route to the tunnel destination using that interface, a point-to-point tunnel interface will go into a down state.
Router> enableRouter# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)# interface tunnel 0Router(config-if)# tunnel route-via ethernet0 preferredRouter(config-if)# endRouter# show running-config interface tunnel 0Building configuration...Current configuration : 147 bytes!interface Tunnel0ip unnumbered Loopback0tunnel source Loopback0tunnel destination 10.73.0.102tunnel route-via Ethernet0 preferredendVerifying and Troubleshooting Tunnel Route Selection: Examples
To verify your configuration, use the show interfaces tunnel command in privileged EXEC mode. The following example shows that the tunnel transport is routed using a subset of the routing table by specifying the outgoing interface of the tunnel transport.
Router# show running-config interface tunnel 0Building configuration...Current configuration : 147 bytes!interface Tunnel0ip unnumbered Loopback0tunnel source Loopback0tunnel destination 10.73.0.102tunnel route-via Ethernet0 preferredendRouter# show interfaces tunnel 0 | include route-viaTunnel route-via feature is on [Ethernet0, preferred]To troubleshoot your configuration, use the debug tunnel route-via command in privileged EXEC mode. The following is sample output from the debug tunnel route-via command after the tunnel route-via command was used to route the tunnel transport explicitly using a subset of the routing table.
Router# debug tunnel route-viaTunnel route-via debugging is onRouter#*May 23 08:40:53.707: TUN-VIA: Tunnel0 candidate route-via Ethernet0/0, next hop 10.73.2.1*May 23 08:40:53.707: TUN-VIA: Tunnel0 route-via action is forward*May 23 08:41:03.719: TUN-VIA: Tunnel0 candidate route-via Ethernet0/0, next hop 10.73.2.1*May 23 08:41:03.719: TUN-VIA: Tunnel0 route-via action is forwardRouter# undebug tunnel route-viaTunnel route-via debugging is offAdditional References
The following sections provide references related to the Tunnel Route Selection feature.
Related Documents
Related Topic Document TitleImplementing tunnels
"Implementing Tunnels" chapter in the Cisco IOS Interface and Hardware Component Configuration Guide, Release 12.4T
Interface and hardware component commands: t1 through yellow
Cisco IOS Interface and Hardware Component Command Reference
Standards
MIBs
MIB MIBs LinkNone
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
RFCs
Technical Assistance
Command Reference
This section documents new and modified commands only.
New Commands
Modified Command
debug tunnel route-via
To display debugging information about the tunnel transport using a subset of the route table, use the debug tunnel route-via command in privileged EXEC mode. To disable this feature, use the no form of this command.
debug tunnel route-via
no debug tunnel route-via
Syntax Description
This command has no arguments or keywords.
Command Modes
Privileged EXEC
Command History
Examples
The following sample output of debug tunnel route-via command displays the outgoing interface for the tunnel transport.
Router# debug tunnel route-viaTunnel route-via debugging is on*May 22 11:54:34.803: TUN-VIA: Tunnel0 candidate route-via Ethernet0/0, next hop10.73.2.1*May 22 11:54:34.803: TUN-VIA: Tunnel0 route-via action is forwardRouter# no debug tunnel route-viaundebug tunnel route-viaTunnel route-via debugging is offRelated Commands
Command Descriptionshow interface tunnel
Displays information about the physical output tunnel interface.
tunnel route-via
Specifies the outgoing interface of the tunnel transport.
show interfaces tunnel
To display tunnel interface information, use the show interfaces tunnel command in privileged EXEC mode.
show interfaces tunnel number [accounting]
Syntax Description
number
Port line number.
accounting
(Optional) Displays the number of packets of each protocol type that have been sent through the interface.
Command Modes
Privileged EXEC
Command History
Examples
The following is sample output from the show interfaces tunnel command.
Router# show interfaces tunnel 4Tunnel4 is up, line protocol is downHardware is Routing TunnelMTU 1500 bytes, BW 9 Kbit, DLY 500000 usec, rely 255/255, load 1/255Encapsulation TUNNEL, loopback not set, keepalive set (10 sec)Tunnel source 0.0.0.0, destination 0.0.0.0Tunnel protocol/transport GRE/IP, key disabled, sequencing disabledLast input never, output never, output hang neverLast clearing of "show interface" counters neverOutput queue 0/0, 0 drops; input queue 0/75, 0 dropsFive minute input rate 0 bits/sec, 0 packets/secFive minute output rate 0 bits/sec, 0 packets/sec0 packets input, 0 bytes, 0 no bufferReceived 0 broadcasts, 0 runts, 0 giants0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort0 packets output, 0 bytes, 0 underruns0 output errors, 0 collisions, 0 interface resets, 0 restartsRouter# show interfaces tunnel 0 | include route-viaTunnel route-via feature is on [Ethernet0, preferred]Router# show interfaces tunnel 0 | include route-viaTunnel route-via feature is on [Ethernet0, mandatory]Table 1 describes significant fields shown in the display.
Related Commands
Command Descriptionshow interfaces
Displays statistics for all interfaces configured on the router or access server.
show ip route
Displays the current state of the routing table.
tunnel route-via
To specify the outgoing interface of the tunnel transport, use the tunnel route-via command in interface configuration mode. To disable the source address selection, use the no form of this command.
tunnel route-via interface-type interface-number {mandatory | preferred}
no tunnel route-via
Syntax Description
Command Default
This command is disabled by default. The tunnel transport cannot be routed using a subset of the routing table.
Command Modes
Interface configuration
Command History
Usage Guidelines
If the tunnel route-via interface-type interface-number mandatory command is configured, and there is no route to the tunnel destination using that interface, a point-to-point tunnel interface will go into a down state.
Examples
The following example shows the options that are available to configure the interfaces of the tunnel transport and route the tunnel transport using a subset of the routing table:
Router> enableRouter# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)# interface tunnel 0Router(config-if)# tunnel route-via ethernet0 mandatoryRelated Commands
Command Descriptiondebug tunnel route-via
Displays information about the source address selection.
show interfaces tunnel
Displays information about the physical output tunnel interface.
Feature Information for Tunnel Route Selection
Table 2 lists the release history for this feature.
Not all commands may be available in your Cisco IOS software release. For release information about a specific command, see the command reference documentation.
Use Cisco Feature Navigator to find information about platform support and software image support. Cisco Feature Navigator enables you to determine which Cisco IOS and Catalyst OS software images support a specific software release, feature set, or platform. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Note
Table 2 lists only the Cisco IOS software release that introduced support for a given feature in a given Cisco IOS software release train. Unless noted otherwise, subsequent releases of that Cisco IOS software release train also support that feature.
Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental.
© 2006 Cisco Systems, Inc. All rights reserved.