!
int r1-eth0
 ip address 192.168.1.1/24
!
router bgp 65001
 no bgp ebgp-requires-policy
 no bgp network import-check
 neighbor 192.168.1.2 remote-as external
 neighbor r3 peer-group
 neighbor r3 remote-as external
 neighbor 192.168.1.3 peer-group r3
 neighbor r4 peer-group
 neighbor r4 remote-as external
 neighbor 192.168.1.4 peer-group r4
 address-family ipv4 unicast
  network 10.0.0.1/32 route-map all
  neighbor 192.168.1.2 route-map all in
  neighbor r3 route-map all in
  neighbor r4 route-map all in
 exit-address-family
!
route-map all permit 5
 match peer local
 set metric 1
!
route-map all permit 10
 match peer 192.168.1.2
 set metric 2
!
route-map all permit 15
 match peer r3
 set metric 3
!
route-map all permit 20
 match peer r4
 set metric 4
!
