EasyManua.ls Logo

Huawei AR150 series - Page 211

Huawei AR150 series
221 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
l Configure static routes.
l Configure a PBR route that defines rules and actions.
Data Preparation
To complete the configuration, you need the following data:
l IP address and subnet mask of each interface
l Packet length and next hop address in the PBR route
Procedure
Step 1 Assign an IP address to each interface.
# Assign an IP address to each interface on RouterA.
<Huawei> system-view
[Huawei] sysname RouterA
[RouterA] interface ethernet 1/0/0
[RouterA-Ethernet1/0/0] ip address 150.1.1.1 255.255.255.0
[RouterA-Ethernet1/0/0] quit
[RouterA] interface ethernet 2/0/0
[RouterA-Ethernet2/0/0] ip address 151.1.1.1 255.255.255.0
[RouterA-Ethernet2/0/0] quit
# Assign an IP address to each interface on RouterB.
<Huawei> system-view
[Huawei] sysname RouterB
[RouterB] interface ethernet 1/0/0
[RouterB-Ethernet1/0/0] ip address 150.1.1.2 255.255.255.0
[RouterB-Ethernet1/0/0] quit
[RouterB] interface ethernet 2/0/0
[RouterB-Ethernet2/0/0] ip address 151.1.1.2 255.255.255.0
[RouterB-Ethernet2/0/0] quit
Step 2 Configure static routes.
# Configure a static route on RouterA.
[RouterA] ip route-static 10.1.2.0 24 150.1.1.2
[RouterA] ip route-static 10.1.2.0 24 151.1.1.2
# Configure a static route on RouterB.
[RouterB] ip route-static 10.1.1.0 24 150.1.1.1
[RouterB] ip route-static 10.1.1.0 24 151.1.1.1
Step 3 Configure a PBR route.
# Configure a PBR route lab1.
[RouterA] policy-based-route lab1 permit node 10
[RouterA-policy-based-route-lab1-10] if-match packet-length 64 1400
[RouterA-policy-based-route-lab1-10] apply ip-address next-hop 150.1.1.2
[RouterA-policy-based-route-lab1-10] quit
[RouterA] policy-based-route lab1 permit node 20
[RouterA-policy-based-route-lab1-20] if-match packet-length 1401 1500
[RouterA-policy-based-route-lab1-20] apply ip-address next-hop 151.1.1.2
[RouterA-policy-based-route-lab1-20] quit
# Enable local PBR.
[RouterA] ip local policy-based-route lab1
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service 8 IP Unicast PBR Configuration
Issue 02 (2012-03-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
199

Table of Contents

Other manuals for Huawei AR150 series

Related product manuals