Advertising Static Routes To Customers; Advertising Igp Routes To Customers - Juniper BGP - CONFIGURATION GUIDE V 11.1.X Configuration Manual

Junose software for e series routing platforms
Table of Contents

Advertisement

You configure the characteristics of VRF A, the global BGP attributes, the address
family for the session, and BGP attributes relevant to the VRF or address family.
See "Configuring BGP Routing" on page 3, for more information about configuring
BGP.

Advertising Static Routes to Customers

If you established static routes on a PE router for each prefix in a particular customer
site, you can configure BGP on the PE router to advertise these static routes to
customer sites within the VPN with network commands.
In this example, both networks end on a classful boundary, eliminating the need to
configure a network mask.
Alternatively, you can use the redistribute command to advertise the static routes
as follows:
See "Configuring BGP Routing" on page 3, for more information about advertising
static routes.

Advertising IGP Routes to Customers

If the PE router learns routes from a CE router by means of an IGP, you can configure
BGP to advertise these IGP routes to all customer sites within the VPN with
redistribute commands. For example, if the PE router learns the routes by means
of OSPF, you can issue the following command to inject these routes into BGP for
advertisement:
See "Configuring BGP Routing" on page 3, for more information about advertising
IGP routes.
host1(config)#ip vrf vrfa
host1(config-vrf)#rd 777:5
host1(config-vrf)#route-target both 777:5
host1(config-vrf)#exit
host1(config)#interface gigabitEthernet 1/0
host1(config-if)#ip vrf forwarding vrfA
host1(config-if)#ip address 10.1.10.1 255.255.255.0
host1(config-if)#exit
host1(config)#router bgp 777
(Not shown: Configuration of other global BGP attributes)
host1(config-router)#address-family ipv4 unicast vrf vrfA
host1(config-router-af)#neighbor 10.1.10.2 remote-as 73
(Not shown: Configuration of BGP attributes relevant to the VRF or the address family)
host1:vr1(config-router)#network 10.3.0.0
host1:vr1(config-router)#network 10.12.0.0
host1:vr1(config-router)#redistribute static
host1:vr1(config-router)#redistribute ospf
Chapter 5: Configuring BGP-MPLS Applications
Configuring BGP VPN Services
445

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.1.x bgp and mplsBgpMpls

Table of Contents