i believe 当我在你家门口下雨了你看了也会难过 |
昨天一面听着这首曾经的歌,一面说了那些可能伤害人的话……有些时候现实就是这样的无奈……
I’m sorry, lemon, you are past tense.
i believe 当我在你家门口下雨了你看了也会难过 |
昨天一面听着这首曾经的歌,一面说了那些可能伤害人的话……有些时候现实就是这样的无奈……
I’m sorry, lemon, you are past tense.
今 天晚上又看了一遍The Transporter,上次看大概是1年前了……很久都没体验到晚上看电影的感觉了,很轻松,很高兴,但是为什么看这个片子会让我想起一些几乎忘记了的 事情呢。既然已经是几乎忘记了的,就忘记了吧……真希望每天都能像今天这样轻松快乐,无忧无虑……
实验21 配置BGP联邦(CCIE实验51)
时间:2006年3月20日
时间花费 总计约120分钟
实验设备:2501 5台
实验拓扑:
涉及到的概念:BGP联邦即BGP Confederation。一般用在一个AS的内部,在一个大的AS内部可以拆分成数个小的AS,这样只要保证小的AS之间可以通过EBGP方式进行互联即可,不必每台路由器都互相建立IBGP连接。
BGP联邦和RR的对比:BGP联邦建立之后在联邦内跨越内部的AS的时候AS_PATH仍然会发生变化,可以针对AS_PATH的变化做出更精确的控制。
配置如下:
routerE:
router bgp 100
no synchronization
bgp log-neighbor-changes
network 1.1.1.1 mask 255.255.255.255
neighbor 152.1.1.9 remote-as 200
neighbor 152.1.2.5 remote-as 200
no auto-summary
routerB:
router ospf 1
log-adjacency-changes
redistribute connected subnets
network 152.1.1.6 0.0.0.0 area 0
!
router bgp 65050
no synchronization
bgp log-neighbor-changes
bgp confederation identifier 200
bgp confederation peers 65051
neighbor 152.1.1.5 remote-as 65050
neighbor 152.1.1.5 next-hop-self
neighbor 152.1.1.10 remote-as 100
neighbor 152.1.1.65 remote-as 65051
no auto-summary
!
routerA:
router ospf 1
log-adjacency-changes
network 152.1.1.0 0.0.0.255 area 0
!
router bgp 65050
no synchronization
bgp log-neighbor-changes
network 152.1.1.1 mask 255.255.255.255
neighbor 152.1.1.6 remote-as 65050
no auto-summary
!
routerC:
router bgp 65051
no synchronization
bgp log-neighbor-changes
bgp confederation identifier 200
bgp confederation peers 65050
network 152.1.2.1 mask 255.255.255.255
neighbor 152.1.1.66 remote-as 65050
neighbor 152.1.1.66 next-hop-self
neighbor 152.1.2.6 remote-as 100
neighbor 152.1.2.129 remote-as 65051
no auto-summary
!
routerD:
router ospf 1
log-adjacency-changes
network 152.1.2.0 0.0.0.255 area 0
!
router bgp 65051
no synchronization
bgp log-neighbor-changes
network 152.1.2.2 mask 255.255.255.255
neighbor 152.1.2.130 remote-as 65051
no auto-summary
!
配置完毕后,在router E上show ip bgp可以看到:
E#sh ip bgp
BGP table version is 7, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 152.1.1.1/32 152.1.1.9 0 200 i
* 152.1.2.1/32 152.1.1.9 0 200 i
*> 152.1.2.5 0 0 200 i
* 152.1.2.2/32 152.1.1.9 0 200 i
*> 152.1.2.5 0 200 i
由此可知,联邦对外的表现是一个整体,AS100看到的都是AS200,而不是内部的AS65050或65051。但是在联邦的内部执行show ip bgp仍然会看到联邦内的AS的信息:
b#sh ip bgp
BGP table version is 12, local router ID is 152.1.1.2
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete
Network Next Hop Metric LocPrf Weight Path
* 1.1.1.1/32 152.1.1.65 0 100 0 (65051) 100 i
*> 152.1.1.10 0 0 100 i
r>i152.1.1.1/32 152.1.1.5 0 100 0 i
*> 152.1.2.1/32 152.1.1.65 0 100 0 (65051) i
*> 152.1.2.2/32 152.1.1.65 0 100 0 (65051) i
几周前就想给他讲讲BGP的概念,今天终于给实施了……在基本上没有用任何专有名词的情况下给一个非计算机相关专业的管理领导讲明白一种看似深奥的技术其实是一种对自己能力的极大挑战,不过结果看起来不错,至少处长明白一些了。
今天晚上由于和几个兄弟吃饭花费了过多的时间,导致没能按照计划去游泳。似乎已经习惯每周去游泳的生活了,在水里漂着要比在陆地上傻傻的生活舒服很多很多……
后仰向窗外的世界望去,天很蓝,淡淡的云彩在天空上划过。
空气清新,阳光明媚, 隐约可以听到下课后学生们三三两两走过校园的脚步声。
今天又给兄弟们将完了一遍CCNA,当说完课程最后的“不要用网络做坏事”之后,一瞬间忽然觉得很累很累……不知道自己是否还会有机会再去讲这样的课程。
故兵以诈立,以利动,以分合为变者也。故其疾如风, 其徐如林,侵掠如火,不动如山,难知如阴,动如雷震。掠乡分众,廓地分利,悬权而动。先知迂直之计者胜,此军争之法也。 –孙子兵法·军争篇 |
晚上睡觉前和妹妹聊了一会儿最近发生的一些事情,我想我应该得到了很好的建议。Thank you, riverpoint.