summaryrefslogtreecommitdiffstats
path: root/tests/topotests/bgp_match_peer/r1/frr.conf
blob: f30da3b896a210d8ac9f9d674563e7bab3ff9e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
!
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
!