# address-family

#### Syntax

For BGP:

[ no ] address-family { { ipv4 | ipv6 } [ unicast | multicast
| [ unicast ] vrf vrfName ] |
{ vpnv4 | vpnv6 } [ unicast ] | l2vpn [ signaling ] | route-target [ signaling ] |
vpls vplsName | vpws vpwsName }

For IS-IS:

[ no ] address-family ipv6 [ unicast | multicast | unicast multicast ]

For RIP:

[ no ] address-family ipv4 [ unicast ] vrf vrfName

#### Release Information

Command introduced before JunosE Release 7.1.0.
l2vpn and signaling keywords added in JunosE Release 7.1.0.
vpls keyword and vplsName variable added in JunosE Release 7.1.0.
vpws keyword and vpwsName variable added in JunosE Release 8.1.0.
route-target signaling keywords and IS-IS IPv6 version added in JunosE Release 8.2.0.

#### Description

For BGP, configures the router to exchange addresses for the specified address family. This command takes effect immediately.

- For the IPv4 address family, configures the router or a specific VRF to exchange IPv4 addresses in unicast, multicast, or VPN mode.
- For the IPv6 address family, configures the router or a specific VRF to exchange IPv6 addresses in unicast, multicast, or VPN mode.
- For the L2VPN address family, configures a router to exchange layer 2 NLRI for all VPLS instances and all L2VPN (VPWS) instances.
- For the VPLS address family, configures the router to exchange layer 2 NLRI for the VPLS address family for a specified VPLS instance.
- For the VPWS address family, configures the router to exchange layer 2 NLRI for the VPWS address family for a specified L2VPN (VPWS) instance.
- For the route-target address family, configures the router to exchange route-target membership NLRI (RT-MEM-NLRI) that includes information about membership in VPN route-target extended communities.

For IS-IS, configures IS-IS to exchange IPv6 addresses.

For RIP, configures RIP in a specific VRF to exchange IPv4 addresses.

For all routing protocols, the no version removes the address family.

#### Options

- ipv4—Specifies sessions that carry standard IPv4 address prefixes (default)
- ipv6—Specifies sessions that carry IPv6 address prefixes
- multicast—Specifies multicast prefixes
- unicast—Specifies unicast prefixes (default)
- vrfName—Name of the VRF; string of 1–32 alphanumeric characters
- vpnv4—Specifies sessions that carry customer VPN-IPv4 prefixes, each of which has been made globally unique by adding an 8-byte route distinguisher
- vpnv6—Specifies sessions that carry customer VPN-IPv6 prefixes, each of which has been made globally unique by adding an 8-byte route distinguisher
- l2vpn—Specifies sessions that carry L2VPN reachability information
- l2vpn signaling—Specifies BGP signaling of L2VPN reachability information; currently, you can omit the signaling keyword with no adverse effects
- route-target—Specifies sessions that carry route-target membership information
- route-target signaling—Specifies BGP signaling of route-target membership information; currently, this can be omitted with no adverse effects
- vplsName—Name of a VPLS instance for which you are specifying the L2VPN address family; must be issued for each separate VPLS instance
- vpwsName—Name of a layer 2 VPN (VPWS) instance for which you are specifying the L2VPN address family; must be issued for each separate L2VPN instance

#### Mode

Router Configuration

#### Related Documentation

- Configuring BGP Signaling for L2VPNS and Configuring BGP Signaling for VPLS in the JunosE BGP and MPLS Configuration Guide