linux 下的軟路由zebra 安裝使用

來源:互聯網
上載者:User

標籤:linux 下的軟路由zebra 安裝使用

一、安安裝zebra    

Configuring RIP with Quagga Routing Suite in Fedora

1.downloadquagga quagga-0.99.16.tar.gz

2.解壓縮  #tar zxvfquagga-0.99.16.tar.gz

3.配置  #

 cd quagga-0.99.16  #

./configure--prefix=/usr/local/zebra --enable-vtysh --enable-user=root --enable-group=root--enable-vty-group=root

在運行./configure後會出現 Quagga configuration

 -------------------- 

quaggaversion      : 0.99.16

hostoperating system   : linux-gnu

sourcecode location    : .

compiler              : gcc 

compilerflags        : -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               :   

linkerflags           :  -lcrypt -lrt -lcap  -ltermcap -lreadline-lm

statefile directory     : /var/run 

configfile directory    :/home/kevinjzw/quagga/etc

exampledirectory     : /home/kevinjzw/quagga/etc

user torun as      : kevinjzw

group torun as  : kevinjzw

group forvty sockets : kevinjzw

configfile mask        : 0600

log filemask           : 0600  

4.編譯 

#make 

5.安裝 

#makeinstall 

6. 編輯設定檔 更改將*.conf. .sample檔案產生*.conf檔案

 #cd /home/kevinjzw/quagga/etc

 # ls 

bgpd.conf.sample   isisd.conf.sample  ripd.conf.sample   zebra.conf.sample bgpd.conf.sample2  ospfd.conf.sample  vtysh.conf.sample

 # mv bgpd.conf.sample bgpd.conf

# cpisisd.conf.sample isisd.conf 

其它類似……(mv/cp都可以)

把zebra下的bin和sbin加入$PATH  /root/.bash_profile

 PATH=$PATH:/usr/local/zebra/bin/:/usr/local/zebra/sbin/

7.運行zebra進程及路由進程

    zebra -d

    ospfd -d

    bgpd -d

 

8、使用指令碼刷配置

編輯廣本檔案bjlt

config terminal

router bgp 56009

network122.115.57.3/32 route-map bgp_out1

network218.245.2.76/32 route-map bgp_out1

end

wr

Quit

 

 vtysh  <  bjlt


本文出自 “lihongweibj” 部落格,請務必保留此出處http://lihongweibj.blog.51cto.com/6235038/1660209

linux 下的軟路由zebra 安裝使用

聯繫我們

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