User's Manual

Table Of Contents
479
Users Manual of CS-6306R
47.1.4 IP-PBR Configuration Example
Switch configuration:
!
ip pbr
!
interface vlan1
ip address 10.1.1.3 255.255.255.0
no ip directed-broadcast
ip policy route-map pbr
!
ip access-list standard ac1
permit 10.1.1.21 255.255.255.255
!
ip access-list standard ac2
permit 10.1.1.2 255.255.255.255
!
route-map pbr 10 permit
match ip address ac1
set ip next-hop 13.1.1.99
!
route-map pbr 20 permit
match ip address ac2
set ip next-hop 13.1.1.99 14.1.1.99load-balance
!
Configuration Description
The switch is to apply policy routing on the packets that are received from VLAN1.As to the packets whose
source IPs are 10.1.1.21, their next hop is 13.1.1.99.As to the packets whose source IPs are 10.1.1.2, they
are applied on route-map pbr 20; because set ip next-hop has the load-balance parameter, the switch chip
will automatically choose 13.1.1.99 or 14.1.1.99 as the egress according to destination IP address.