set next-hop-ip-tunnel

Configures an IPsec or GRE tunnel interface as the next hop of a PBR route map.
Syntax
set next-hop-ip-tunneltunnel-id
no set next-hop-ip-tunneltunnel-id
Command Default

The next hop is not set to a tunnel interface.

Parameters
tunnel-id
Specifies the ID of the tunnel interface.
Modes

Route map configuration mode

Usage Guidelines

When PBR is used to map IP traffic into a GRE tunnel or IPsec tunnel, the VRF of the tunnel interface is considered as the egress VRF interface.

The no form of the command removes the tunnel interface as the PBR next hop.

Examples

The following example configures tunnel interface 1 as the PBR next hop.

device# interface tunnel 1
device(config-tnif-1)# vrf forwarding blue
device(config-tnif-1)# tunnel source ethernet 1/1/1
device(config-tnif-1)# tunnel destination 10.2.2.1
device(config-tnif-1)# tunnel mode ipsec ipv4
device(config-tnif-1)# tunnel protection ipsec profile prof-blue
device(config-tnif-1)# ip address 10.4.4.4/24
device(config-tnif-1)# exit
device(config)# ip access-list standard 99
device(config-std-ipacl-99)# permit 10.157.23.0 0.0.0.255
device(config-std-ipacl-99)# exit
device(config)# route-map test-route permit 99
device(config-routemap test-route)# match ip address 99
device(config-routemap test-route)# set next-hop-ip-tunnel 1
device(config-routemap test-route)# end
device(config)# interface ethernet 1/1/3
device(config-if-e1000-1/1/3)# vrf forwarding blue
device(config-if-e1000-1/1/3)# ip policy route-map test-route
device(config-if-e1000-1/1/3)# end
History
Release version Command history
08.0.50 This command was introduced.