Skip to content

Instantly share code, notes, and snippets.

@jfroy
Created June 29, 2024 01:03
Show Gist options
  • Save jfroy/70807cbd33184dda922b68b1cc6cba94 to your computer and use it in GitHub Desktop.
Save jfroy/70807cbd33184dda922b68b1cc6cba94 to your computer and use it in GitHub Desktop.
# default to using syslog. /etc/rsyslog.d/45-frr.conf places the log in
# /var/log/frr/frr.log
#
# Note:
# FRR's configuration shell, vtysh, dynamically edits the live, in-memory
# configuration while FRR is running. When instructed, vtysh will persist the
# live configuration to this file, overwriting its contents. If you want to
# avoid this, you can edit this file manually before starting FRR, or instruct
# vtysh to write configuration to a different file.
log syslog informational
hostname <gateway hostname>
frr defaults datacenter
service integrated-vtysh-config
!
!
router bgp <asn>
bgp router-id 192.168.1.1
no bgp default ipv4-unicast
neighbor V4 peer-group
neighbor V4 remote-as <peer asn>
neighbor x.x.x.x peer-group V4
neighbor V6 peer-group
neighbor V6 remote-as <peer asn>
neighbor xxxx:: peer-group V6
!
address-family ipv4 unicast
redistribute connected
redistribute kernel
neighbor V4 activate
neighbor V4 soft-reconfiguration inbound
neighbor V4 route-map ALLOW-ALL in
neighbor V4 route-map ALLOW-ALL out
exit-address-family
address-family ipv6 unicast
redistribute connected
redistribute kernel
neighbor V6 activate
neighbor V6 soft-reconfiguration inbound
neighbor V6 route-map ALLOW-ALL in
neighbor V6 route-map ALLOW-ALL out
exit-address-family
!
route-map ALLOW-ALL permit 10
!
line vty
!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment