On my network infrastructure, an Arista switch is the core switch and a pfsense server the gateway. BGP is used to advertise routes for all the internal networks. On Arista switch, I see the BGP configured like that:
router bgp 65009
vrf XXXXX
local-as 65008
router-id 172.X.X.1
neighbor 172.X.X.2 remote-as 65007
neighbor 172.X.X.2 maximum-routes 12000
redistribute connected
My question is "Why may local-as have been configured without neighbor 172.X.X.1? Is there any functional difference if we don't add the neighbor command?" I would expect to see like that:
router bgp 65009
vrf XXXXX
neighbor 172.X.X.2 local-as 65008
router-id 172.X.X.1
neighbor 172.X.X.2 remote-as 65007
neighbor 172.X.X.2 maximum-routes 12000
redistribute connected