Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is Address family command node in cisco iox and how can I use it?

share|improve this question

closed as not a real question by Michael Hampton, HopelessN00b, Magellan, MadHatter, Chris S Nov 20 '12 at 15:11

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

What does the manual say? – SpacemanSpiff Nov 19 '12 at 16:49
up vote 0 down vote accepted

From the manual (or any one of the manuals, to be more accurate):


To enter the address family submode for configuring routing protocols, such as BGP, RIP and static routing, use the address-family command in address family configuration submode. To disable the address family submode for configuring routing protocols, use the no form of this command.

An explanation of what that actually means (from someone else) below. If you need more explanation than that, I suggest you shouldn't be mucking about on a [production] router, which sounds like it might be good advice in either case.

The address-family in the BGP configuration allows you to define a specific behavior of BGP with regards to many supported Layer3 protocols:

IPv4 networks for unicast
IPv4 networks for multicast
IPv6 networks for unicast
IPv6 networks for multicast
CLNS (NSAP) networks

The BGP treats all these address families individually, as if it has been configured in a separate instance for each of them. These individual instances do not leak one into each other (even if they are of the same basic type). This way, you can configure a single BGP process to maintain several databases of different networks.

The BGP, as a multiprotocol routing protocol, can carry different types of routing information in a single BGP session. That means, however, that for each of these network types, you need to somehow tell the BGP which neighbors also support the same protocol type, which routes to inject, how are the individual networks going to be filtered or their attributes modified, and so on... That is done in the address-family context.

For example, a simple IPv4/IPv6/NSAP BGP could be configured as follows:

router bgp 64513
bgp log-neighbor-changes
neighbor 2001:12::1 remote-as 64512
neighbor remote-as 64512
address-family ipv4
no neighbor 2001:12::1 activate
neighbor activate
no auto-summary
no synchronization exit-address-family
address-family ipv6
neighbor 2001:12::1 activate
address-family nsap
neighbor activate
no synchronization

A single BGP process in this case is configured with three address families: IPv4, IPv6, and NSAP (the OSI stack). There are two neighbors defined, one by its IPv4 address, the second by its IPv6 address. In my example, both these addresses actually correspond to a single neighboring router but of course they do not have to. Now, in the address-family ipv4 context, it is configured that the we will exchange IPv4 routing information with the neighbor reachable under the IP In the address-family ipv6 context, it is configured that we will exchange IPv6 routing information with the neighbor 2001:12::1. And finally, in the address-family nsap context, it is stated that this router will also exchange the routing information for CLNS networks with the router All these three different Layer3 protocols and their routing information will be maintained by this single BGP process but it was necessary to specify which neighbors speak which protocols. In addition, if we needed to use route-maps, prefix-lists and other attribute manipulations for a particular address type, we would also need to define them for particular neighbors in their respective address-family contexts.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.