Configuration Files
l Configuration file of RouterA
#
sysname RouterA
#
observe-server destination-ip 192.168.2.2 source-ip 192.168.1.1
#
acl number 2000
rule 5 permit source 192.168.1.2
0
#
traffic classifier c1 operator or
if-match acl
2000
#
traffic behavior
b1
mirror to observe-server
#
traffic policy
p1
classifier c1 behavior
b1
#
interface Ethernet1/0/0
ip address 192.168.1.1
255.255.255.0
traffic-policy p1
inbound
#
interface Ethernet1/0/1
ip address 20.1.1.1
255.255.255.0
#
ip route-static 0.0.0.0 0.0.0.0 20.1.1.1
ip route-static 192.168.2.0 255.255.255.0 Tunnel0/0/1
#
interface
Tunnel0/0/1
ip address 10.1.1.1
255.255.255.0
tunnel-protocol
gre
source
20.1.1.1
destination
30.1.1.1
#
return
l Configuration file of RouterB
#
sysname RouterB
#
interface Ethernet1/0/0
ip address 192.168.2.1
255.255.255.0
#
interface Ethernet1/0/1
ip address 30.1.1.1
255.255.255.0
#
ip route-static 0.0.0.0 0.0.0.0 30.1.1.1
ip route-static 192.168.1.0 255.255.255.0 Tunnel0/0/1
#
interface
Tunnel0/0/1
ip address 10.1.1.2
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Device Management 4 Mirroring Configuration
Issue 02 (2012-03-30) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
89