10-31-2015 10:42 AM - edited 03-08-2019 02:31 AM
Hi Everyone,
Our Internet router is connected to ISP and running BGP.
Need to know what does below command do?
no bgp enforce-first-as
Regards
Mahesh
Solved! Go to Solution.
10-31-2015 02:21 PM
Hi Mahesh,
By default, Cisco routers deny any updates recived from an eBGP peer that does not list the AS number in the path of an incoming update. So, "no bgp enforce-first-as" will diable that.
Here is more info from the command reference guide:
http://www.cisco.com/c/en/us/td/docs/ios/iproute_bgp/command/reference/irg_book/irg_bgp1.html#wp1114079
HTH
Reza
10-31-2015 03:49 PM
Hello,
BGP peers list their AS number as the first segment in the AS_PATH attribute. Under BGP command you specify a neighbour and its AS number. As an example,
"Neighbor 192.8.7.9 remote-as 64352".
If you apply "bgp enforce-first-as", BGP checks the updates from 192.8.7.9 to make sure AS number 64352 is listed in AS_PATH attribte.
Enabling this command prevents a misconfigured or unauthorized peer from misdirecting traffic.
You will disable this feature If you apply "no bgp enforce-first-as".
Hope it helps,
Masoud
10-31-2015 02:21 PM
Hi Mahesh,
By default, Cisco routers deny any updates recived from an eBGP peer that does not list the AS number in the path of an incoming update. So, "no bgp enforce-first-as" will diable that.
Here is more info from the command reference guide:
http://www.cisco.com/c/en/us/td/docs/ios/iproute_bgp/command/reference/irg_book/irg_bgp1.html#wp1114079
HTH
Reza
10-31-2015 03:49 PM
Hello,
BGP peers list their AS number as the first segment in the AS_PATH attribute. Under BGP command you specify a neighbour and its AS number. As an example,
"Neighbor 192.8.7.9 remote-as 64352".
If you apply "bgp enforce-first-as", BGP checks the updates from 192.8.7.9 to make sure AS number 64352 is listed in AS_PATH attribte.
Enabling this command prevents a misconfigured or unauthorized peer from misdirecting traffic.
You will disable this feature If you apply "no bgp enforce-first-as".
Hope it helps,
Masoud
01-26-2024 08:27 AM
@Masoud Pourshabanian but how. I am thinking this concept is now invalid where you have to peer with IXP - Internet Exchange Point. IXPs peers with ISPs, CDNs, and SPs suing route servers. and route servers, do not include their ASs in the BGP paths. So, leaving "bgp enforce-first-as" check in place would impact the experience of such provider.
10-31-2015 05:44 PM
Many thanks Reza.
Regards
Mahesh
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide