AS_PATH
When multiple routes exist to the same destination, BGP compares the AS_PATH length.

on router.

enable
configure terminal

route-map PREPEND permit 10
 set as-path prepend 100 100 100
exit


(--apply route map--)

router bgp 100

neighbor 167.167.70.2 route-map PREPEND out

end
write memory