-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver4.frr.conf
More file actions
42 lines (42 loc) · 1.13 KB
/
Copy pathserver4.frr.conf
File metadata and controls
42 lines (42 loc) · 1.13 KB
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
38
39
40
41
42
frr version 10.3
frr defaults traditional
hostname <local machine hostname>
log syslog informational
no ip forwarding
no ipv6 forwarding
service integrated-vtysh-config
!
ip prefix-list OUTBOUND_ONLY seq 5 permit <my IP range and subnet to announce>
ip prefix-list DEFAULT_ONLY seq 5 permit 0.0.0.0/0
ip prefix-list DEFAULT_ONLY seq 10 deny 0.0.0.0/0 le 32
ip prefix-list ANY seq 5 permit 0.0.0.0/0 le 32
!
route-map OUTBOUND_ONLY permit 10
match ip address prefix-list OUTBOUND_ONLY
exit
!
route-map ALLOW_ALL_IN permit 10
match ip address prefix-list ANY
exit
!
route-map DEFAULT_ONLY_IN permit 10
match ip address prefix-list DEFAULT_ONLY
exit
!
route-map DEFAULT_ONLY_IN deny 20
exit
!
router bgp <my AS>
bgp router-id <my host IP address>
neighbor <neighbor IP> remote-as <neighbor AS>
neighbor <neighbor IP> description <name of provider>
neighbor <neighbor IP> ebgp-multihop 3
neighbor <neighbor IP> update-source <my host IP address>
!
address-family ipv4 unicast
network <my ip range and subnet to announce>
neighbor <neighbor IP> route-map ALLOW_ALL_IN in
neighbor <neighbor IP> route-map OUTBOUND_ONLY out
exit-address-family
exit
!