>>>ÎÅÐÏÌÕÞÁÅÔÓÑ... õÂÉÒÁÀ distribute-list ÏÎ ÐÉÒÕ ÌØÅÔ ×ÓÀ ÔÁÂÌÉÃÕ, ÓÔÁ×ÌÀ ÎÉÏÄÎÏÇÏ ÒÏÕÔÁ...
>>
>>Á ×ÏÔ ÜÔÏ ÔÏÞÎÏ ÔÁË?
>>ip prefix-list eBGP_OUT seq 10 permit 89.xxx.xxx.0/22
>>ip prefix-list eBGP_OUT seq 20 deny any
>
>ÉÍÅÎÎÏ ÔÁË ×ÓÅ ÐÅÒÅÐÒÏ×ÅÒÑÌ ÐÏ 10 ÒÁÚ # show ip bgp neighbors
BGP neighbor is 84.aaa.aaa.101, remote AS xxx, local AS zzz, external link
BGP version 4, remote router ID 84.bbb.bbb.bbb
BGP state = Established, up for 00:01:44
Last read 00:00:01, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received(old & new)
Address family IPv4 Unicast: advertised and received
Graceful Restart Capabilty: received
Remote Restart timer is 120 seconds
Address families by peer:
IPv4 Unicast(preserved)
Graceful restart informations:
End-of-RIB send: IPv4 Unicast
End-of-RIB received:
Message statistics:
Inq depth is 0
Outq depth is 0
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 1 41074
Keepalives: 5 0
Route Refresh: 0 0
Capability: 0 0
Total: 7 41075
Minimum time between advertisement runs is 30 seconds
For address family: IPv4 Unicast
Community attribute sent to this neighbor(both)
Outbound path policy configured
Outgoing update network filter list is eBGP_OUT
234516 accepted prefixes
Connections established 1; dropped 0
Last reset never
Local host: 84.aaa.aaa.aaa, Local port: 64185
Foreign host: 84.aaa.aaa.aaa, Foreign port: 179
Nexthop: 84.aaa.aaa.aaa
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
Read thread: on Write thread: off
BGP neighbor is 195.ccc.ccc.ccc, remote AS yyy, local AS zzz, external link
BGP version 4, remote router ID 212.44.131.252
BGP state = Established, up for 04:46:10
Last read 00:00:10, hold time is 180, keepalive interval is 60 seconds
Neighbor capabilities:
Route refresh: advertised and received(old & new)
Address family IPv4 Unicast: advertised and received
Message statistics:
Inq depth is 0
Outq depth is 0
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 11066 57225
Keepalives: 288 288
Route Refresh: 0 0
Capability: 0 0
Total: 11355 57514
Minimum time between advertisement runs is 30 seconds
For address family: IPv4 Unicast
Community attribute sent to this neighbor(both)
Outbound path policy configured
Outgoing update network filter list is eBGP_OUT
233521 accepted prefixes
Connections established 1; dropped 0
Last reset never
Local host: 195.ccc.ccc.ccc, Local port: 55903
Foreign host: 195.ccc.ccc.ccc, Foreign port: 179
Nexthop: 195.ccc.ccc.ccc
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
Read thread: on Write thread: off
# show ip bgp neighbors 84.aaa.aaa.aaa advertised-routes
# show ip bgp neighbors 195.ccc.ccc.ccc advertised-routes
BGP table version is 0, local router ID is 89.xxx.xxx.xxx
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
*> 89.xxx.xxx.0/22 195.ccc.ccc.ccc 0 32768 i
Total number of prefixes 1
ËÏÎÆÉÇ:
# sh ru
Building configuration...
Current configuration:
!
end
hostname ggg
log file /var/log/zebra.log
log stdout
!
interface bge0
ipv6 nd suppress-ra
!
interface fxp0
ipv6 nd suppress-ra
!
interface fxp1
ipv6 nd suppress-ra
!
interface lo0
!
interface plip0
ipv6 nd suppress-ra
!
router bgp zzz
bgp router-id 89.xxx.xxx.xxx
bgp log-neighbor-changes
network 89.xxx.xxx.0/22
neighbor 84.aaa.aaa.aaa remote-as xxx
neighbor 84.aaa.aaa.aaa distribute-list eBGP_OUT out
neighbor 195.ccc.ccc.ccc remote-as yyy
neighbor 195.ccc.ccc.ccc distribute-list eBGP_OUT out
!
ip prefix-list eBGP_OUT seq 10 permit 89.xxx.xxx.0/22
ip prefix-list eBGP_OUT seq 20 deny any
!
route-map Prov-G permit 50
match ip address prefix-list eBGP_OUT
!
route-map Prov-P permit 50
match ip address prefix-list eBGP_OUT
!
ip forwarding
!
line vty
!