Install quagga routing software

Source: Internet
Author: User
>
#! /Bin/Bash to download the software: quagga-0.99.19.tar.gzcp/etc/yum. conf/etc/yum. conf. lnmpsed-I's: exclude =. *: exclude =: G'/etc/yum. conffor packages in GCC gcc-C ++ ncurses-devel libxml2-devel OpenSSL-devel curl-devel libjpeg-devel libpng-devel Autoconf PCRE-devel libtool-libs FreeType-devel GD zlib-devel zip unzip wget crontabs iptables file bison cmake patch mlocate flex diffutils automake make Readline-devel glibc-static glib2-devel bzip2-devel gettext-devel libcap-devel logrotate Telnet OpenSSL validation CT; do echo "[$ {packages} installing] ****************************>> "; yum-y install $ packages; done; MV-F/etc/yum. conf. lnmp/etc/yum. conf; tar zxvf quagga-0.99.19.tar.gz; CD quagga-0.99.19. /configure -- prefix =/usr/local/quagga -- sysconfdir =/etc/quagga -- localstatedir =/var/run/quagga -- enable-vtysh -- enable-user = 'test '-- enable-group = 'test' -- enable-vty-group = 'test' make; make install; groupadd test; useradd test-g test; mkdir/var/run/quagga; chown test: Test/var/run/quagga; chmod 777/var/run/quagga; chown test: Test/etc/quagga; chmod 777/etc/quagga/* makedir/var/log/quagga/touch/var/log/quagga/zebra. logchmod 777/var/log/quagga/zebra. logcp/etc/quagga/zebra. conf. sample/etc/quagga/zebra. confcp/etc/quagga/ripd. conf. sample/etc/quagga/ripd. confcp/etc/quagga/ospfd. conf. sample/etc/quagga/ospfd. confecho "log file/var/log/quagga/zebra. log ">/etc/quagga/zebra. confcp/etc/services. bakecho 'zebrasrv 2600/tcp # zebra service'>/etc/services echo 'zebra 2601/tcp # zebra vty '>/etc/services echo 'ripd 2602/tcp # ripd vty '>/etc/services echo 'ripngd 2603/tcp # ripngd vty'>/etc/services echo 'ospfd 2604/tcp # ospfd vty '>/etc/services echo 'bgpd 2605/tcp # bgpd vty '>/etc/services echo 'ospf6d 2606/tcp # ospf6d vty'>/etc/services echo 'ospfapi 2607/tcp # ospfapi '>/etc/services echo 'isid 2608/tcp'>/etc/services/etc/init. d/iptables stop; #/usr/local/quagga/sbin/ZEBRA-D #/usr/local/quagga/sbin/ripd-D #/usr/local/quagga/sbin/ospfd-D # telnet localhost ripd


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.