ip source-route

Enables forwarding of IP source-routed packets.
Syntax
ip source-route
no ip source-route
Command Default

The Layer 3 switch forwards both types of source-routed (strict and loose) packets by default.

Modes

Global configuration mode

Usage Guidelines

A source-routed packet specifies the exact router path for the packet. The packet specifies the path by listing the IP addresses of the router interfaces through which the packet must pass on its way to the destination. The Layer 3 switch supports strict and loose types of IP source routing.

Strict source routing requires the packet to pass through only the listed routers. If the Layer 3 switch receives a strict source-routed packet but cannot reach the next hop interface specified by the packet, the Layer 3 switch discards the packet and sends an ICMP Source-Route-Failure message to the sender.

Note: The Layer 3 switch allows you to disable sending of the Source-Route-Failure messages.

Loose source routing requires that the packet pass through all of the listed routers but also allows the packet to travel through other routers, which are not listed in the packet.

The no form of the command disables forwarding of IP source-routed packets.

Examples

The following example disables forwarding of IP source-routed packets.

device# configure terminal
device(config)# no ip source-route

The following example reenables forwarding of IP source-routed packets.

device(config)# ip source-route