< Home

Configuring the Static Route from a Device on the Public Network to a VPN

This section describes how to configure static routes to VPN users to forward packets from the Internet to the VPN.

Context

Perform the following steps on the PE.

Procedure

  1. Access the system view.

    system-view

  2. Configure a static route from the public network to the VPN.

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

    The next-hop address is a private network address.

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

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic