address-family (BGP neighbor)

To enter the neighbor address family mode address-family mode and configure submode commands for the Border Gateway Protocol (BGP), use the address-family command. To disable the address family submode for configuring routing protocols, use the no form of this command.

address-family ipv4 { multicast | unicast }

no address-family ipv4 { multicast | unicast }

Syntax Description

ipv4
Specifies the IPv4 address family.
multicast
Specifies multicast address support.
unicast
Specifies unicast address support.

Command Default

This command has no default settings.

Command Modes

Neighbor configuration mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

Use the address-family command to enter various address family configuration modes while configuring BGP routing. When you enter the address-family command from neighbor configuration mode, you enable the neighbor address family and enter the neighbor address family configuration mode. The prompt changes to switch(config-router-neighbor-af)#.

You must configure the address families if you are using route redistribution, load balancing, and other advanced features. IPv4 neighbor sessions support IPv4 unicast and multicast address families.

This command requires the LAN Enterprise Services license.

Examples

This example shows how to activate IPv4 multicast for neighbor 192.0.2.1 and place the device in neighbor address family configuration mode for the IPv4 multicast address family:

switch(config)# feature bgp
switch(config)# router bgp 64496
switch(config-router)# neighbor 192.0.2.1 remote-as 64496
switch(config-router-neighbor)# address-family ipv4 multicast
switch(config-router-neighbor-af)
 

Related Commands

Command
Description
advertise-map
Configures BGP conditional advertisement.
default-originate (BGP)
Configures a BGP routing process to distribute a default route.
feature bgp
Enables BGP configuration.
maximum-prefix
Controls how many prefixes can be received from a neighbor.
route-reflector-client
Configures the router as a BGP route reflector.
soft-reconfiguration inbound
Configures the switch software to start storing BGP peer updates.
suppress-inactive
Advertises only active routes to peer.