Creating A Vrf - Juniper BGP - CONFIGURATION GUIDE V 11.1.X Configuration Manual

Junose software for e series routing platforms
Table of Contents

Advertisement

6.
7.

Creating a VRF

Access the desired virtual router context; then create the VRF(s) for that VR.
ip vrf
Use network commands or the redistribute static command to make
BGP advertise static routes to customers.
host1:vr1(config-router)#network 10.3.0.0 mask 255.255.0.0
host1:vr1(config-router)#redistribute static
Use redistribute commands to make BGP advertise IGP routes to
customers.
host1:vr1(config-router)#redistribute ospf
(Optional) Configure an AS override.
See "Using a Single AS Number for All CE Sites" on page 447 for examples.
(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
host1(config)#virtual-router vr1
host1:vr1(config)#ip vrf vrfA
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.
Chapter 5: Configuring BGP-MPLS Applications
Configuring BGP VPN Services
421

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.1.x bgp and mplsBgpMpls

Table of Contents