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.
Disabling the Default Address Family
PE routers can exchange routes in the IPv4 address family, VPNv4 address family, or
both. Issuing the
neighbor remote-as
command automatically activates the IPv4 unicast
address family, meaning that the PE router exchanges routes in the IPv4 unicast address
family with that peer.
Example 1
The following commands illustrate how to configure the exchange of routes in both the
IPv4 unicast and the VPNv4 unicast address families for a BGP peer:
host1:vr1(config)#
router bgp 777
host1:vr1(config-router)#
neighbor 10.26.5.10 remote-as 100
host1:vr1(config-router)#
address-family vpnv4 unicast
host1:vr1(config-router-af)#
neighbor 10.26.5.10 activate
host1:vr1(config-router-af)#
exit-address-family
Copyright © 2010, Juniper Networks, Inc.
446
JunosE 11.2.x BGP and MPLS Configuration Guide
Содержание JUNOSE 11.2.X BGP AND MPLS
Страница 6: ...Copyright 2010 Juniper Networks Inc vi...
Страница 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 38: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 192: ...Copyright 2010 Juniper Networks Inc 156 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 242: ...Copyright 2010 Juniper Networks Inc 206 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 244: ...Copyright 2010 Juniper Networks Inc 208 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 310: ...Copyright 2010 Juniper Networks Inc 274 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 356: ...Copyright 2010 Juniper Networks Inc 320 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 418: ...Copyright 2010 Juniper Networks Inc 382 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 524: ...Copyright 2010 Juniper Networks Inc 488 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 544: ...Copyright 2010 Juniper Networks Inc 508 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 608: ...Copyright 2010 Juniper Networks Inc 572 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 672: ...Copyright 2010 Juniper Networks Inc 636 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 674: ...Copyright 2010 Juniper Networks Inc 638 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 716: ...Copyright 2010 Juniper Networks Inc 680 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 717: ...PART 6 Index Index on page 683 681 Copyright 2010 Juniper Networks Inc...
Страница 718: ...Copyright 2010 Juniper Networks Inc 682 JunosE 11 2 x BGP and MPLS Configuration Guide...