<Huawei> system-view
[Huawei] sysname RouterA
[RouterA] interface ethernet 1/0/0
[RouterA-Ethernet1/0/0] ip address 192.168.1.1 24
[RouterA-Ethernet1/0/0] quit
# Configure a default route for RouterA.
[RouterA] ip route-static 0.0.0.0 0.0.0.0 20.1.1.2
Step 2 Configure the GRE tunnel.
# Configure a tunnel interface on RouterA.
[RouterA] interface tunnel 0/0/1
[RouterA-Tunnel0/0/1] tunnel-protocol gre
[RouterA-Tunnel0/0/1] ip address 10.1.1.1 24
[RouterA-Tunnel0/0/1] source 20.1.1.1
[RouterA-Tunnel0/0/1] destination 30.1.1.1
[RouterA-Tunnel0/0/1] quit
# Configure a tunnel interface on RouterB.
<Huawei> system-view
[Huawei] sysname RouterB
[RouterB] interface tunnel 0/0/1
[RouterB-Tunnel0/0/1] tunnel-protocol gre
[RouterB-Tunnel0/0/1] ip address 10.1.1.2 24
[RouterB-Tunnel0/0/1] source 30.1.1.1
[RouterB-Tunnel0/0/1] destination 20.1.1.1
[RouterB-Tunnel0/0/1] quit
# Configure a static route from RouterA to the observing device.
[RouterA] ip route-static 192.168.2.0 255.255.255.0 tunnel0/0/1
# Configure a static route from RouterB to the mirrored interface.
[RouterB] ip route-static 192.168.1.0 255.255.255.0 tunnel0/0/1
Step 3 Configure the observing server.
# Configure the observing server on RouterA.
<RouterA> system-view
[RouterA] observe-server destination-ip 192.168.2.2 source-ip 192.168.1.1
Step 4 Configure the mirrored interface.
# Configure Ethernet 1/0/0 of RouterA as the mirrored interface to capture the packets sent from
the branch network.
[RouterA] interface ethernet 1/0/0
[RouterA-Ethernet1/0/0] mirror to observe-server inbound
[RouterA-Ethernet1/0/0] quit
Step 5 Verify the configuration.
# Check the configuration of the observing server.
<RouterA> display observe-server
----------------------------------------------------------------------
Index : 1
destination-ip : 192.168.2.2
source-ip : 192.168.1.1
dscp : 0
Used : 1
----------------------------------------------------------------------
# Check the configuration of the mirrored interface.
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.
84