< Home

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

  1. Access the system view.

    system-view

  2. Configure a static route to the destination address on the public network.

    ip route-static ip-address { mask | mask-length } { interface-type interface-number [ nexthop-address ] | nexthop-address } [ preference preference | tag tag ]* [ description text ]

    ip-address can be the destination address of the public network or 0.0.0.0. If the 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.

    If the CE and the PE are connected through an Ethernet network, the next-hop must be specified.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >