quagga環境搭建,quagga搭建

來源:互聯網
上載者:User

quagga環境搭建,quagga搭建
 

  1. #./configure --enable-vtysh --enable-user=root --enable-group=root --enable-vty-group=root
  1. #make
  2. #make install
添加相關服務到/etc/services下面:
  1. vim /etc/services
添加以下內容:
  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
配置zebra和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
起動zebra 
  1. zebra -d
如果出現以下錯誤privs_init: could not lookup user quagga那麼就是沒有添加使用者和組:
  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/
基本配置路由命令:
  1. #zebra -d
  2. #telnet localhost 2601
  3.  
  4. Password:
這時候的密碼是在:
  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
後面就可以通過命令來控制這些路由的配置了。                     



null



聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.