Zebra安裝及配置 目前最新的版本是0.94版,這是在Quagga發布第一個修正版後最新的Zebra版本。我的編譯及運行環境是Redhat Linux 7.3,核心是2.4.20-8。可以從Zebra的首頁上下載最新的版本(www.zebra.org)。安裝過程如下:解壓: # tar zxvf zebra-0.94.tar.gz進入解壓目錄開始編譯、安裝: # ./configure # make # make installmake install成功以後可執行檔存放在/usr/local/sbin/路徑下,樣本設定檔存放在/usr/local/etc路徑下: # ls /usr/local/sbin/ bgpd ospf6d ospfd ripd ripngd zebra # ll /usr/local/etc -rw------- 1 root root 572 Jun 14 12:07 bgpd.conf.sample -rw------- 1 root root 2801 Jun 14 12:07 bgpd.conf.sample2 -rw------- 1 root root 1170 Jun 14 12:07 ospf6d.conf.sample -rw------- 1 root root 180 Jun 14 12:07 ospfd.conf.sample -rw------- 1 root root 412 Jun 14 12:07 ripd.conf.sample -rw------- 1 root root 396 Jun 14 12:07 ripngd.conf.sample -rw------- 1 root root 375 Jun 14 12:06 zebra.conf.sample直接使用zebra提供的設定檔 # mkdir sample # mv *.sample ./sample/ # cp sample/zebra.conf.sample ./zebra.conf # cp sample/ripd.conf.sample ./ripd.conf # cp sample/ripngd.conf.sample ./ripngd.conf # cp sample/ospfd.conf.sample ./ospfd.conf # cp sample/ospf6d.conf.sample ./ospf6d.conf # cp sample/bgpd.conf.sample ./bgpd.conf #啟動zebra程式,以守護進程方式運行 # zebra -d使用密碼zebra登入zebra,進入使用者模式,使用enable命令和密碼zebra # telnet localhost 2601 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Hello, this is zebra (version 0.94). Copyright 1996-2002 Kunihiro Ishiguro. User Access Verification Password: Router> Router> enable Password: Router#在特權模式下,通過命令'?'來查看zebra提供的所有命令 Router# configure Configuration from vty interface copy Copy configuration debug Debugging functions (see also 'undebug') disable Turn off privileged mode command end End current mode and change to enable mode. exit Exit current mode and down to previous mode help Description of the interactive help system list Print command list no Negate a command or set its defaults quit Exit current mode and down to previous mode show Show running system information terminal Set terminal line parameters who Display who is on vty write Write running configuration to memory, network, or terminal Router#如何進入/退出全域模式? Router# config terminal Router(config)# Router(config)# exit Router#說明: 1 淺綠色字型文字為使用者輸入的命令或者參數,黑色字型文字為系統的反饋資訊和提示符。 2 這是基本的安裝、配置和啟動說明。