EasyManua.ls Logo

Cisco Sx350

Cisco Sx350
1323 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Route Map Commands
1037 Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
53
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)#
route-map pbr
switchxxxxxx(config-route-map)#
match ip address
access-list
pr-acl1
switchxxxxxx(config-route-map)#
set ip next-hop 56.1.1.1
switchxxxxxx(config-route-map)#
exit
switchxxxxxx(config)#
interface vlan
1
switchxxxxxx(config-if)# ip policy route-map pbr
switchxxxxxx(config-if)#
exit
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

Table of Contents

Related product manuals