[Contents] [Prev] [Next] [Index] [Report an Error]

Configuring the Address Family

The BGP multiprotocol extensions specify that BGP can exchange information within different types of address families. The JUNOSe BGP implementation defines the following different types of address families:

Any command issued outside the context of an address family applies to the unicast IPv4 address family by default.

To limit the exchange of routes to those from within the address family and to set other desired BGP parameters:

  1. Access Router Configuration mode and create peers and peer groups. These peers and peer groups are in the default IPv4 address family.
    host1(config)#router bgp 100
    host1(config-router)#neighbor 10.10.2.2 remote-as 100
    host1(config-router)#neighbor 10.10.3.3 remote-as 100
    host1(config-router)#neighbor ibgp peer-group
  2. In Router Configuration mode, create the address family within which the router exchanges addresses; this creation accesses Address Family Configuration mode.
    host1(config-router)#address-family vpn4 unicast
  3. From within the address family, activate individual neighbors or peer groups to exchange routes from within the current address family. These peers or peer groups must first be created in the IPv4 address family.
    host1(config-router-af)#neighbor ibgp activate
  4. If you have activated a peer group, from within the address family add peers as members of the peer group. These peers must first be created in the IPv4 address family.
    host1(config-router-af)#neighbor 10.10.2.2 peer-group ibgp
    host1(config-router-af)#neighbor 10.10.3.3 peer-group ibgp
  5. From within the address family, configure BGP parameters for the address family.
  6. Exit Address Family Configuration mode.
    host1:vr1(config-router-af)#exit-address-family

address-family

bgp default ipv4-unicast

exit-address-family

neighbor activate

If you have configured some or all neighbors to be in the multicast or VPN-IPv4 address families, you can quickly configure all neighbors to be part of the IPv4 unicast address family by issuing the bgp default ipv4-unicast command.


[Contents] [Prev] [Next] [Index] [Report an Error]