Address Family ConfigurationΒΆ

tnsr(config-bgp)# address-family ipv4 unicast
tnsr(config-bgp-ip4uni)# network 10.2.0.0/16
tnsr(config-bgp-ip4uni)# exit

The TNSR BGP implementation is capable of handling routing information for IPv4 and IPv6 independently, among other network layer protocols. The address-family command defines BGP behavior for each specific supported case. The most common address families are ipv4 unicast and ipv6 unicast. The command changes to BGP address family mode, bgp-af, which contains settings specific to each address family.

In this example for the ipv4 unicast address family, BGP is instructed to announce a route for the 10.2.0.0/16 network prefix. Neighbors will receive this route once they form an adjacency to this router.