Quagga 配置笔记

Quagga 配置笔记此处是记录配置quagga笔记,关于Quagga详细介绍可参考文档:https://www.quagga.net/docs/quagga.pdf环境版本:Kernel:CentOS7(3.10.0-693)Quagga:0.99.22.4安装Quagga:yuminstallquagga配置Quagga:…

大家好,欢迎来到IT知识分享网。

 此处是记录配置 quagga笔记, 关于Quagga详细介绍可参考文档: https://www.quagga.net/docs/quagga.pdf

Quagga 配置笔记

环境版本:

       Kernel: CentOS 7(3.10.0-693)

       Quagga: 0.99.22.4

 

安装Quagga:

    yum install quagga

 

配置Quagga:

  配置Router01: 

vim /etc/quagga/zebra.conf
hostname Router01
password zebra
debug zebra events
debug zebra packet
debug zebra rib
log file /var/log/quagga/zebra.log

vim /etc/quagga/ripd.conf
hostname ripd
password zebra
debug rip events
debug rip packet
router rip
network 192.168.230.0/24
! network enp0s10
route 192.168.10.0/24
distribute-list private-only in enp0s10
access-list private-only permit 192.168.0.0/16
access-list private-only deny any
log file /var/log/quagga/ripd.log

vim /etc/quagga/ospfd.conf
hostname ospfd
password zebra
debug ospf event
debug ospf packet all
router ospf
ospf router-id 192.168.230.237
network 192.168.230.0/24 area 0.0.0.0
network 192.168.30.0/24 area 0.0.0.2
log file /var/log/quagga/ospfd.log

vim /etc/quagga/bgpd.conf
hostname bgpd
password zebra
log file /var/log/quagga/bgpd.log
log stdout
debug bgp events
debug bgp zebra
router bgp 7675
 bgp router-id 192.168.230.237
 network 192.168.50.0/24
 neighbor 192.168.230.239 remote-as 7676

  

 配置Router02:

vim /etc/quagga/zebra.conf
hostname Router02
password zebra
debug zebra events
debug zebra packet
debug zebra rib
log file /var/log/quagga/zebra.log


vim /etc/quagga/ripd.conf
hostname ripd
password zebra
debug rip events
debug rip packet
router rip
! network 192.168.230.0/24
network enp0s10
route 192.168.20.0/24
distribute-list private-only in enp0s10
access-list private-only permit 192.168.0.0/16
access-list private-only deny any
log file /var/log/quagga/ripd.log


vim /etc/quagga/ospfd.conf
hostname ospfd
password zebra
debug ospf event
debug ospf packet all
router ospf
ospf router-id 192.168.230.239
network 192.168.230.0/24 area 0.0.0.0
network 192.168.40.0/24 area 0.0.0.2
log file /var/log/quagga/ospfd.log


vim /etc/quagga/bgpd.conf
hostname bgpd
password zebra
log file /var/log/quagga/bgpd.log
log stdout
debug bgp events
debug bgp zebra
router bgp 7676
 bgp router-id 192.168.230.239
 network 192.168.60.0/24
 neighbor 192.168.230.237 remote-as 7675

  

启动服务:

      systemctl enable zebra ripd ospfd bgpd 

      systemctl start zebra ripd ospfd bgpd

注:

telnet 连接对对应的服务,具体端口如下:

# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2602 0.0.0.0:* LISTEN 596/ripd
tcp 0 0 127.0.0.1:2604 0.0.0.0:* LISTEN 599/ospfd
tcp 0 0 127.0.0.1:2605 0.0.0.0:* LISTEN 598/bgpd
tcp 0 0 0.0.0.0:179 0.0.0.0:* LISTEN 598/bgpd
tcp 0 0 127.0.0.1:2601 0.0.0.0:* LISTEN 590/zebra

Quagga 配置笔记

 

转载于:https://www.cnblogs.com/gaozhengwei/p/9244464.html

免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/15678.html

(0)

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注微信