https://ixnfo.com/en/installing-quagga-on-ubuntu-server-18.html
apt-get -y install quagga
sudo apt install quagga-doc
echo 'net.ipv4.conf.all.forwarding=1' | tee -a /etc/sysctl.conf
echo 'net.ipv4.conf.default.forwarding=1' | tee -a /etc/sysctl.conf
touch /etc/quagga/vtysh.conf
touch /etc/quagga/zebra.conf
touch /etc/quagga/ripd.conf
chown quagga:quaggavty /etc/quagga/vtysh.conf && chmod 660 /etc/quagga/vtysh.conf
chown quagga:quagga /etc/quagga/zebra.conf && chmod 640 /etc/quagga/zebra.conf
chown quagga:quagga /etc/quagga/ripd.conf && chmod 640 /etc/quagga/ripd.conf
echo 'zebra=yes' > /etc/quagga/daemons
echo 'ripd=yes' >> /etc/quagga/daemons
cat /usr/share/doc/quagga-core/examples/vtysh.conf.sample > /etc/quagga/vtysh.conf
cat /usr/share/doc/quagga-core/examples/zebra.conf.sample > /etc/quagga/zebra.conf
cat /usr/share/doc/quagga-core/examples/ripd.conf.sample > /etc/quagga/ripd.conf
echo 'vtysh_enable=yes' > /etc/quagga/debian.conf
echo 'zebra_options=" --daemon -A 127.0.0.1 -P 2601 -u quagga -g quagga --keep_kernel --retain"' >> /etc/quagga/debian.conf
echo 'ripd_options=" --daemon -A 127.0.0.1 -P 2602 -u quagga -g quagga --keep_kernel --retain"' >> /etc/quagga/debian.conf
sudo systemctl is-enabled zebra.service
sudo systemctl is-enabled ripd.service
sudo systemctl enable zebra.service
sudo systemctl enable ripd.service
Alternativo
sudo apt-get install quagga
sudo apt install quagga-doc
sudo nano /etc/sysctl.conf
------- descomentar --------
net.ipv4.ip_forward=1
----------------------------
cp /usr/share/doc/quagga-core/examples/zebra.conf.sample /etc/quagga/zebra.conf
cp /usr/share/doc/quagga-core/examples/ripd.conf.sample /etc/quagga/ripd.conf
cp /usr/share/doc/quagga-core/examples/vtysh.conf.sample /etc/quagga/vtysh.conf
cp /usr/share/doc/quagga-core/examples/bgpd.conf.sample /etc/quagga/bgpd.conf
cp /usr/share/doc/quagga-core/examples/ospfd.conf.sample /etc/quagga/ospfd.conf
sudo chown quagga:quagga /etc/quagga/*.conf
sudo chown quagga:quaggavty /etc/quagga/vtysh.conf
sudo chmod 640 /etc/quagga/*.conf
mkdir /var/log/quagga/
chown quagga:quagga /var/log/quagga/
touch /var/log/zebra.log
chown quagga:quagga/var/log/zebra.log
touch /var/log/ripd.log
chown quagga:quagga /var/log/ripd.log
touch /var/log/ospfd.log
chown quagga:quagga /var/log/ospfd.log
sudo service zebra start
sudo service bgpd start
sudo service ripd start
sudo service ospfd start
sudo systemctl is-enabled zebra.service
sudo systemctl is-enabled bgpd.service
sudo systemctl is-enabled ripd.service
sudo systemctl is-enabled ospfd.service
sudo systemctl enable zebra.service
sudo systemctl enable bgpd.service
sudo systemctl enable ripd.service
sudo systemctl enable ospfd.service
##conectar a zebra
telnet localhost 2601
##conectar a rip
telnet localhost 2602
##conectar a ospf
telnet localhost 2604
##conectar a bgp
telnet localhost 2605
No hay comentarios.:
Publicar un comentario