Cisco Sx350 Cli Manual page 1038

Hide thumbs Also See for Sx350:
Table of Contents

Advertisement

53
1037
IPv4 policy routing:
-
match ip address (Policy Routing)
-
set ip next-hop
IPv6 policy routing:
-
match ipv6 address (Policy Routing)
-
set ipv6 next-hop
Examples
Example 1. The following example gives an example of a route map with one
section. TCP packet sent to subnet 156.12.5.0/24 are passed to the next hop
56.1.1.1.
switchxxxxxx(config)# ip access-list extended pr-acl1
switchxxxxxx(config-ip-al)# permit tcp any any 156.12.5.0 0.0.0.255 any
switchxxxxxx(config-ip-al)# exit
switchxxxxxx(config)#
switchxxxxxx(config-route-map)#
switchxxxxxx(config-route-map)#
switchxxxxxx(config-route-map)#
switchxxxxxx(config)#
switchxxxxxx(config-if)# ip policy route-map pbr
switchxxxxxx(config-if)#
Example 2. The following example gives an example of a route map with two
sections. TCP packet sent to subnet 156.12.5.0/24 are passed to the next hop
56.1.1.1 and CP packet sent to subnet 156.122.5.0/24 are passed to the next hop
50.1.1.1.
switchxxxxxx(config)# ip access-list extended pr-acl1
switchxxxxxx(config-ip-al)# permit tcp any any 156.12.5.0 0.0.0.255 any
switchxxxxxx(config-ip-al)# exit
switchxxxxxx(config)# ip access-list extended pr-acl2
route-map pbr
match ip address
set ip next-hop 56.1.1.1
exit
interface vlan 1
exit
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
Route Map Commands
access-list
pr-acl1

Advertisement

Table of Contents
loading

Table of Contents