For Layer 3 VPNs:
disable bgp export route_type {{address-family} address_family}Disables BGP from exporting routes from other protocols to BGP peers.
bgp | For Layer 3 VPNs, this specifies that BGP routes learned from CE routers are to be exported to remote PE routers. |
route_type | Specifies the BGP export route type. |
address-family | Specifies an IPv4 or IPv6 unicast or multicast address family. |
Disabled.
If no address family is specified, IPv4 unicast is the default.
Note
You must specify an IPv6 address family for an IPv6 peer, because an IPv6 peer does not support the default IPv4 unicast address family. Similarly, if you specify an IPv4 peer and an address family in the command, an IPv4 address family must be specified.
The exporting of routes between any two routing protocols is a discrete configuration function. For example, you must configure the switch to export routes from OSPF to BGP and, if desired, you must configure the switch to export routes from BGP to OSPF. You must first configure both protocols and then verify the independent operation of each. Then you can configure the routes to export from OSPF to BGP, and the routes to export from BGP to OSPF.
You can use policies to associate BGP attributes including Community, NextHop, MED, Origin, and Local Preference with the routes. Policies can also be used to filter out exported routes.
Using the export command to redistribute routes complements the redistribution of routes using the configure bgp add network command. The configure bgp add network command adds the route to BGP only if the route is present in the routing table. The enable bgp export command redistributes an individual route from the routing table to BGP. If you use both commands to redistribute routes, the routes redistributed using the network command take precedence over routes redistributed using the export command.
Note
For this command to execute, the specified protocol must support the specified address family. For example, the command fails if you specify OSPF and the IPv6 unicast address family. You can specify blackhole, direct, static, and IS-IS routes with IPv4 or IPv6 address families.
For Layer 3 VPNs, the disable bgp export command must be entered in the context of the VRF that supports the Layer 3 VPN.
When the export source is the Layer 3 VPN, you can specify direct, or remote-vpn to disable route export to the VRF. The destination address family must be ipv4‑unicast.
When the export source is the VRF, you can specify direct, or bgp to disable route export to the VPN. The destination address family must be vpnv4.
The following command disables BGP from exporting routes from the OSPF protocol to BGP peers:
disable bgp export ospf
The following command disables the export of BGP routes from a VRF to a VPN:
disable bgp export bgp address-family vpnv4
This command was first available in ExtremeXOS 10.1.
This command required a specific license in ExtremeXOS 11.1.
The blackhole option was added in ExtremeXOS 12.1.3.
Support for IPv6 was added in ExtremeXOS 12.6 BGP.
Support for Layer 3 VPNs was added in ExtremeXOS 15.3.
This command is available on platforms that support the appropriate license. For complete information about software licensing, including how to obtain and upgrade your license and which licenses support the BGP feature, see the ExtremeXOS 32.6.1 Feature License Requirements document.