3.12.2 Configuring the Static Route on the CE
This section describes how to configure static routes on CEs to forward packets from the VPN
to the Internet.
Context
Perform the following steps on the CE.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
ip route-static ip-address { mask | mask-length } { interface-type interface-
number [ nexthop-address ] | nexthop-address } [ preference preference | tag tag ]
*
[ description text ]
The static route to the public network destination address.
ip-address can be the destination address of the public network or 0.0.0.0. If the dest-ip-
address is 0.0.0.0, the static route is also called the default route, the mask of which must be
0.0.0.0 or the mask-length of which must be 0. Note that, the out-interface must be the interface
connected directly with the PE, and the next-hop is the IP address of the peer PE interface
connected directly with the CE.
NOTE
If the CE and the PE are connected through an Ethernet network, the next-hop must be specified.
----End
3.12.3 Configuring the Private Network Static Route on the PE
This section describes how to configure static routes on PEs to forward packets from the VPN
to the Internet.
Context
Perform the following steps on the PE.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
ip route-static vpn-instance vpn-source-name destination-address { mask | mask-
length } nexthop-address public [ preference preference | tag tag ]
*
[ description
text ]
Huawei AR1200 Series Enterprise Routers
Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration
Issue 01 (2012-04-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
128