ArubaOS-Switch BGP

- networking aruba bgp

Quick & simple config commands:

switch(config)# router bgp 65001
switch(bgp)# network 10.0.0.0 255.255.0.0 ## advertise 10.0/16 
switch(bgp)# neighbor 172.21.40.2 remote-as 65003 
switch(bgp)# neighbor 172.21.40.5 remote-as 65001 ### ibgp peer 
switch(bgp)# neighbor 172.21.40.5 update-source 192.0.1.1 ## choose loopback for ibgp peer 
switch(bgp)# redistribute connected ## redistribute connected routes

BGP community example

switch(config)# route-map MAP-no-export permit seq 10 
switch(roulte-map-MAP-no-export)# set community no-export
switch(roulte-map-MAP-no-export)# exit
switch(config)# router bgp 65001
switch(bgp)# neighbor 172.21.40.2 route-map MAP-no-export

BGP policy example - set localpref

switch(config)# route-map MAP-localpref-150 permit seq 10
switch(roulte-map-MAP-localpref-150)# set local-preference 150
switch(roulte-map-MAP-localpref-150)# exit
switch(config)# router bgp 65001
switch(bgp)# neighbor 192.0.0.1 route-map localpref-150 in

BGP Route Reflector

// on RR 
switch(config)# router bgp 65001
switch(bgp)# bgp router-id 1.1.1.1
switch(bgp)# bgp neighbor 192.0.1.1 route-reflector-client
// on client
switch(config)# router bgp 65001
switch(bgp)# bgp router-id 2.2.2.2
switch(bgp)# bgp neighbor 192.0.2.1 remote-as 65001