3Com MSR 50 Series Configuration Manual page 644

3com msr 30-16: software guide
Hide thumbs Also See for MSR 50 Series:
Table of Contents

Advertisement

644
C
42: IP U
HAPTER
NICAST
Configuring Policy
Routing Based on Packet
P
R
C
OLICY
OUTING
ONFIGURATION
[Router] policy-based-route aaa permit node 5
[Router-policy-based-route] if-match acl 3101
[Router-policy-based-route] apply output-interface serial 2/0
[Router-policy-based-route] quit
# Define Node 10 of policy aaa so that policy routing will not be applied to packets
matching ACL 3102 and these packets will be forwarded by means of looking up
the routing table.
[Router] policy-based-route aaa deny node 10
[Router-policy-based-route] if-match acl 3102
[Router-policy-based-route] quit
# Apply policy aaa to interface Ethernet 1/0.
[Router] interface ethernet 1/0
[Router-Ethernet1/0] ip policy-based-route aaa
Network requirements
Policy routing is enabled and the policy lab1 is referenced on the interface
Size
Ethernet 1/0 of Router A. Packets with a size of 64 to 100 bytes are forwarded to
150.1.1.2/24, while packets with a size of 101 to 1,000 bytes are forwarded to
151.1.1.2/24. All other packets are forwarded by means of looking up the routing
table.
Network diagram
Figure 191 Network diagram for policy routing based on packet size
Router A
Eth 1 / 0
192 . 1 . 1 . 1 / 24
Enable policy
routing on Eth 1 / 0
Configuration procedure
Configuration on Router A.
# Configure RIP.
<RouterA> system-view
[RouterA] rip
[RouterA-rip-1] network 192.1.1.0
[RouterA-rip-1] network 150.1.0.0
[RouterA-rip-1] network 151.1.0.0
[RouterA-rip-1] quit
# Apply policy lab1 to interface Ethernet 1/0 to handle incoming packets.
60
100 bytes
S 2 / 0
150 . 1 . 1 . 1 / 24
S 2 / 1
151 . 1 . 1 . 1 / 24
101
1000 bytes
S 2 / 0
Router B
150 . 1 . 1 . 2 / 24
S 2 / 1
151 . 1 . 1 . 2 / 24

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents