0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

最新版FRRouting(FRR)のインストール方法

0
Last updated at Posted at 2026-09-12

1. はじめに

FRRouting(FRR) は、Linux サーバーをルーターとして動作させるためのオープンソースのルーティングソフトウェアです。BGP、OSPF、IS-IS、RIP などの主要なルーティングプロトコルをサポートしており、データセンター、クラウド、サービスプロバイダー環境を含む多くのネットワークで利用されています。FRR は VyOS をはじめとするネットワーク OS やルーティング製品の基盤技術としても広く採用されています。

FRR が提供する統合管理シェル vtysh は Cisco IOS ライクな CLI を採用しており、Cisco ルーターの運用経験があるユーザーであれば、show running-config、show ip route、router bgp などの馴染みのあるコマンド体系でルーティング機能を設定・管理できます。

以下は、IBM Cloud上のCentOS Stream 10(以下CentOS 10) で試した結果ですが、標準 AppStream リポジトリにも含まれており、dnf install frrで導入できます。

[vpcuser@syasuda-frr01 ~]$ sudo dnf info frr
Last metadata expiration check: 0:11:57 ago on Sat 12 Sep 2026 09:16:35 AM UTC.
Available Packages
Name         : frr
Version      : 10.6.1
Release      : 3.el10
Architecture : x86_64
Size         : 5.7 M
Source       : frr-10.6.1-3.el10.src.rpm
Repository   : appstream
Summary      : Routing daemon
URL          : http://www.frrouting.org
License      : GPL-2.0-or-later AND ISC AND LGPL-2.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND (GPL-2.0-or-later  OR ISC) AND MIT
Description  : FRRouting is free software that manages TCP/IP based routing protocols. It takes
             : a multi-server and multi-threaded approach to resolve the current complexity
             : of the Internet.
             :
             : FRRouting supports BGP4, OSPFv2, OSPFv3, ISIS, RIP, RIPng, PIM, NHRP, PBR,
             : EIGRP and BFD.
             :
             : FRRouting is a fork of Quagga.

2. 最新版FRRの入手方法

しかし、appstream repositoryには最新版が配置されているわけではありません。
FRRのrelease情報はここから確認できます。そして、RPMの最新版を得るためには、https://rpm.frrouting.org/にアクセスすれば良いことがわかります。
image.png

その記述より、最新版を導入するには、以下を実行すれば良いことがわかります。

CentOS9/RHEL9/Rocky10
FRRVER="frr-stable"
curl -O https://rpm.frrouting.org/repo/$FRRVER-repo.el9.noarch.rpm
sudo yum install ./$FRRVER*
sudo yum install frr frr-pythontools
CentOS10/RHEL10/Rocky10
FRRVER="frr-stable"
curl -O https://rpm.frrouting.org/repo/$FRRVER-repo.el10.noarch.rpm
sudo yum install ./$FRRVER*
sudo yum install frr frr-pythontools
最新版を導入した後のバージョン確認
[vpcuser@syasuda-frr01 ~]$ sudo rpm -q frr
frr-10.7.1-01.el10.x86_64

[vpcuser@syasuda-frr01 ~]$ sudo dnf info frr
Last metadata expiration check: 0:03:45 ago on Sat 12 Sep 2026 09:38:08 AM UTC.
Installed Packages
Name         : frr
Version      : 10.7.1
Release      : 01.el10
Architecture : x86_64
Size         : 27 M
Source       : frr-10.7.1-01.el10.src.rpm
Repository   : @System
From repo    : frr
Summary      : Routing daemon
URL          : https://www.frrouting.org
License      : GPLv2+
Description  : FRRouting is a free software that manages TCP/IP based routing
             : protocol. It takes multi-server and multi-thread approach to resolve
             : the current complexity of the Internet.
             :
             : FRRouting supports BGP4, OSPFv2, OSPFv3, ISIS, RIP, RIPng, PIM, LDP
             : NHRP, Babel, PBR, EIGRP and BFD.
             :
             : FRRouting is a fork of Quagga.

Available Packages
Name         : frr
Version      : 10.7.1
Release      : 01.el10
Architecture : src
Size         : 7.9 M
Source       : None
Repository   : frr
Summary      : Routing daemon
URL          : https://www.frrouting.org
License      : GPLv2+
Description  : FRRouting is a free software that manages TCP/IP based routing
             : protocol. It takes multi-server and multi-thread approach to resolve
             : the current complexity of the Internet.
             :
             : FRRouting supports BGP4, OSPFv2, OSPFv3, ISIS, RIP, RIPng, PIM, LDP
             : NHRP, Babel, PBR, EIGRP and BFD.
             :
             : FRRouting is a fork of Quagga.

3. 起動方法

[vpcuser@syasuda-frr01 ~]$ sudo systemctl enable frr
[vpcuser@syasuda-frr01 ~]$ sudo systemctl start frr

4. 最低限の動作確認

FRR は Cisco ライクな CLI を提供する vtysh を利用します。

[vpcuser@syasuda-frr01 ~]$ sudo vtysh -c "show version"
FRRouting 10.7.1 (syasuda-frr01) on Linux(6.12.0-254.el10.x86_64).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
configured with:
    '--build=x86_64-redhat-linux' '--host=x86_64-redhat-linux' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--runstatedir=/run' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sbindir=/usr/lib/frr' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-static' '--disable-werror' '--enable-multipath=256' '--enable-vtysh' '--enable-ospfclient' '--enable-ospfapi' '--enable-ldpd' '--enable-pimd' '--enable-pim6d' '--enable-pbrd' '--enable-nhrpd' '--enable-eigrpd' '--enable-babeld' '--enable-vrrpd' '--enable-user=frr' '--enable-group=frr' '--enable-vty-group=frrvty' '--enable-fpm' '--enable-watchfrr' '--disable-bgp-vnc' '--enable-isisd' '--enable-doc' '--enable-rpki' '--enable-bfdd' '--enable-pathd' '--disable-grpc' '--enable-snmp' '--disable-zeromq' '--enable-pcre2posix' 'build_alias=x86_64-redhat-linux' 'host_alias=x86_64-redhat-linux' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' 'CC=gcc' 'CXX=g++' 'LT_SYS_LIBRARY_PATH=/usr/lib64:'
[vpcuser@syasuda-frr01 ~]$ sudo vtysh -c "show ip route"
Codes: K - kernel route, C - connected, L - local, S - static,
       R - RIP, O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, A - Babel, F - PBR, f - OpenFabric,
       t - Table-Direct,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

IPv4 unicast VRF default:
K>* 0.0.0.0/0 [0/100] via 10.50.0.1, eth0, src 10.50.0.5, weight 1, 00:03:38
C>* 10.50.0.0/24 [0/100] is directly connected, eth0, weight 1, 00:03:38
L>* 10.50.0.5/32 is directly connected, eth0, weight 1, 00:03:38
[vpcuser@syasuda-frr01 ~]$ sudo vtysh -c "show running-config"
Building configuration...

Current configuration:
!
frr version 10.7.1
frr defaults traditional
hostname syasuda-frr01
log syslog informational
!
end
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?