Xgu.ru теперь в Контакте  — приходите и подключайтесь.
Пока мы работаем над следующими видео, вы можете подключиться в Контакте. Познакомимся и обсудим новые страницы и ролики.

Vk-big.pngYoutube-big.jpeg

BGP Dynamic Update Peer-Groups

Материал из Xgu.ru

Перейти к: навигация, поиск

< BGP

[править] Пример работы

На примере конфигурации:

router bgp 3333
 bgp log-neighbor-changes
 network 123.1.1.0 mask 255.255.255.0
 neighbor 2.2.2.2 remote-as 3333
 neighbor 2.2.2.2 update-source Loopback0
 neighbor 2.2.2.2 next-hop-self
 neighbor 3.3.3.3 remote-as 3333
 neighbor 3.3.3.3 update-source Loopback0
 neighbor 3.3.3.3 next-hop-self
 neighbor 4.4.4.4 remote-as 3333
 neighbor 4.4.4.4 update-source Loopback0
 neighbor 4.4.4.4 next-hop-self
 neighbor 70.1.1.100 remote-as 900
 neighbor 70.1.1.100 prefix-list OUR-NET out
 neighbor 70.1.1.100 route-map AS900-IN in
!
route-map AS900-IN permit 10
 set local-preference 150
!
ip prefix-list OUR-NET seq 5 permit 123.1.1.0/24

[править] Просмотр информации

R1#sh ip bgp update-group 
BGP version 4 update-group 3, internal, Address Family: IPv4 Unicast
  BGP Update version : 93/0, messages 0
  NEXT_HOP is always this router for eBGP paths
  Topology: global, highest version: 93, tail marker: 93
  Format state: Current working (OK, last not in list)
                Refresh blocked (not in list, last not in list)
  Update messages formatted 52, replicated 132, current 0, refresh 0, limit 1000
  Number of NLRIs in the update sent: max 7, min 0
  Minimum time between advertisement runs is 0 seconds
  Has 3 members:
   2.2.2.2          3.3.3.3          4.4.4.4         

BGP version 4 update-group 4, external, Address Family: IPv4 Unicast
  BGP Update version : 93/0, messages 0
  Outgoing update prefix filter list is OUR-NET
  Topology: global, highest version: 93, tail marker: 93
  Format state: Current working (OK, last minimum advertisement interval)
                Refresh blocked (not in list, last not in list)
  Update messages formatted 8, replicated 8, current 0, refresh 0, limit 1000
  Number of NLRIs in the update sent: max 2, min 0
  Minimum time between advertisement runs is 30 seconds
  Has 1 member:
   70.1.1.100      
R1#sh ip bgp update-group summary 
Summary for Update-group 3, Address Family IPv4 Unicast
BGP router identifier 70.1.1.1, local AS number 3333
BGP table version is 93, main routing table version 93
11 network entries using 1584 bytes of memory
12 path entries using 720 bytes of memory
16/8 BGP path/bestpath attribute entries using 2176 bytes of memory
7 BGP AS-PATH entries using 232 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 4712 total bytes of memory
BGP activity 11/0 prefixes, 62/50 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
2.2.2.2         4         3333     408     405       93    0    0 05:21:40        1
3.3.3.3         4         3333     354     398       93    0    0 05:21:35        0
4.4.4.4         4         3333     356     398       93    0    0 05:21:36        0
Summary for Update-group 4, Address Family IPv4 Unicast
BGP router identifier 70.1.1.1, local AS number 3333
BGP table version is 93, main routing table version 93
Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
11 network entries using 1584 bytes of memory
12 path entries using 720 bytes of memory
16/8 BGP path/bestpath attribute entries using 2176 bytes of memory
7 BGP AS-PATH entries using 232 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 4712 total bytes of memory
BGP activity 11/0 prefixes, 62/50 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
70.1.1.100      4          900     421     391       93    0    0 05:39:59       10
R1#sh ip bgp replication 

                                                                    Current    Next
Index  Members          Leader       MsgFmt    MsgRepl     Csize    Version Version
    3        3         2.2.2.2           52        132    0/1000         93/0         
    4        1      70.1.1.100            8          8    0/1000         93/0