Examples
Configuring Flow-Based Redirect for a Traffic Class Service
The following sample output shows how a traffic class service with the Flow-Based Redirect feature is
configured to redirect all HTTP traffic to a different next hop device upon logging in to the account:
Router# configure terminal
Router (config)# ip access-list extended WEB_ACL_IN
Router (config-ext-nacl)# permit tcp any any eq www
Router (config-ext-nacl)# permit tcp any any eq www
Router (config-ext-nacl)# class-map type traffic match-any ACF_ACL
Router (config-traffic-classmap)# match access-group input name WEB_ACL_IN
Router (config-traffic-classmap)# policy-map type service ACF_SERVICE
Router (config-service-policymap)# class type traffic ACF_ACL
Router (config-service-policymap-class-traffic)# reroute to next-hop ip 44.0.0.22
Router (config-control-policymap-class-control)# policy-map type control INTERNET_SERVICE_RULE
Router (config-control-policymap)# class type control always event account-logon
Router (config-control-policymap-class-control)# 20 service-policy type service name
ACF_SERVICE
Router (config-control-policymap-class-control)# class type control always event service-stop
Router (config-control-policymap-class-control)# 1 service-policy type service unapply
identifier service-name
Router (config-control-policymap)# class type control always event service-start
Router (config-control-policymap-class-control)# 10 service-policy type service identifier
service-name
Router (config-control-policymap)# class type control always event account-logoff
Router (config-control-policymap-class-control)# 10 service disconnect delay 5
Viewing the FBR Policy that is Attached to a Session
To view the FBR policy that is attached to a session at session start, use the
show subscriber session uid uid
command:
Router#
show subscriber session uid 249
Type: IPv4, UID: 249, State: authen, Identity: 33.0.0.4
IPv4 Address: 33.0.0.4
Session Up-time: 00:01:43, Last Changed: 00:01:43
Switch-ID: 16972
Policy information:
Authentication status: authen
Active services associated with session:
name "ACF_SERVICE", applied before account logon
Rules, actions and conditions executed:
subscriber rule-map INTERNET_SERVICE_RULE
condition always event session-start
80 authorize identifier source-ip-address
subscriber rule-map default-internal-rule
condition always event service-start
1 service-policy type service identifier service-name
Classifiers:
Class-id
Dir
Packets
Bytes
Pri.
Definition
0
In
499
31936
0
Match Any
1
Out
0
0
0
Match Any
56
In
499
31936
0
Match ACL WEB_ACL_IN
57
Out
0
0
0
Match ACL WEB_ACL_OUT
Template Id : 1
Features:
Absolute Timeout:
Class-id
Timeout Value
Time Remaining
Source
0
3000
00:48:16
Peruser
Intelligent Wireless Access Gateway Configuration Guide
OL-30226-03
85
Flow-Based Redirect
Examples
Содержание Intelligent Wireless Access Gateway
Страница 40: ...Intelligent Wireless Access Gateway Configuration Guide 32 OL 30226 03 IP Sessions Over Gigabit EtherChannel ...
Страница 44: ...Intelligent Wireless Access Gateway Configuration Guide 36 OL 30226 03 Multiple Flow Tunnel ...
Страница 64: ...Intelligent Wireless Access Gateway Configuration Guide 56 OL 30226 03 GTPv2 Support in the iWAG ...
Страница 72: ...Intelligent Wireless Access Gateway Configuration Guide 64 OL 30226 03 Configuring ISG Policy Templates ...
Страница 86: ...Intelligent Wireless Access Gateway Configuration Guide 78 OL 30226 03 Dual Stack Support for PMIPv6 and GTP ...