Two Routers in common AS with OSPF

Από AWMN-WiKi

(Ανακατεύθυνση από Two Routers in common AS)
Μετάβαση σε:πλοήγηση, αναζήτηση

Στο παρακάτω παράδειγμα έχουμε 2 router που συνδέονται μέσο μιας lan. Οποιοσδήποτε μπορεί να έχει πολλαπλούς peers αλλά για το παράδειγμα κρατάμε μόνο τους peer που αφορούν τα lan interface

Πίνακας περιεχομένων

Router One

BGPd.conf

hostname tirouriroum

log file /var/log/quagga/bgpd.log
log monitor
log stdout
log syslog

password xxxxx
enable password xxxxxx

router bgp 3665
 bgp router-id 10.21.128.14
 network 10.21.128.0/24

!Link Router
 neighbor 10.21.128.1 remote-as 3665
 neighbor 10.21.128.1 timers 10 30
 neighbor 10.21.128.1 capability dynamic
 neighbor 10.21.128.1 capability orf prefix-list both
 neighbor 10.21.128.1 soft-reconfiguration inbound
 neighbor 10.21.128.1 prefix-list awmn-bgp out
 neighbor 10.21.128.1 filter-list maxaslength out

ip prefix-list awmn-bgp seq 5 permit 10.0.0.0/8 ge 9 le 24
ip prefix-list awmn-bgp seq 10 permit 10.0.0.0/15 le 32
ip prefix-list awmn-bgp seq 15 deny any
!
ip as-path access-list maxaslength deny ( [0-9]+){250}$
ip as-path access-list maxaslength permit .*
!
line vty
!
end


ospfd.conf

 !
! Zebra configuration saved from vty
!   2008/12/07 17:41:11
!
hostname koukouroukou
password xxxx
enable password xxxx
log file /var/log/quagga/ospfd.log
log syslog
!
!
!
interface eth2
!
!interface lo
!
router ospf
 ospf router-id 10.21.128.14
 network 10.21.128.0/25 area 0.0.0.0
 redistribute kernel
 redistribute connected
 default-metric 1
!
line vty
!

Router Two

BGPd.conf

 hostname tirouriroum

log file /var/log/quagga/bgpd.log
log monitor
log stdout
log syslog

password xxxxx
enable password xxxxxx

router bgp 3665
 bgp router-id 10.21.128.1
 network 10.21.128.0/24

!Link Router
 neighbor 10.21.128.14 remote-as 3665
 neighbor 10.21.128.14 timers 10 30
 neighbor 10.21.128.14 capability dynamic
 neighbor 10.21.128.14 capability orf prefix-list both
 neighbor 10.21.128.14 soft-reconfiguration inbound
 neighbor 10.21.128.14 prefix-list awmn-bgp out
 neighbor 10.21.128.14 filter-list maxaslength out

ip prefix-list awmn-bgp seq 5 permit 10.0.0.0/8 ge 9 le 24
ip prefix-list awmn-bgp seq 10 permit 10.0.0.0/15 le 32
ip prefix-list awmn-bgp seq 15 deny any
!
ip as-path access-list maxaslength deny ( [0-9]+){250}$
ip as-path access-list maxaslength permit .*
!
line vty
!
end


ospfd.conf

 !
! Zebra configuration saved from vty
!   2008/12/07 17:41:11
!
hostname koukouroukou
password xxxx
enable password xxxxxx
log file /var/log/quagga/ospfd.log
log syslog
!
!
!
interface eth2
!
!interface lo
!
router ospf
 ospf router-id 10.21.128.1
 network 10.21.128.0/25 area 0.0.0.0
 redistribute kernel
 redistribute connected
 default-metric 1
!
line vty
!


Zebra.conf

default config