(OK) Fedora 23——CORE——docker——(2)——> install-quagga
-------------------Installing Quagga on Fedora 23
# dnf group install 'Development Tools' [on Fedora 22+ Versions]
/opt/tools/network_simulators/quagga/quagga-svnsnap.tgz
-rwxrwx---. 1 root root 2471193 1月 13 21:57 quagga-0.99.21mr2.2.tar.gz
-rwxrwx---. 1 root root 2560375 1月 14 14:27 quagga-svnsnap.tgz
# tar xzf quagga-svnsnap.tgz
# cd quagga
[root@localhost quagga]# ./bootstrap.sh
[root@localhost quagga]# ./configure --enable-user=root --enable-group=root --with-cflags=-ggdb --sysconfdir=/usr/local/etc/quagga --enable-vtysh --localstatedir=/var/run/quagga
// copy basic.texi, ipv6.texi in quagga-0.99.24/doc to quagga-0.99.21mr2.2/doc
[root@localhost quagga]# cp ../quagga-0.99.24/doc/basic.texi ../quagga-0.99.24/doc/ipv6.texi doc/
[root@localhost quagga]# make -j4
[root@localhost quagga]# make install
---------------------------------------------------------------------------------
[root@localhost quagga]# pwd
/root/core-tools/quagga
/bin/cp pimd/pimd.conf.sample /usr/local/etc/quagga/pimd.conf
/bin/cp isisd/isisd.conf.sample /usr/local/etc/quagga/isisd.conf
/bin/cp babeld/babeld.conf.sample /usr/local/etc/quagga/babeld.conf
/bin/cp ospf6d/ospf6d.conf.sample /usr/local/etc/quagga/ospf6d.conf
/bin/cp ospfd/ospfd.conf.sample /usr/local/etc/quagga/ospfd.conf
/bin/cp ripngd/ripngd.conf.sample /usr/local/etc/quagga/ripngd.conf
/bin/cp ripd/ripd.conf.sample /usr/local/etc/quagga/ripd.conf
/bin/cp bgpd/bgpd.conf.sample /usr/local/etc/quagga/bgpd.conf
/bin/cp zebra/zebra.conf.sample /usr/local/etc/quagga/zebra.conf
/bin/cp vtysh/vtysh.conf.sample /usr/local/etc/quagga/vtysh.conf
ln -s /usr/local/etc/quagga/pimd.conf /etc/quagga/pimd.conf
ln -s /usr/local/etc/quagga/isisd.conf /etc/quagga/isisd.conf
ln -s /usr/local/etc/quagga/babeld.conf /etc/quagga/babeld.conf
ln -s /usr/local/etc/quagga/ospf6d.conf /etc/quagga/ospf6d.conf
ln -s /usr/local/etc/quagga/ospfd.conf /etc/quagga/ospfd.conf
ln -s /usr/local/etc/quagga/ripngd.conf /etc/quagga/ripngd.conf
ln -s /usr/local/etc/quagga/ripd.conf /etc/quagga/ripd.conf
ln -s /usr/local/etc/quagga/bgpd.conf /etc/quagga/bgpd.conf
ln -s /usr/local/etc/quagga/zebra.conf /etc/quagga/zebra.conf
ln -s /usr/local/etc/quagga/vtysh.conf /etc/quagga/vtysh.conf
/bin/cp /usr/local/etc/quagga/zebra.conf /usr/local/etc/quagga/Quagga.conf
---------------------------------------------------------------------------------
// # cp /etc/sysconfig/quagga.bac /etc/sysconfig/quagga //this command is not used
# gedit /usr/lib/systemd/system/zebra.service
[Unit]
Description=GNU Zebra routing manager
Wants=network.target
Before=network.target
ConditionPathExists=/usr/local/etc/quagga/zebra.conf
[Service]
Type=forking
PIDFile=/run/quagga/zebra.pid
EnvironmentFile=-/etc/sysconfig/quagga
ExecStartPre=/sbin/ip route flush proto zebra
ExecStart=/usr/local/sbin/zebra -d $ZEBRA_OPTS -f /usr/local/etc/quagga/zebra.conf
Restart=on-abort
[Install]
WantedBy=multi-user.target
---------------------------------------------------------------------------------
[root@localhost quagga]# systemctl cat zebra.service
[root@localhost quagga]# systemctl start zebra.service
Job for zebra.service failed because a configured resource limit was exceeded. See "systemctl status zebra.service" and "journalctl -xe" for details.
[root@localhost quagga]# mkdir /run/quagga/
[root@localhost quagga]# systemctl start zebra.service
[root@localhost quagga]# systemctl status zebra.service
[root@localhost quagga]# systemctl stop zebra.service
[root@localhost quagga]# vtysh
[root@localhost quagga]# telnet localhost 2601
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
So far, OK
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
configure.ac:217: error: possibly undefined macro: AC_PROG_LIBTOOL
[root@localhost quagga]# dnf install libtool
[root@localhost quagga]# dnf install autoconf-archive
//automake: You are advised to start using 'subdir-objects' option throughout your
[root@localhost quagga]# gedit configure.ac
dnl AM_INIT_AUTOMAKE(1.6)
AM_INIT_AUTOMAKE([subdir-objects])
[root@localhost quagga]# ./bootstrap.sh
[root@localhost quagga]# dnf install gcc-c++
[root@localhost quagga]# ./configure --enable-user=root --enable-group=root --with-cflags=-ggdb --sysconfdir=/usr/local/etc/quagga --enable-vtysh --localstatedir=/var/run/quagga
//下面一行暂不需要
// copy basic.texi, ipv6.texi in quagga-0.99.24/doc to quagga-0.99.21mr2.2/doc
// makeinfo: command not found
[root@localhost quagga]# dnf install texinfo
# make -j4
# make install
[root@localhost quagga]# pwd
cp pimd/pimd.conf.sample /usr/local/etc/quagga/pimd.conf
cp isisd/isisd.conf.sample /usr/local/etc/quagga/isisd.conf
cp babeld/babeld.conf.sample /usr/local/etc/quagga/babeld.conf
cp ospf6d/ospf6d.conf.sample /usr/local/etc/quagga/ospf6d.conf
cp ospfd/ospfd.conf.sample /usr/local/etc/quagga/ospfd.conf
cp ripngd/ripngd.conf.sample /usr/local/etc/quagga/ripngd.conf
cp ripd/ripd.conf.sample /usr/local/etc/quagga/ripd.conf
cp bgpd/bgpd.conf.sample /usr/local/etc/quagga/bgpd.conf
cp zebra/zebra.conf.sample /usr/local/etc/quagga/zebra.conf
cp vtysh/vtysh.conf.sample /usr/local/etc/quagga/vtysh.conf
ln -s /usr/local/etc/quagga/pimd.conf /etc/quagga/pimd.conf
ln -s /usr/local/etc/quagga/isisd.conf /etc/quagga/isisd.conf
ln -s /usr/local/etc/quagga/babeld.conf /etc/quagga/babeld.conf
ln -s /usr/local/etc/quagga/ospf6d.conf /etc/quagga/ospf6d.conf
ln -s /usr/local/etc/quagga/ospfd.conf /etc/quagga/ospfd.conf
ln -s /usr/local/etc/quagga/ripngd.conf /etc/quagga/ripngd.conf
ln -s /usr/local/etc/quagga/ripd.conf /etc/quagga/ripd.conf
ln -s /usr/local/etc/quagga/bgpd.conf /etc/quagga/bgpd.conf
ln -s /usr/local/etc/quagga/zebra.conf /etc/quagga/zebra.conf
ln -s /usr/local/etc/quagga/vtysh.conf /etc/quagga/vtysh.conf
cp /usr/local/etc/quagga/zebra.conf /usr/local/etc/quagga/Quagga.conf
-------------------Fedora 23, Installing Quagga
------/root/core-tools/quagga/missing:行81: makeinfo: 未找到命令
------need to: dnf install texinfo
# tar xzf quagga-svnsnap.tgz
# cd quagga
[root@localhost quagga]# ./bootstrap.sh
[root@localhost quagga]# ./configure --enable-user=root --enable-group=root --with-cflags=-ggdb --sysconfdir=/usr/local/etc/quagga --enable-vtysh --localstatedir=/var/run/quagga
// copy basic.texi, ipv6.texi in quagga-0.99.24/doc to quagga-0.99.21mr2.2/doc
[root@localhost quagga]# cp ../quagga-0.99.24/doc/basic.texi ../quagga-0.99.24/doc/ipv6.texi doc/
[root@localhost quagga]# make -j4
[root@localhost quagga]# make install
[root@localhost quagga]# systemctl cat zebra.service
[root@localhost quagga]# systemctl start zebra.service
Job for zebra.service failed because a configured resource limit was exceeded. See "systemctl status zebra.service" and "journalctl -xe" for details.
[root@localhost quagga]# mkdir /run/quagga/
[root@localhost quagga]# systemctl start zebra.service
[root@localhost quagga]# systemctl status zebra.service
[root@localhost quagga]# systemctl stop zebra.service
[root@localhost quagga]# vtysh
[root@localhost quagga]# telnet localhost 2601
+++++++++++++++++++++++++++++