Sunteți pe pagina 1din 9

Technical Marketing Engineering

Modular LAN Switching Technology

S7900E Policy Based Routing


Technical Configuration Guide

Revision v1
September 24, 2008
http://www.3com.com

Modular LAN Switching Technology

Policy Based Routing

3Com Corporation, 350 Campus Drive, Marlborough MA 01752-3064


Copyright 2008, 3Com Corporation. All rights reserved. No part of this documentation may be
reproduced in any form or by any means or used to make any derivative work (such as
translation, transformation, or adaptation) without written permission from 3Com Corporation.
3Com Corporation reserves the right to revise this documentation and to make changes in
content from time to time without obligation on the part of 3Com Corporation to provide
notification of such revision or change.
3Com Corporation provides this documentation without warranty, term, or condition of any kind,
either implied or expressed, including, but not limited to, the implied warranties, terms, or
conditions of merchantability, satisfactory quality, and fitness for a particular purpose. 3Com may
make improvements or changes in the product(s) and/or the program(s) described in this
documentation at any time.
3Com and the 3Com logo are registered trademarks of 3Com Corporation. VCX is a trademark of
3Com Corporation. All other company and product names may be trademarks of the respective
companies with which they are associated.

3Com Technical Marketing Engineering

Page 2

Modular LAN Switching Technology

Policy Based Routing

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

3Com Technical Marketing Engineering

Page 3

Modular LAN Switching Technology

Policy Based Routing

Switch S7900E Policy Based Routing


Configuration
This Technical Configuration Guide (TCG) describes how to configure Policy
Based Routing (PBR) on Switch S7900E.
This document is intended specifically for 3Com System Engineers.

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

Comware 5.20 Release 6105P10

3Com Technical Marketing Engineering

Page 4

Modular LAN Switching Technology

Policy Based Routing

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

3Com Technical Marketing Engineering

Page 5

Modular LAN Switching Technology

Policy Based Routing

[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
#

3Com Technical Marketing Engineering

Page 6

Modular LAN Switching Technology

Policy Based Routing

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

3Com Technical Marketing Engineering

Page 7

Modular LAN Switching Technology

Policy Based Routing

Aggregation ID: 1, AggregationType: Static, Loadsharing Type: Shar


Aggregation Description:
System ID: 0x8000, 000f-e27e-4802
Port Status: S -- Selected, U -- Unselected
Local:
Port
Status Priority Oper-Key Flag
-------------------------------------------------------------------------------GE4/0/11
S
32768 1
{ACDEF}
GE4/0/12
S
32768 1
{ACDEF}
Remote:
Actor
Partner Priority Oper-Key SystemID
Flag
-------------------------------------------------------------------------------GE1/0/23
23
32768 1
0x8000,00e0-fc00-7702 {ACDEF}
GE1/0/24
24
32768 1
0x8000,00e0-fc00-7702 {ACDEF}
[H3C]ping 100.1.1.253
PING 100.1.1.253: 56 data bytes, press CTRL_C to break
Reply from 100.1.1.253: bytes=56 Sequence=1 ttl=255 time=3 ms
Reply from 100.1.1.253: bytes=56 Sequence=2 ttl=255 time=3 ms
Reply from 100.1.1.253: bytes=56 Sequence=3 ttl=255 time=3 ms
Reply from 100.1.1.253: bytes=56 Sequence=4 ttl=255 time=3 ms
Reply from 100.1.1.253: bytes=56 Sequence=5 ttl=255 time=3 ms
--- 100.1.1.253 ping statistics --5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 3/3/3 ms
2. Send continuous ICMP packets from 10.1.1.10 to 20.1.1.10. Verify that 20.1.1.10
receives the ICMP packets and the policy based routing on Switch S7903E-1
is forwarding the desired packets to switch S7903E-2 even thought there is no
route to 20.1.1.0 on switch S7903E-1.
[S7903E-1]dis qos policy interface g 4/0/1 inbound
Interface: GigabitEthernet4/0/1
Direction: Inbound
Policy: PBR1
Classifier: PBR1
Operator: AND
Rule(s) : If-match acl 3000
Behavior: PBR1
Redirect enable:
Redirect type: next-hop
Redirect destination:
100.1.1.253
Accounting Enable:

3Com Technical Marketing Engineering

Page 8

Modular LAN Switching Technology

Policy Based Routing

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

3Com Technical Marketing Engineering

Page 9

S-ar putea să vă placă și