Build the quagga environment and build quagga

Source: Internet
Author: User

Build the quagga environment and build quagga
 

  1. #./configure --enable-vtysh -- Enable-user = root -- enable-group = root -- enable-vty-group = root
  1. #make
  2. # Make install
Add related services to/etc/services:
  1. vim /etc/services
Add the following content:
  1. zebrasrv 2600/tcp # zebra service
  2. zebra 2601/tcp # zebra vty
  3. ripd 2602/tcp # RIPd vty
  4. ripngd 2603/tcp # RIPngd vty
  5. ospfd 2604/tcp # OSPFd vty
  6. bgpd 2605/tcp # BGPd vty
  7. ospf6d 2606/tcp # OSPF6d vty
Configure the configuration files for zebra and ospf:
  1. #cp /usr/local/etc/zebra.conf.sample /usr/local/etc/zebra.conf
  2. # Cp/usr/local/etc/ripd. conf. sample/usr/local/etc/ripd. conf
Start zebra
  1. zebra -d
If the following error occurs: Privs_init: cocould not lookup user quaggaThe user and group are not added:
  1. #groupadd quagga
  2. #useradd quagga -g quagga
  3. #chown quagga:quagga /var/run/
  4. #chmod 777 /var/run/
  5. #chown quagga:quagga /usr/local/etc/
  6. #chmod 777 /usr/local/etc/
Basic configuration routing command:
  1. #zebra -d
  2. #telnet localhost 2601
  3.  
  4. Password:
At this time, the password is:
  1. cat /usr/local/etc/zebra.conf
  2. !-*- zebra -*-
  3. !
  4. ! zebra sample configuration file
  5. !
  6. ! $Id: zebra.conf.sample,v 1.12002/12/1320:15:30 paul Exp $
  7. !
  8. hostname Router
  9. password zebra
  10. enable password zebra
  11. !
  12. !Interface's description.
  13. !
  14. !interface lo
  15. ! description test of desc.
  16. !
  17. !interface sit0
  18. ! multicast
  19. !
  20. !Staticdefault route sample.
  21. !
  22. !ip route 0.0.0.0/0203.181.89.241
  23. !
  24. !log file zebra.log
You can use commands to control the configurations of these routes.



Null



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.