Beruflich Dokumente
Kultur Dokumente
Revision v1
September 24, 2008
http://www.3com.com
Page 2
Contents
Switch S7903E Policy Based Routing Configuration .......................................................4
Background Information ..............................................................................................4
Requirements..............................................................................................................4
Hardware Requirements ..........................................................................................4
Software Requirements............................................................................................4
Network Diagram.........................................................................................................5
Configure.....................................................................................................................5
Verify...........................................................................................................................7
Troubleshoot ...............................................................................................................9
Related Documents.....................................................................................................9
Page 3
Background Information
Policy based routing is a routing mechanism based on user-defined policies.
Different from the traditional destination-based routing, policy based routing
enabled you to implement policies (based on the source address, address
length, and other criteria) that direct packets to take different paths.
As a rule, policy based routing takes precedence over destination-based
routing. That is, policy based routing is applied when packets match a
policy, and otherwise, destination-based routing is applied.
This document describes how to configure Policy Based Routing on Switch
S7900E.
Requirements
Readers of this document should be familiar with features and configuration
of the S7900E family.
Hardware Requirements
2 x Switch S7903E
2 x 384Gbps Advance Fabric
2 x 24-Port 10/100/1000BASE-T (RJ45) Module
Software Requirements
Page 4
Network Diagram
The network diagram below illustrates the connectivity for this configuration.
Configure
Follow these steps to configure switch S7903E-1 for policy based routing.
1. Login to the router and enter into system-view
2. Create VLAN 100 and 1000, and assign ports to each VLAN on switch S7903E-1
[S7903E-1] vlan 100
[S7903E-1-vlan100] port gigabit 4/0/1
[S7903E-1-vlan100] vlan 1000
[S7903E-1-vlan1000] port gigabit 4/0/11 to gigabit 4/0/12
3. Create a link-aggregation group and assign gigabit 4/0/11 and gigabit 4/0/12 to this
link-aggregation
[S7903E-1] link-aggregation group 1 mode static
[S7903E-1] interface gigabit 4/0/11
[S7903E-1-GigabitEthernet4/0/11] port link-aggregation group 1
[S7903E-1-GigabitEthernet4/0/11] interface gigabit 4/0/12
[S7903E-1-GigabitEthernet4/0/12] port link-aggregation group 1
4. Create a ACL to permit source IP address 10.1.1.10 and destination IP 20.1.1.10
[S7903E-1] acl number 3000
[S7903E-1-adv-acl-3000] rule permit ip source 10.1.1.10 0 destination 20.1.1.10 0
5. Create traffic classifier and behavior
[S7903E-1] traffic classifier PBR1
[S7903E-1-classifier-PBR1] if-match acl 3000
[S7903E-1-classifier-PBR1] traffic behavior PBR1
[S7903E-1-behavior-PBR1] redirect next-hop 100.1.1.253
[S7903E-1-behavior-PBR1] accounting
6. Create a QoS policy
[S7903E-1] qos policy PBR1
[S7903E-1-qospolicy-PBR1] classifier PBR1 behavior PBR1
7. Apply QoS Policy PBR1 to gigabit 4/0/1
[S7903E-1] interface gigabit 4/0/1
[S7903E-1-GigabitEthernet4/0/1] qos apply policy PBR1 inbound
8. Exist system-view and save configuration
Page 5
[S7903E-1] quit
<S7903E-1> save
10. View current configuration
[S7903E-1] display current-configuration
#
version 5.20, Release 6105P10
#
sysname S7903E-1
#
domain default enable system
#
link-aggregation group 1 mode static
#
switch-mode standard
switch-mode routing slot 4
#
vlan 1
#
vlan 100
#
vlan 1000
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
traffic classifier PBR1 operator and
if-match acl 3000
#
traffic behavior PBR1
redirect next-hop 100.1.1.253
accounting
#
qos policy PBR1
classifier PBR1 behavior PBR1
#
acl number 3000
rule 0 permit ip source 10.1.1.10 0 destination 20.1.1.10 0
#
interface NULL0
#
interface Vlan-interface100
ip address 10.1.1.254 255.255.255.0
#
interface Vlan-interface1000
ip address 100.1.1.254 255.255.255.0
#
Page 6
interface GigabitEthernet4/0/1
port access vlan 100
qos apply policy PBR1 inbound
#
interface GigabitEthernet4/0/2
#
interface GigabitEthernet4/0/3
#
interface GigabitEthernet4/0/4
#
interface GigabitEthernet4/0/5
#
interface GigabitEthernet4/0/6
#
interface GigabitEthernet4/0/7
#
interface GigabitEthernet4/0/8
#
interface GigabitEthernet4/0/9
#
interface GigabitEthernet4/0/10
#
interface GigabitEthernet4/0/11
port access vlan 1000
port link-aggregation group 1
#
interface GigabitEthernet4/0/12
port access vlan 1000
port link-aggregation group 1
#
interface M-Ethernet0/0/0
#
user-interface aux 0
user-interface vty 0 4
#
Verify
To verify the configuration is correct, follow these steps:
1 Verify link-aggregation is operational and connectivity to Switch S7903E-2 is fine
[S7903E-1] dis link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Flags: A -- LACP_Activity, B -- LACP_timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Page 7
Page 8
323523 (Packets)
Troubleshoot
Policy based routing is implemented in S7903E using the structure of QoS
file. By enabling accounting under traffic behavior, we can check that policy
based routing is operational
1. Enable accounting in traffic behavior
[S7903E-1] traffic behavior PBR1
[S7903E-1-behavior-PBR1] accounting
Related Documents
The following documents are related to this Technical Configuration Guide:
3Com Switch S7900E Configuration Guide
3Com Switch S7900E Commands Guide
Page 9