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.
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)
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.
host1:vr1(config-router)#
network 10.3.0.0
host1:vr1(config-router)#
network 10.12.0.0
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:
host1:vr1(config-router)#
redistribute static
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:
host1:vr1(config-router)#
redistribute ospf
See “Configuring BGP Routing” on page 3, for more information about advertising
IGP routes.
Configuring BGP VPN Services
■
445
Chapter 5: Configuring BGP-MPLS Applications
Summary of Contents for BGP
Page 6: ...vi ...
Page 8: ...viii JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 37: ...Part 1 Border Gateway Protocol Configuring BGP Routing on page 3 Border Gateway Protocol 1 ...
Page 38: ...2 Border Gateway Protocol JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 234: ...198 Monitoring BGP JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 236: ...200 Multiprotocol Layer Switching JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 542: ...506 Monitoring BGP MPLS VPNs JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 544: ...508 Layer 2 Services Over MPLS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 610: ...574 Virtual Private LAN Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 624: ...588 VPLS References JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 680: ...644 Virtual Private Wire Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 724: ...688 Monitoring MPLS Forwarding Table for VPWS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 725: ...Part 6 Index Index on page 691 Index 689 ...
Page 726: ...690 Index JUNOSe 11 1 x BGP and MPLS Configuration Guide ...