Chapter 35 commands for bgp and mbgp4, 1 address-family, 2 address-family ipv4 – PLANET XGS3-24040 User Manual

Page 513: Address, Family, Family ipv

Advertising
background image


35-226

Chapter 35 Commands for BGP and

MBGP4+

35.1 address-family

Command: address-family <AFI> <SAFI>

Function: Enter address-family mode.

Parameter: <AFI> address-family, such as IPv4、IPv6、VPNv4, etc ;

<SAFI>: sub address-family, such as unicast、multicast

Default: None.

Command Mode: BGP routing mode

Usage Guide: Since the BGP-4 supports multi-protocol, it is available to get different configuration for

each address-family. Actually the configuration outside address-family mode is configuring the default

address-family (normally IPv4 unicast). To configure non default mode, enter this address-family mode.

Example:

Switch(config-router)# address-family ipv4 unicast

35.2 address-family ipv4

Command: address-family ipv4 {multicast | unicast | vrf<vrf-name>}

no address-family ipv4 vrf <vrf-name>

Function: Enter BGP VRF address-family mode. The no command deletes the configuration of the

address-family.

Parameter: <vrf-name> specifies the name of VPN routing/forwarding instances.

Command Mode: BGP Route Mode.

Usage Guide: To support VPN, VRF has to be enabled on the border routers; to realize VPN, create

neighbors for BGP with the VRF address family on the private network, and with VPNv4 address-family

on the public network. Configuration performed with this command to specific VRF, is independent from

IPv4 unicast address-family. The VRF configuration is performed by using ip vrf <NAME> command

under global mode. The address-family configuration is only available after the VRF RD is set.

Example: In the example below a VRF name DC1 is created with RD at 100: :10, and then enter the

BGP address-family for its configuration.

Switch(config)#ip vrf DC1

Switch(config-vrf)#rd 100:10

Switch(config-vrf)#exit

Switch(config)#router bgp 100

Advertising