Jump to content
Калькуляторы

juniper bgp local interface advertise

Есть вопрос по bgp в жунипере, вобщем есть вот так:

 


show bgp summary
Groups: 1 Peers: 1 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0              6053       6049          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
100.64.5.1            42916      29045       2633       0       0 1d 15:00:29 6049/6053/6053/0     0/0/0/0

root@J>
 

show route advertising-protocol bgp 100.64.5.1

inet.0: 6067 destinations, 6071 routes (6067 active, 0 holddown, 0 hidden)
  Prefix          Nexthop           MED     Lclpref    AS path
* 10.32.18.176/28         Self                 20      100        I
* 10.32.75.176/30         Self                 20      100        I
* 100.64.5.1/32           Self                         100        I
* 100.64.5.5/32           Self                         100        I
* 100.64.5.8/30           Self                         100        I
* 100.64.66.0/24          Self                 20      100        I

root@J>
root@J> show route 100.64.5.2 extensive                                

inet.0: 6067 destinations, 6071 routes (6067 active, 0 holddown, 0 hidden)
100.64.5.2/32 (1 entry, 1 announced)
        *Local  Preference: 0
                Next hop type: Local
                Address: 0x8d4af64
                Next-hop reference count: 9
                Next hop:
                Interface: st0.0
                State: <Secondary Active NoReadvrt Int>
                Age: 1d 15:02:25
                Task: IF
                Announcement bits (1): 5-Resolve tree 1
                AS path: I
                Primary Routing Table AS42916-VPN.inet.0

AS42916-VPN.inet.0: 3 destinations, 5 routes (3 active, 0 holddown, 0 hidden)

100.64.5.2/32 (2 entries, 1 announced)
        *Local  Preference: 0
                Next hop type: Local
                Address: 0x8d4af64
                Next-hop reference count: 9
                Next hop:
                Interface: st0.0
                State: <Active NoReadvrt Int>
                Age: 1d 15:02:25
                Task: IF
                Announcement bits (1): 1-rt-export
                AS path: I
         OSPF   Preference: 10
                Next hop type: Router
                Address: 0x8fae400
                Next-hop reference count: 1
                Next hop: via st0.0, selected
                State: <Int>
                Inactive reason: Route Preference
                Age: 1d 15:02:00     Metric: 0
                Area: 0.0.0.0
                Task: AS42916-VPN-OSPF
                AS path: I

root@J>

 

Тоесть проще говоря он почемуто не анонсирует 100.64.5.2 со своего локального интерфейса, и только с этого, с которого собсно bgp поднято, с других directly-connected маршруты есть. интерфейс выглядит вот так:

 


root@J# show interfaces st0   
unit 0 {
    description IPSEC-VPN_to_AS42916;
    family inet {
        address 100.64.5.2/32 {
            destination 100.64.5.1;
        }
    }
}

 

Единственные его отличия остальных в том что st0.0 находица в другом route instance и что с него поднимается bgp сессия.

 

Это так и задумано или всетаки есть способ заставить его проанонсировать 100.64.5.2/32 с st0.0?

Edited by GHhost

Share this post


Link to post
Share on other sites

inet.0: 6067 destinations, 6071 routes (6067 active, 0 holddown, 0 hidden)
100.64.5.2/32 (1 entry, 1 announced)
        *Local  Preference: 0
                Next hop type: Local
                Address: 0x8d4af64
                Next-hop reference count: 9
                Next hop:
                Interface: st0.0
                State: <Secondary Active NoReadvrt Int>

 

Пишут https://forums.juniper.net/t5/Routing/OSPF-doesn-t-advertise-local-tunnel-routes/td-p/262749 что "set routing-options interface-routes family inet export point-to-point" может помочь.

Share this post


Link to post
Share on other sites

В 17.02.2019 в 03:20, v_r сказал:

Пишут https://forums.juniper.net/t5/Routing/OSPF-doesn-t-advertise-local-tunnel-routes/td-p/262749 что "set routing-options interface-routes family inet export point-to-point" может помочь.

Спасибо помогло, я главное нагуглил это же еще до того как тут спросить, но не подумав влепил в общей конфигурации и это не возымело никакого эффекта, но ваш ответ заставил задумаца и попробовать в route-instance в котором интерфейс и все поехало.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.