FRR 설치

FRRouting(FRR)은 Linux 및 Unix 플랫폼용 IP 라우팅 프로토콜 제품군입니다. 여기에는 BGP, IS-IS, LDP, OSPF, PIM 및 RIP용 프로토콜 데몬이 포함됩니다.

Since the FRR project was forked from Quagga, another routing protocol suite for Linux, FRR includes the fundamentals that made Quagga so popular as well as many other enhancements.



이 블로그 게시물에서는 Debian 기반 OS(예: Ubuntu) 및 CentOS에 FRR을 설치하는 방법에 중점을 둘 것입니다.



Ubuntu(및 기타 Debian 기반 OS)에 설치:




# add GPG key
curl -s https://deb.frrouting.org/frr/keys.asc | sudo apt-key add -

# possible values for FRRVER: frr-6 frr-7 frr-stable
# frr-stable will be the latest official stable release
FRRVER="frr-stable"
echo deb https://deb.frrouting.org/frr $(lsb_release -s -c) $FRRVER | sudo tee -a /etc/apt/sources.list.d/frr.list

# update and install FRR
sudo apt update && sudo apt install frr frr-pythontools


CentOS에 설치:




# possible values for FRRVER: frr-6 frr-7 frr-stable
# frr-stable will be the latest official stable release
FRRVER="frr-stable"

# add RPM repository on CentOS 6
curl -O https://rpm.frrouting.org/repo/$FRRVER-repo-1-0.el6.noarch.rpm
sudo yum install ./$FRRVER*

# add RPM repository on CentOS 7
curl -O https://rpm.frrouting.org/repo/$FRRVER-repo-1-0.el7.noarch.rpm
sudo yum install ./$FRRVER*

# add RPM repository on CentOS 8
curl -O https://rpm.frrouting.org/repo/$FRRVER-repo-1-0.el8.noarch.rpm
sudo yum install ./$FRRVER*

# install FRR
sudo yum install frr frr-pythontools


처음으로 FRR 구성




IP 전달 활성화

Linux를 라우터로 사용할 때 FRR의 전반적인 작동에 영향을 미치는 몇 가지 커널 매개변수가 있습니다. 일반적으로 이러한 매개변수는 sysctl 관련 구성 파일(예: Ubuntu 기반 시스템의/etc/sysctl.conf 및 Centos 기반 시스템의 새 파일/etc/sysctl.d/90-routing-sysctl.conf)에 설정되어야 합니다.

net.ipv4.conf.all.forwarding=1
net.ipv6.conf.all.forwarding=1




BGPD 데몬 활성화

새로 설치한 후 FRR을 시작하면 아무 작업도 수행되지 않습니다. 구성 디렉토리의 파일을 편집하여 데몬을 명시적으로 활성화해야 하기 때문입니다. 이 파일은 일반적으로/etc/frr/daemons에 있으며 init 또는 systemd를 통해 서비스 시작/중지 명령을 실행할 때 활성화되는 데몬을 결정합니다. 특정 데몬을 활성화하려면 해당 'no'를 'yes'로 변경하기만 하면 됩니다. 후속 서비스를 다시 시작하면 데몬이 시작됩니다.

bpd 데몬을 활성화하려면/etc/frr/daemons에서 bgpd=no를 다음으로 변경합니다.

bgpd=yes




다시 시작하고 FRR 활성화

데몬을 활성화했으면 이제 FRR을 다시 시작하고 다음 명령을 사용하여 부팅 시 FRR 시스템 서비스가 시작되도록 활성화합니다.

systemctl restart frr.service
systemctl enable frr.service


참조 링크:


  • frrouting.org
  • Learn Frrouting - Cumulus
  • FRR User Manual
  • FRR Releases
  • FRR Overview - Cumulus


  • 이미지 출처:

    https://docs.cumulusnetworks.com/cumulus-linux-41/Layer-3/FRRouting-Overview/

    좋은 웹페이지 즐겨찾기