Hi Truf,
Both the scenario that you have mentioned will achieve the same result.
In the first case since the local address if mentioned at the beginning ,both the groups internal-peers and other-group will inherit the same local address as it is applied at the global level and we haven’t applied anything explicitly at the group level.
show protocols bgp
local-address 172.16.1.1;
export send-direct;
group internal-peers {
type internal;
export send-192.168.0.1;
neighbor 172.16.2.2 {
export send-192.168.20.1;
}
neighbor 172.16.3.3;
}
group other-group {
type internal;
neighbor 172.16.4.4;
}
Now in the second scenario, you are explicitly applying the local address at the group level and this will take precedence over the global level policy. But since your local address is the same the both config scenario will achieve the same result.
Regards,
Jibu