日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

BGP 邊界網(wǎng)關(guān)協(xié)議心得


關(guān)于BGP 的一些總結(jié)
?BGP是一種路徑向量路由選擇協(xié)議 。路由更新帶有到達(dá)一個遠(yuǎn)程網(wǎng)絡(luò)所需通過網(wǎng)絡(luò)的全部列表
?peer根據(jù)本地AS號的關(guān)系進(jìn)行定義 。在相同AS內(nèi)的對等體形成了一個內(nèi)部BGP關(guān)系,而在不同AS內(nèi)的對等體則使用EBGP.
?IBGP對等體彼此交換可到達(dá)信息,并把BGP信息重新分發(fā)給運行在相同AS內(nèi)的IGP 。
?IBGP對等體必須和IGP保持同步以確保IGP 路由通過本地AS傳播 。
?MED是一種沒有單位的量度,可以用Router map 進(jìn)行修改
?指定本地優(yōu)先級屬性來控制路徑選擇進(jìn)程 。本地首選采用網(wǎng)絡(luò)前綴在AS中廣播,也就是說只在AS中有意義 。
?weight同樣只對本地路由器有意義 。
?最佳路徑的選擇參照上一個帖子
?BGP使用UDP端口179和TCP端口179 形成對等體或鄰居之間的可靠傳輸
關(guān)于聚合
R2#sh ip bgp
BGP table version is 5, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 192.1.24.0 192.1.1.1 0 0 100 i
*> 192.1.25.0 192.1.1.1 0 0 100 i
*> 192.1.26.0 194.1.1.1 0 0 300 i
*> 192.1.27.0 194.1.1.1 0 0 300 i
R2(config-router)#aggregate-address 192.1.24.0 255.255.252.0 ?
advertise-map Set condition to advertise attribute
as-set Generate AS set path information
attribute-map Set attributes of aggregate
route-map Set parameters of aggregate
summary-only Filter more specific routes from updates
suppress-map Conditionally filter more specific routes from updates

R2(config-router)#aggregate-address 192.1.24.0 255.255.252.0 as
R2(config-router)#aggregate-address 192.1.24.0 255.255.252.0 as-set
R2(config-router)#end
R2#
01:00:17: %SYS-5-CONFIG_I: Configured from console by console
R2#
R6#2
[Resuming connection 2 to r3 ... ]
R3>
R3>
R3>en
PassWord:
R3#sh ip bgp
BGP table version is 6, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i192.1.24.0 193.1.1.1 0 100 0 100 i
*>i192.1.24.0/22 193.1.1.1 100 0 {100,300} i
*>i192.1.25.0 193.1.1.1 0 100 0 100 i
*>i192.1.26.0 193.1.1.1 0 100 0 300 i
*>i192.1.27.0 193.1.1.1 0 100 0 300 i
==========================================================================
router bgp 200
no synchronization
bgp log-neighbor-changes
aggregate-address 192.1.24.0 255.255.252.0 as-set summary-only
neighbor 192.1.1.1 remote-as 100
neighbor 193.1.1.2 remote-as 200
neighbor 193.1.1.2 next-hop-self
neighbor 194.1.1.1 remote-as 300
!
ip classless
no ip http server
!
!
line con 0
transport input none
line aux 0
transport input all
line vty 0 4
password cisco
login
!
end
R2#
R6#2
[Resuming connection 2 to r3 ... ]
R3#clear ip bgp *
R3#
04:49:01: %BGP-5-ADJCHANGE: neighbor 193.1.1.1 Down User reset
R3#
04:49:29: %BGP-5-ADJCHANGE: neighbor 193.1.1.1 Up sh
R3#show ip bgp
BGP table version is 2, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i192.1.24.0/22 193.1.1.1 100 0 {100,300} i
BGP 正則表達(dá)式
_300_ 匹配所有經(jīng)過AS300的路由
_300$ 匹配所有來自AS300中的路由
^300_ 匹配接受的路由

推薦閱讀