Chapter 20 MPLS VPN Configuration
Confidential and Proprietary Information of ZTE CORPORATION 293
TABLE 337 IP VRF FORWARDING COMMAND
Command
Format
Command
Mode
Command Function
ip vrf
forwarding
<vrf-name>
interface
config
This defines an interface
associated with the VRF
Result: This defines an interface associated with the VRF.
If the interface is configured with an IP address in advance,
the original IP address will disappear, and address
reconfiguration is needed.
4. To define VRF route
PE can define static routes or run dynamic routing protocols to
implement automatic interaction with CE.
i. To designate the vrf in static route configuration, use ip
route [vrf <vrf-name>] <prefix> <network-mask>
{<forwarding-router's-address> | <interface-number>}
[<distance-metric>] [tag <tag>] command in global
configuration mode as shown in
Table 338.
TABLE 338 IP ROUTE VRF COMMAND
Command Format
Command
Mode
Command
Function
ip route [vrf <vrf-name>]
<prefix> <network-mask>
{<forwarding-router's-
address> | <interface-
number>} [<distance-
metric>] [tag <tag>]
global config
This sets up a
static route
Result: This sets up a static route.
ii. For different dynamic routing protocols, the
configurations on PE are different. At present, the version
supports four protocols: OSPF BGP, ISIS and RIP.
To run an OSPF protocol, PE should rerun the process by
using the following command router ospf <process-id>
vrf <vrf-name> in global configuration mode as shown in
Table 339.
TABLE 339 ROUTER OSPF –VRF COMMAND
Command
Format
Command
Mode
Command Function
router ospf
<process-id>
vrf <vrf-
name>
global config This enables OSPF VPN process
Result: This enables OSPF VPN process.