summaryrefslogtreecommitdiffstats
path: root/tests/topotests/bgp_asdot_regex/r1/bgpd.conf
blob: 4dd95dd8b7115f59aece1019285afbafb9ed5cff (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
router bgp 1.1
  no bgp ebgp-requires-policy
  no bgp network import-check
  neighbor 192.168.255.2 remote-as 1.2
  address-family ipv4 unicast
   network 172.31.1.0/24 route-map rmapout
   network 172.31.2.0/24 route-map rmapout
   neighbor 192.168.255.2 route-map rmapin in
   neighbor 192.168.255.2 activate
  exit-address-family
exit
bgp as-path access-list only1_4 permit _1.4_
bgp as-path access-list only65540 permit _65540_
access-list 172313 permit 172.31.3.0/24
access-list 172314 permit 172.31.4.0/24
route-map rmapout permit 1
 set as-path prepend 1.4
exit
route-map rmapin permit 1
 match ip address 172313
 match as-path only1_4 
exit
route-map rmapin permit 2
 match ip address 172314
 match as-path only65540
exit