首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OSPF:将Quagga迁徙到鸟类

OSPF:将Quagga迁徙到鸟类
EN

Unix & Linux用户
提问于 2017-07-26 16:10:31
回答 1查看 2.6K关注 0票数 3

我需要/想从Quagga迁移到鸟,经过几次Quagga,即在拉伸更新之后,Quagga停止工作.

鸟类也更加灵活和现代。

我有我的OSPF绑定在Quagga的任何配置,并希望以类似的方式设置OSPF服务的鸟。

该怎么办呢?

我的/etc/quagga/ospfd.conf是:

代码语言:javascript
复制
!
! Zebra configuration saved from vty
!   2011/03/22 21:17:11
!
hostname dns
password 8 xxxxxxx
enable password 8 xxxxxxx
log stdout
service password-encryption
!
!
!
interface dummy0
 ip ospf cost 100
!
interface dummy1
 ip ospf cost 500
!
interface dummy2
 ip ospf cost 1000
!
interface dummy3
 ip ospf cost 900
!
interface eth0
 ip ospf authentication message-digest
 ip ospf message-digest-key 5 md5 MySecretPassword
 ip ospf cost 1000
!
interface eth1
 ip ospf cost 1000
!
interface lo
!
router ospf
 ospf router-id 1.1.1.1
 auto-cost reference-bandwidth 10000
 network 1.1.1.0/22 area 0.0.0.0
 network 2.2.2.2/32 area 0.0.0.0
 network 3.3.3.3/32 area 0.0.0.0
 network 4.4.4.4/32 area 0.0.0.0
 network 5.5.5.5/32 area 0.0.0.0
 area 0 filter-list prefix AREA_1_OUT out
!
ip prefix-list AREA_1_OUT seq 5 permit 2.2.2.2/32
ip prefix-list AREA_1_OUT seq 10 permit 3.3.3.3/32
ip prefix-list AREA_1_OUT seq 15 permit 4.4.4.4/32
ip prefix-list AREA_1_OUT seq 20 permit 5.5.5.5/32
ip prefix-list AREA_1_OUT seq 25 deny any
!
line vty
!
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2017-07-26 16:10:31

在解决了这里描述的从Quagga到的OSPF md5加密OSPF航路费用中的问题之后,迁移的其余部分相对容易一些。

要获得同等的服务,步骤如下:

代码语言:javascript
复制
sudo dpkg --purge quagga
sudo apt-get install bird
sudo chkconfig bird6 off
sudo service bird6 stop

然后需要在/etc/bird/bird.conf中创建设置,如下所示:

代码语言:javascript
复制
#
router id 1.1.1.1;

# The Device protocol is not a real routing protocol. It doesn't generate any
# routes and it only serves as a module for getting information about network
# interfaces from the kernel.
protocol device {
    scan time 10;
}

protocol ospf {
        tick 2;
        rfc1583compat yes;

        area 0.0.0.0 {

            networks {
                1.1.1.0/22;
            };
            stubnet 2.2.2.2/32 {
                 cost 100;
            };
            stubnet 3.3.3.3/32 {
                 cost 500;  
            };
            stubnet 4.4.4.4/32 {
                 cost 1000;
            };
            stubnet 5.5.5.5/32 {
                 cost 900;
            };
            interface "eth0" {
                cost 1000;
                password "MySecretPassword" {
                    id 5;
                };
                authentication cryptographic; 
            };

            interface "dummy0" {
                stub;
            };
            interface "dummy1" {
                stub;
            };
            interface "dummy2" {
                stub;
            };
            interface "dummy3" {
                stub;
            };

        };
}

修改配置后:

代码语言:javascript
复制
sudo service bird restart

若要检查本地服务器上的服务:

代码语言:javascript
复制
sudo birdc

然后

代码语言:javascript
复制
show status

代码语言:javascript
复制
show ospf 

代码语言:javascript
复制
show ospf state

代码语言:javascript
复制
show ospf neighbors

我没有找到一份直截了当的文件,也没有找到很多关于Quagga共存和迁徙到鸟类的信息,所以决定在这里记录下来。

我没有同时迁移我的所有Quagga服务器/ OSPF节点,因为这两种配置是相似的,并且彼此之间(显然是通过OSPF协议)。

另见鸟用OSPF进口航路过滤器

票数 3
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/381962

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档