OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : bgp enforce-first-as
bgp enforce-first-as
Use this command to enforce the first AS for eBGP routes. This command specifies that any updates received from an external neighbor that do not have the neighbor’s configured Autonomous System (AS) at the beginning of the AS_PATH in the received update must be denied. Enabling this feature adds to the security of the BGP network by not allowing traffic from unauthorized systems.
Using the no parameter with this command to disable this feature.
Command Syntax
bgp enforce-first-as
no bgp enforce-first-as
Parameters
None
Default
By default, enforce-first-as is disabled
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router bgp 100
(config-router)#bgp enforce-first-as
 
(config)#router bgp 100
(config-router)#no bgp enforce-first-as
Last modified date: 08/28/2023