Huawei AR150 series Configuration Manual page 211

Hide thumbs Also See for AR150 series:
Table of Contents

Advertisement

Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
l
l
Data Preparation
To complete the configuration, you need the following data:
l
l
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
Issue 02 (2012-03-30)
Configure static routes.
Configure a PBR route that defines rules and actions.
IP address and subnet mask of each interface
Packet length and next hop address in the PBR route
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
8 IP Unicast PBR Configuration
199

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ar200 seriesAr3200 series

Table of Contents