[GTER] Redistribuindo BGP no OSPF

Bruno Camargo mustardahc at gmail.com
Thu Oct 27 20:44:09 -02 2011


Cara Lista,

Alguém saberia me responder se posso usar uma community BGP como critério
para definir a métrica de uma rota redistribuida para o OSPF?

Vide config abaixo:

route-map bgp2ospf30 permit 10
 match community 12345:100
 set metric 100
route-map bgp2ospf30 permit 20
 match community 12345:200
 set metric 200
route-map bgp2ospf30 permit 30
 match community 12345:300
 set metric 300
!
router ospf 30
 redistribute bgp 65002 route-map bgp2ospf30 subnets
!
end

Estou tentando no Dynamips, usando routers 3725 com IOS 12.4.25 e nada
feito, vejam os outputs abaixo:

R1-MSO-A#sh ip bgp 10.122.2.0
BGP routing table entry for 10.122.2.0/24, version 26
Paths: (1 available, best #1, table Default-IP-Routing-Table)
  Not advertised to any peer
  65000 65002, (received & used)
    10.1.3.1 from 10.1.3.1 (3.3.3.3)
      Origin incomplete, localpref 100, valid, external, best
      *Community: 12345:100*
      Extended Community: RT:65000:1

R1-MSO-A#sh ip os data

            OSPF Router with ID (1.1.1.1) (Process ID 30)

                Router Link States (Area 0)

Link ID         ADV Router      Age         Seq#       Checksum Link count
1.1.1.1         1.1.1.1         763         0x80000004 0x001272 2
2.2.2.2         2.2.2.2         100         0x80000005 0x00AFCE 2

                Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
1.1.1.1         1.1.1.1         765         0x80000001 0x009BFC 0
2.2.2.2         2.2.2.2         100         0x80000002 0x004D42 0
10.1.3.0        1.1.1.1         765         0x80000001 0x000889 0

Não estou certo se os parâmetros tem q ser comuns ao protocolo de destino da
redistribuição. Se for isso, terei q fazer o match community no INPUT do BGP
e setar um TAG, e na redistribuição eu uso o TAG pra setar a métrica da rota
OSPF.

O que acham?

Abs


-- 
Bruno Camargo



More information about the gter mailing list