URL: https://www.opennet.ru/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 92810
[ Назад ]

Исходное сообщение
"quagga и анонс сети клиента"

Отправлено morfey , 24-Дек-11 16:20 
Сессия поднялась. Префикс принимается, но не аннонсируется 12.12.0.0/24 :(
В райпе роут создан

При пинге:

# ping 12.12.0.1
PING 12.12.0.1 (12.12.0.1): 56 data bytes
ping: sendto: Invalid argument

AS111111 - моя ас
AS22222 - провайдер
AS33333 - клиент


12.12.0.0/24 - префикс клиента
10.10.0.0/23 - мой префикс
10.10.0.2 - клиент

11.11.11.1 - мир
11.11.11.2 - уаикс

#sh ip bgp
.......
*> 12.12.0.0/24   10.10.0.2           0    100      0 197314 i
....


# sh ip bgp summary
BGP router identifier 10.10.0.1, local AS number 111111
RIB entries 12052, using 1130 KiB of memory
Peers 3, using 13 KiB of memory

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.10.0.2  4 333333      95      98        0    0    0 01:33:21        1
11.11.11.1  4 22222    2625     191        0    0    0 01:33:22     5905
11.11.11.2  4 22222     559      98        0    0    0 01:33:19        1

Total number of neighbors 3


# sh ip bgp neighbors 10.10.0.2 received-routes
BGP table version is 0, local router ID is 10.10.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 12.12.0.0/24   10.10.0.2           0             0 197314 i

Total number of prefixes 1

#bgpd.conf
hostname AS111111
password 123
enable password 123
log file /var/log/quagga/bgpd.log
!
router bgp 111111
bgp router-id 10.10.0.1
bgp log-neighbor-changes
network 10.10.0.0/23
neighbor 11.11.11.1 remote-as 22222
neighbor 11.11.11.1  description WORLD
neighbor 11.11.11.1  next-hop-self
neighbor 11.11.11.1  route-map WORLD-in in
neighbor 11.11.11.1  route-map WORLD-out out
neighbor 11.11.11.1  soft-reconfiguration inbound
neighbor 11.11.11.1  prefix-list default in

neighbor 11.11.11.2 remote-as 22222
neighbor 11.11.11.2 description UAIX
neighbor 11.11.11.2 next-hop-self
neighbor 11.11.11.2 route-map UAIX-in in
neighbor 11.11.11.2 route-map UAIX-out out
neighbor 11.11.11.2 soft-reconfiguration inbound


neighbor 10.10.0.2 remote-as 333333
neighbor 10.10.0.2 description Client
neighbor 10.10.0.2 next-hop-self
neighbor 10.10.0.2 route-map Client-in in
neighbor 10.10.0.2 route-map Client-out out
neighbor 10.10.0.2 soft-reconfiguration inbound

!
ip prefix-list bogons description bogus nets
ip prefix-list bogons seq 20 permit 127.0.0.0/8 le 32
ip prefix-list bogons seq 30 permit 10.0.0.0/8 le 32
ip prefix-list bogons seq 35 permit 172.16.0.0/12 le 32
ip prefix-list bogons seq 40 permit 192.168.0.0/16 le 32
ip prefix-list bogons seq 45 permit 169.254.0.0/16 le 32
ip prefix-list bogons seq 50 permit 224.0.0.0/4 le 32
ip prefix-list bogons seq 55 permit 240.0.0.0/4 le 32
ip prefix-list default description default route
ip prefix-list default seq 10 permit 0.0.0.0/0
ip prefix-list our-CIDR-blocks seq 5 permit 10.10.0.0/23 le 32
ip prefix-list upstream-out seq 10 permit 10.10.0.0/23
ip prefix-list upstream-out seq 30 permit 12.12.0.0/24
!
ip as-path access-list 1 permit _6451[2-9]_
ip as-path access-list 1 permit _645[2-9][0-9]_
ip as-path access-list 1 permit _64[6-9][0-9][0-9]_
ip as-path access-list 1 permit _65[0-9][0-9][0-9]_


!
route-map WORLD-in permit 5
match ip address prefix-list default
!
route-map WORLD-in deny 100
match as-path 1
!
route-map WORLD-in deny 110
match ip address prefix-list bogons
!
route-map WORLD-in deny 115
match ip address prefix-list default
!
route-map WORLD-in deny 120
match ip address prefix-list our-CIDR-blocks
!
route-map WORLD-in permit 200
set local-preference 100
!
route-map UAIX-in deny 100
match as-path 1
!
route-map UAIX-in deny 110
match ip address prefix-list bogons
!
route-map UAIX-in deny 115
match ip address prefix-list default
!
route-map UAIX-in deny 120
match ip address prefix-list our-CIDR-blocks
!

route-map UAIX-in permit 200
set local-preference 600
!
route-map WORLD-out permit 100
match ip address prefix-list upstream-out
!
route-map WORLD-out deny 200
!
route-map UAIX-out permit 100
match ip address prefix-list upstream-out
!
route-map UAIX-out deny 200
!


route-map Client-in permit 5
match ip address prefix-list default
!
route-map Client-in deny 100
match as-path 1
!
route-map Client-in deny 110
match ip address prefix-list bogons
!
route-map Client-in deny 115
match ip address prefix-list default
!
route-map Client-in deny 120
match ip address prefix-list our-CIDR-blocks

!
route-map Client-in permit 200
set local-preference 100
!
route-map Client-out permit 100
match ip address prefix-list upstream-out
!
route-map Client-out deny 200
!
line vty
!


Содержание

Сообщения в этом обсуждении
"quagga и анонс сети клиента"
Отправлено morfey , 25-Дек-11 17:50 
up

"quagga и анонс сети клиента"
Отправлено PavelR , 25-Дек-11 19:52 
> up

sh ip bgp neighbors 11.11.11.2 advertised-routes
sh ip bgp neighbors 11.11.11.1 advertised-routes


?


"quagga и анонс сети клиента"
Отправлено morfey , 25-Дек-11 20:32 
>> up
> sh ip bgp neighbors 11.11.11.2 advertised-routes
> sh ip bgp neighbors 11.11.11.1 advertised-routes
> ?

# sh ip bgp neighbors 11.11.11.1 advertised-routes
BGP table version is 0, local router ID is 10.10.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 10.10.0.0/23  11.11.11.3           0         32768 i
*> 12.12.0.0/24   11.11.11.3                100      0 197314 i

Total number of prefixes 2

# sh ip bgp neighbors 11.11.11.2 advertised-routes
BGP table version is 0, local router ID is 10.10.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 10.10.0.0/23     11.11.11.4           0         32768 i
*> 12.12.0.0/24     11.11.11.4                100      0 197314 i

Total number of prefixes 2


"quagga и анонс сети клиента"
Отправлено PavelR , 25-Дек-11 21:18 

"C нашей стороны пуля вылетела. Проблемы на вашей стороне".


"quagga и анонс сети клиента"
Отправлено morfey , 25-Дек-11 21:31 
> "C нашей стороны пуля вылетела. Проблемы на вашей стороне".

На стороне 11.11.11.1 , 11.11.11.2 ?