DGS-6604
m
set ip default next-hop
CLI Reference Guide
560
Lastly, in Vlan Interface configuration mode set the conditionally redistributed to
previously created route-map,
myPolicy
.
You can verify your settings by entering the
show route-map
privileged
EXEC
command.
Switch(config)# ip access-list Strict-Control
Switch(config-ip-acl)# permit 10.1.1.0 255.255.255.0 any
Switch(config-ip-acl)# exit
Switch(config)# route-map myPolicy permit 1
Switch(config-route-map)# match ip address Strict-Control
Switch(config-route-map)# set ip default next-hop 120.1.2.2
Switch(config-route-map)# exit
Switch(config)# interface vlan100
Switch(config-router)# ip policy route-map myPolicy