next-hop-enable-default

Configures the device to use the BGP default route as the next hop.

Syntax

next-hop-enable-default
no next-hop-enable-default

Command Default

This feature is disabled.

Modes

BGP address-family IPv4 unicast configuration mode

BGP address-family IPv6 unicast configuration mode

BGP address-family IPv4 unicast VRF configuration mode

BGP address-family IPv6 unicast VRF configuration mode

Usage Guidelines

The no form of the command restores the default.

Examples

The following BGP4 example configures the device to use the default route as the next hop for the default VRF.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv4u)# next-hop-enable-default

The following BGP4+ example configures the device to use the default route as the next hop for the default VRF.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# next-hop-enable-default