PLANET XGS3-24040 User Manual
Page 165

Chapter 18 PBR Configuration
18-2
Switch(config)#policy-map p1
Switch(Config-PolicyMap-p1)#class c1
Switch(Config-PolicyMap-p1-Class-c1)#set ip nexthop 218.31.1.119
Switch(Config-PolicyMap-p1-Class-c1)#exit
Switch(Config-PolicyMap-p1)#exit
Switch(config)#interface ethernet 1/1
Switch(Config-If-Ethernet1/1)#service-policy input p1
Configuration results:
First set an ACL a1 with two items. The first item matches source IP segments 192.168.1.0/24(allowed). The
second item matches source IP segments 192.168.1.0/24 and destination IP segments 192.168.0.0/16
(rejected). Turn on QoS function in global mode and create a class-map: c1 in which matches ACL a1, and
create a policy-map in which quote c1. Set the next-hop IP as 218.31.1.119 and apply the policy-map at port
ethernet1/1. After that, all messages on port ethernet 1/1 from segment 192.168.1.0/24 will be transmitted
through 218.31.1.119 except those from 192.168.0.0/16 segment which are still be transmitted through
normal L3 routing.
- FNSW-1601 (2 pages)
- FNSW-1601 (2 pages)
- FGSW-1816HPS (2 pages)
- FGSW-1816HPS (110 pages)
- FGSW-1816HPS (105 pages)
- WGSD-10020HP (16 pages)
- GS-5220-16S8CR (432 pages)
- FGSD-1022P (226 pages)
- FGSD-1022P (12 pages)
- FGSD-910P (28 pages)
- FGSW-1602RS (30 pages)
- FGSW-2402S (39 pages)
- FGSW-2620PVS (50 pages)
- FGSW-2624SF (2 pages)
- FGSW-2620VM (213 pages)
- FGSW-2620VM (2 pages)
- FGSW-2624SF (2 pages)
- FGSW-2620VM (96 pages)
- FGSW-2620 (2 pages)
- FGSW-2620CS (81 pages)
- FGSW-2620CS (2 pages)
- FGSW-2620CS (80 pages)
- FGSW-2620CS (2 pages)
- FGSW-2840 (2 pages)
- FGSW-4840S (263 pages)
- FGSW-4840S (38 pages)
- FGSW-4840S (2 pages)
- FNSW-1600P (20 pages)
- FNSW-1600S (33 pages)
- FNSW-2400PS (2 pages)
- FNSW-2400PS (70 pages)
- FNSW-1602S (43 pages)
- FNSW-2402S (39 pages)
- FNSW-4800 (2 pages)
- FNSW-2401CS (38 pages)
- FSD-1604 (12 pages)
- FSD-2405 (18 pages)
- FSD-1606 (2 pages)
- FSD-803 (2 pages)
- FSD-803 (2 pages)
- FSD-504HP (2 pages)
- FSD-805ST (20 pages)
- FSD-804P (21 pages)
- FSD-808P (20 pages)
- FSD-808P (22 pages)