host1:vr1(config-router)#redistribute ospf
6. (Optional) Configure an AS override.
See “Using a Single AS Number for All CE Sites” on page 447 for examples.
7. (Optional) Force the BGP speaker to accept routes that have the speaker’s AS
number in its AS path.
host1:vr1(config-router)#bgp enforce-first-as
Creating a VRF
Access the desired virtual router context; then create the VRF(s) for that VR.
host1(config)#virtual-router vr1
host1:vr1(config)#ip vrf vrfA
ip vrf
• Use to create a VRF or access VRF Configuration mode to configure a VRF.
• You must specify a route distinguisher after you create a VRF. Otherwise, the VRF will
not operate.
• Example
host1:vr1(config)#ip vrf vrfA
• Use the no version to remove a VRF.
• Use the wait-for-completion keyword with the no version if you require a synchronous,
deterministic deletion of a VRF, such as when executing Telnet or console commands
by means of an external script. If you do not issue the wait-for-completion keyword
in these circumstances, an ip vrf command issued as soon as the prompt appears
might fail because the router is still deleting the VRF. You can specify a period during
which the CLI waits before it returns a prompt. If you do not specify a wait time, then
the CLI does not return a prompt until the operation completes. You can press Ctrl+c
to break out of the wait period early.
• See ip vrf.
Specifying a Route Distinguisher
The route distinguisher enables you to establish unique VPN-IPv4 addresses to
accommodate the possibility that more than one VPN might use the same IP address
from their private address spaces.
rd
• Use to specify a route distinguisher to a VRF.
• You can specify either an AS number or an IP address as the first part of the route
distinguisher. Specify some unique integer as the second part.
• You must specify a route distinguisher for a VRF. Otherwise, the VRF will not operate.
Copyright © 2010, Juniper Networks, Inc.424
JunosE 11.2.x BGP and MPLS Configuration Guide