歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Zebra安裝及配置

Zebra安裝及配置

日期:2017/3/1 15:53:33   编辑:關於Linux
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 install make 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 這是基本的安裝、配置和啟動說明。
Copyright © Linux教程網 All Rights Reserved