DGS-6604
m
set ipv6 default next-hop
CLI Reference Guide
557
set ipv6 default next-hop
Use the command in route-map configuration mode to set the next hop to route the packets
that pass a match clause of a route map and there is no route for the packets. To remove the
setting, use the
no
form of the command to remove the setting.
set ipv6 default next-hop
IPv6
-
ADDRESS
no set ipv6 default next-hop [
IPv6
-
ADDRESS
]
Default
Not configured
Command Mode
Route-map configuration
Usage
Guideline
You can use this command to set the next hop to route the packets that pass a
match clause of a route map
.
If other set clauses for policy based routing are used with the command, they will be evaluated
based on the following ordering:
1.
set ipv6 next-hop
2. set
interface
3.
set ipv6 default next-hop
4.
set default interface
With this ordering, the set interface clauses and the set interface clauses will be evaluated
before look up of the routing table. If route cannot be found for the packets, the set ip default
next-hop and set default interface command will be evaluated.
Examples
In the following example, PBR will change the next-hop setting when the source ip is
2000::/16 and vlan is vlan100 and can not found the destination address in routing table.
We want to set next-hop of this route entry to 100::BEAE:C5FF:FE9A
.
The steps as fol-
lows:
At first, create an IP basic access list, named
Strict-Control
which permit prefix 2000::/16
Secondly, create a route map, named
myPolicy
which define a match rule to associate ip
address prefix-list to the previously created access list,
Strict-Control
.
Lastly, in Vlan Interface configuration mode set the conditionally redistributed to previously
created route-map,
myPolicy
.
Syntax Description
IPv6
-
ADDRESS
Specify the next hop to route the packet. The next hop must be an adjacent router
.