Quagga安裝配置

來源:互聯網
上載者:User

quagga官網:http://www.quagga.net/

 

測試環境:Ubuntu9.10

測試版本:quagga-0.99.16.tar.gz

1、下載源碼:http://www.quagga.net/download/

2、解壓:tar xzvf quagga-0.99.16.tar.gz

3、配置: ./configure --prefix=/usr

                --sysconfdir=/etc/quagga                --localstatedir=/var/run/quagga                --enable-vtysh                 --enable-user='test'                 --enable-group='test'                  --enable-vty-group='test'

配置輸出:

Quagga configuration
--------------------
quagga version          : 0.99.16
host operating system  : linux-gnu
source code location    : .
compiler                : gcc
compiler flags          : -Os -fno-omit-frame-pointer -g -std=gnu99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual
make                    : make
includes                : 
linker flags            :  -lcrypt   -lrt   -ltermcap -lreadline -lm
state file directory    : /var/run
config file directory   : /usr/local/etc
example directory       : /usr/local/etc
user to run as        : root
group to run as        : root
group for vty sockets    :
config file mask        : 0600
log file mask           : 0600

The above user and group must have read/write access to the state file
directory and to the config files in the config file directory.
4、編譯:make

5、安裝:make install

註:上面的安裝過程可省略為:sudo apt-get install quagga

6、添加test組和使用者

groupadd test;useradd test -g test 7、改變許可權 //最好寫入啟動指令碼

chown test:test
/var/run/quagga

chmod 777 /var/run/quagga    chown test:test /etc/quagga //需要將配置寫入作業系統chmod 777 /etc/quagga/*                    8、增加log許可權//最好寫入啟動指令碼

Mkdir 
/var/log/quagga/

Vi /var/log/quagga/zebra.logChmod 777 /var/log/quagga/zebra.log

9、修改 /etc/services  //just for telnet

               
zebrasrv    2600/tcp     # zebra service

                zebra         2601/tcp    # zebra vty                ripd           2602/tcp    # RIPd vty                ripngd       2603/tcp    # RIPngd vty                ospfd        2604/tcp    # OSPFd vty                bgpd         2605/tcp    # BGPd vty                ospf6d      2606/tcp    # OSPF6d vty

                ospfapi    
2607/tcp    # ospfapi

                isid           2608/tcp    # ISISd vty10、 編輯設定檔

cp
/etc/quagga/zebra.conf.example  
/etc/quagga/zebra.conf

! -*- zebra -*-!

! zebra sample
configuration file

!hostname Routerpassword zebra

enable password
zebra

log file  /var/log/quagga/zebra.log//注意zebra.conf啟用log,這樣便於尋找錯誤11、啟動zebra –d如果啟動不成功,查看/var/log/quagga/zebra.log一般由於使用權限設定會出現以下錯誤:

2008/10/22 16:59:22 ZEBRA: Could not lock
pid_file /var/run/quagga/zebra.pid, exiting

12、登陸

telnet localhost zebra(0r 2601)[root@localhost quagga-0.99.10]# telnet localhost 2601

Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Hello, this is Quagga (version 0.99.13).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

User Access Verification

 Password: Router> enablePassword: Router# help

Quagga VTY provides advanced help feature.  When you need help,
anytime at the command line please press '?'.

If nothing matches, the help list will be empty and you must backup
 until entering a '?' shows the available options.
Two styles of help are provided:
1. Full help is available when you are ready to enter a
command argument (e.g. 'show ?') and describes each possible
argument.
2. Partial help is provided when an abbreviated argument is entered
   and you want to know what arguments match the input
   (e.g. 'show me?'.)

Router#

13、使用

具體使用參考http://sslab.cs.nthu.edu.tw/~welentsai/rip_quagga.htm本文轉自:http://blog.chinaunix.net/u2/79955/showart_1332595.html並修改了其中部分內容。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.