克龙面 2007-11-16 09:21
大猫JNCIP-M Lab考试问答之六[EBGP Config & Operation]
[size=3][color=blue][font=宋体]问题一:建立[/font][/color][color=blue][size=10.5pt][font=Times New Roman]EBGP session[/font][/size][/color][color=blue][font=宋体]之前的注意事项:[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[size=3][font=宋体]验证本[/font][size=10.5pt][font=Times New Roman]AS[/font][/size][font=宋体]全部都有[/font][size=10.5pt][font=Times New Roman]full-mesh ibgp connection[/font][/size][font=宋体],并且能收到[/font][size=10.5pt][font=Times New Roman]AS[/font][/size][font=宋体]内部其他[/font][size=10.5pt][font=Times New Roman]BGP ROUTER[/font][/size][font=宋体]的[/font][size=10.5pt][font=Times New Roman]192.168.x.0/24[/font][/size][font=宋体]的[/font][size=10.5pt][font=Times New Roman]bgp[/font][/size][font=宋体]路由,确认并验证所有[/font][size=10.5pt][font=Times New Roman]bgp[/font][/size][font=宋体]外网的路由器端口可以[/font][size=10.5pt][font=Times New Roman]ping[/font][/size][font=宋体]通[/font][size=10.5pt][/size][/size]
[size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size]
[size=3][color=blue][font=宋体]问题二:要求做到一个[/font][/color][color=blue][size=10.5pt][font=Times New Roman]router[/font][/size][/color][color=blue][font=宋体]的两个[/font][/color][color=blue][size=10.5pt][font=Times New Roman]ebgp peer[/font][/size][/color][color=blue][font=宋体]负载均衡和一个[/font][/color][color=blue][size=10.5pt][font=Times New Roman]router[/font][/size][/color][color=blue][font=宋体]的双链路的一个[/font][/color][color=blue][size=10.5pt][font=Times New Roman]ebgp peer[/font][/size][/color][color=blue][font=宋体]负载均衡[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[size=3][font=宋体]一个[/font][size=10.5pt][font=Times New Roman]router[/font][/size][font=宋体]的两个[/font][size=10.5pt][font=Times New Roman]ebgp peer[/font][/size][font=宋体]的负载均衡用[/font][size=10.5pt][font=Times New Roman]Multipath[/font][/size][font=宋体]命令,一个[/font][size=10.5pt][font=Times New Roman]router[/font][/size][font=宋体]双链路,如下做法:[/font][size=10.5pt][/size][/size]
[size=3][font=宋体]首先,创建静态路由到[/font][size=10.5pt][font=Times New Roman]ebgp peer[/font][/size][font=宋体]的[/font][size=10.5pt][font=Times New Roman]loopback address[/font][/size][font=宋体],两个下一跳,[/font][size=10.5pt][font=Times New Roman]no-readvertise[/font][/size][font=宋体],然后用[/font][size=10.5pt][font=Times New Roman]source based ping[/font][/size][font=宋体]测试连通性[/font][size=10.5pt][/size][/size]
[size=3][font=宋体]其次,[/font][size=10.5pt][font=Times New Roman]protocols bgp group ebgp-LB[/font][/size][font=宋体]下[/font][size=10.5pt][font=Times New Roman]local-address[/font][/size][font=宋体]用[/font][size=10.5pt][font=Times New Roman]loopback address[/font][/size][font=宋体],[/font][size=10.5pt][font=Times New Roman]neighbor[/font][/size][font=宋体]是[/font][size=10.5pt][font=Times New Roman]ebgp peer[/font][/size][font=宋体]的[/font][size=10.5pt][font=Times New Roman]loopback address[/font][/size][/size]
[size=3][font=宋体]再次,加上[/font][size=10.5pt][font=Times New Roman]multihop[/font][/size][font=宋体]命令[/font][size=10.5pt][/size][/size]
[size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size]
[size=3][color=blue][size=10.5pt][font=Times New Roman]JUNOS[/font][/size][/color][color=blue][font=宋体]的[/font][/color][color=blue][size=10.5pt][font=Times New Roman]bgp authentication[/font][/size][/color][color=blue][font=宋体]对于[/font][/color][color=blue][size=10.5pt][font=Times New Roman]ibgp/ebgp[/font][/size][/color][color=blue][font=宋体]配置是一样的,就一条命令,注意要写在特定的配置层次下[/font][/color][color=blue][size=10.5pt][font=Times New Roman]authentication-key xxxx[/font][/size][/color][/size]
[size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size]
[size=3][color=blue][font=宋体]问题三:[/font][/color][color=blue][size=10.5pt][font=Times New Roman]p1[/font][/size][/color][color=blue][font=宋体]只有一个[/font][/color][color=blue][size=10.5pt][font=Times New Roman]peer statement[/font][/size][/color][color=blue][font=宋体],并且[/font][/color][color=blue][size=10.5pt][font=Times New Roman]p1[/font][/size][/color][color=blue][font=宋体]的[/font][/color][color=blue][size=10.5pt][font=Times New Roman]ip[/font][/size][/color][color=blue][font=宋体]地址不知道,如果做到[/font][/color][color=blue][size=10.5pt][font=Times New Roman]r1/r2[/font][/size][/color][color=blue][font=宋体]任何一个断了的话,[/font][/color][color=blue][size=10.5pt][font=Times New Roman]AS[/font][/size][/color][color=blue][font=宋体]全局上来讲,与[/font][/color][color=blue][size=10.5pt][font=Times New Roman]p1[/font][/size][/color][color=blue][font=宋体]的[/font][/color][color=blue][size=10.5pt][font=Times New Roman]peer[/font][/size][/color][color=blue][font=宋体]关系短时间内就可以恢复[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[align=left][size=3][font=宋体]这个要做反向工程[/font][size=10.5pt][font=Times New Roman]debug[/font][/size][font=宋体],由于[/font][size=10.5pt][font=Times New Roman]r1/r2[/font][/size][font=宋体]预先已经做了[/font][size=10.5pt][font=Times New Roman]vrrp[/font][/size][font=宋体],就好办了,首先随便设置一个[/font][size=10.5pt][font=Times New Roman]neighbor[/font][/size][font=宋体],然后开[/font][size=10.5pt][font=Times New Roman]traceoptions flag open detail[/font][/size][font=宋体],然后[/font][size=10.5pt][font=Times New Roman]monitor traffic interface fe-0/0/0.0[/font][/size][font=宋体],取得对端[/font][size=10.5pt][font=Times New Roman]IP[/font][/size][font=宋体]地址和[/font][size=10.5pt][font=Times New Roman]p1[/font][/size][font=宋体]对端的[/font][size=10.5pt][font=Times New Roman]TCP[/font][/size][font=宋体]连接,类似于[/font][/size][font=Mono3-Regular][size=9pt][font=Times New Roman]22:09:58.351962 In VID [0: 150] 10.0.5.254.1045 > 10.0.5.200.bgp: S3318404620:3318404620(0) win 16384 <mss 1456,nop,wscale 0,nop,nop,timestamp[/font][/size][/font][/align]
[align=left][font=Times New Roman][font=Mono3-Regular][size=9pt]1984619 0> [tos 0xc0] [/size][/font][font=Mono3-Regular][size=9pt],[/size][/font][/font][size=3][font=宋体]相应修改配置,注意[/font][size=10.5pt][font=Times New Roman]vrrp-group[/font][/size][font=宋体]里一定要加上[/font][size=10.5pt][font=Times New Roman]accept-data[/font][/size][font=宋体]允许[/font][size=10.5pt][font=Times New Roman]ping[/font][/size][font=宋体]才能建立[/font][size=10.5pt][font=Times New Roman]ebgp session[/font][/size][font=宋体](默认是不许[/font][size=10.5pt][font=Times New Roman]ping[/font][/size][font=宋体]的),还有注意[/font][size=10.5pt][font=Times New Roman]ebgp session[/font][/size][font=宋体]要用[/font][size=10.5pt][font=Times New Roman]local-address vrrp_virtual_ip[/font][/size][font=宋体]才可以[/font][size=10.5pt][/size][/size][/align]
[align=left][size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size][/align]
[align=left][size=3][color=blue][font=宋体]问题四:[/font][/color][color=blue][size=10.5pt][font=Times New Roman]damping[/font][/size][/color][color=blue][font=宋体]配置注意事项[/font][/color][color=blue][size=10.5pt][/size][/color][/size][/align]
[align=left][size=3][font=宋体]默认的[/font][size=10.5pt][font=Times New Roman]decay half-time=15minutes[/font][/size][/size][/align]
[align=left][size=10.5pt][size=3][font=Times New Roman]max.hold-down time=60minutes[/font][/size][/size][/align]
[align=left][size=10.5pt][size=3][font=Times New Roman]reuse threshold=750[/font][/size][/size][/align]
[align=left][size=3][font=Times New Roman][size=10.5pt]cut-off(suppress)threshold=3000[/size][font=Mono3-Regular][size=10pt][/size][/font][/font][/size][/align]
[size=3][font=宋体]细化路由的[/font][size=10.5pt][font=Times New Roman]damping[/font][/size][font=宋体]应该比粗放的路由更加[/font][size=10.5pt][font=Times New Roman]aggressive[/font][/size][/size]
[size=3][size=10.5pt][font=Times New Roman]Half-life[/font][/size][font=宋体]越小,[/font][size=10.5pt][font=Times New Roman]damping[/font][/size][font=宋体]越[/font][size=10.5pt][font=Times New Roman]timid[/font][/size][/size]
[size=3][size=10.5pt][font=Times New Roman]Suppress[/font][/size][font=宋体]越小[/font][font=宋体],[/font][size=10.5pt][font=Times New Roman]damping[/font][/size][font=宋体]越[/font][size=10.5pt][font=Times New Roman]aggressive[/font][/size][/size]
[size=3][font=宋体]配置上既要做[/font][size=10.5pt][font=Times New Roman]import damping policy[/font][/size][font=宋体]又要在[/font][size=10.5pt][font=Times New Roman]bgp[/font][/size][font=宋体]全局上写[/font][size=10.5pt][font=Times New Roman]damping[/font][/size][font=宋体],[/font][size=10.5pt][font=Times New Roman]policy[/font][/size][font=宋体]的顺序就是不[/font][size=10.5pt][font=Times New Roman]damping[/font][/size][font=宋体]的先写,[/font][font=宋体]清除[/font][size=10.5pt][font=Times New Roman]damping[/font][/size][font=宋体]的[/font][font=宋体]命令是[/font][size=10.5pt][font=Times New Roman]clear bgp damping[/font][/size][font=宋体],查看[/font][size=10.5pt][font=Times New Roman]damping[/font][/size][font=宋体]的命令是[/font][size=10.5pt][font=Times New Roman]show route damping suppressed[/font][/size][/size]
[size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size]
[size=3][color=blue][font=宋体]问题五[/font][/color][color=blue][font=宋体]:[/font][/color][color=blue][size=10.5pt][font=Times New Roman]martian table[/font][/size][/color][color=blue][font=宋体]和[/font][/color][color=blue][size=10.5pt][font=Times New Roman]rfc1918[/font][/size][/color][color=blue][font=宋体],[/font][/color][color=blue][font=宋体]还有[/font][/color][color=blue][size=10.5pt][font=Times New Roman]policy[/font][/size][/color][color=blue][font=宋体]处理的顺序[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[size=3][color=black][font=宋体]如果题目要求过滤掉[/font][/color][color=black][size=10.5pt][font=Times New Roman]rfc1918[/font][/size][/color][color=black][font=宋体]路由[/font][/color][color=black][font=宋体],[/font][/color][color=black][font=宋体]就是[/font][/color][color=black][size=10.5pt][font=Times New Roman]172.16/12 orlonger[/font][/size][/color][color=black][font=宋体]、[/font][/color][color=black][size=10.5pt][font=Times New Roman]192.168/16 orlonger[/font][/size][/color][color=black][font=宋体]、[/font][/color][color=black][size=10.5pt][font=Times New Roman]10/8 orlonger[/font][/size][/color][color=black][font=宋体]三个[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[size=10.5pt][size=3][font=Times New Roman]Prefix-length-range /xx-/yy[/font][/size][/size]
[size=10.5pt][size=3][font=Times New Roman]Through x.x.x.x/y[/font][/size][/size]
[size=3][font=宋体]如果说要求“[/font][size=10.5pt][font=Times New Roman]no 0-127 routes with prefix lengths less than /[/font][font=Times New Roman]8[/font][font=宋体]”[/font][font=宋体],命令为[/font][font=Times New Roman]route-filter 0/1 prefix-length-range /1-/7 reject[/font][/size][/size]
[size=3][font=宋体]如果要求的话,不要忘记最后加上[/font][size=10.5pt][font=Times New Roman]reject[/font][/size][font=宋体]的[/font][size=10.5pt][font=Times New Roman]term[/font][/size][/size]
[size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size]
[size=3][color=blue][font=宋体]问题六:[/font][/color][color=blue][size=10.5pt][font=Times New Roman]regular-expression[/font][/size][/color][color=blue][font=宋体]的问题[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[size=3][color=black][font=宋体]简单应用[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]term 3 {[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]from as-path c2;[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]then next policy;[/font][/size][/font][/align]
[align=left][font=Times New Roman][font=Mono3-Regular][size=9pt]}[/size][/font][font=Mono3-Regular][size=10pt][/size][/font][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman][edit policy-options][/font][/size][/font][/align]
[align=left][font=Times New Roman][b][font=Mono3-Regular][size=9pt]lab@r7# [/size][/font][/b][b][font=Mono3-Bold][size=9pt]show as-path [/size][/font][/b][b][i][font=Mono3-BoldItalic][size=9pt]c2[/size][/font][/i][/b][/font][/align]
[align=left][font=Times New Roman][b][font=Mono3-Regular][size=9pt]".*
65020";[/size][/font][/b][b][font=Mono3-Regular][size=10pt][/size][/font][/b][/font][/align]
[size=3][color=black][font=宋体]特别要注意[/font][/color][color=black][size=10.5pt][font=Times New Roman]regular-expression[/font][/size][/color][color=black][font=宋体]的应用,[/font][/color][color=black][size=10.5pt][font=Times New Roman].*[/font][/size][/color][color=black][font=宋体]以后要空格再写数字,就表示从那个相邻[/font][/color][color=black][size=10.5pt][font=Times New Roman]as[/font][/size][/color][color=black][font=宋体]间过来的路由[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size]
[size=3][color=blue][font=宋体]问题七:[/font][/color][color=blue][size=10.5pt][font=Times New Roman]community-tagging[/font][/size][/color][color=blue][font=宋体]的问题[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[size=3][color=blue][font=宋体]所有路由器的[/font][/color][color=blue][size=10.5pt][font=Times New Roman]policy-options[/font][/size][/color][color=blue][font=宋体]下都要写[/font][/color][color=blue][size=10.5pt][font=Times New Roman]community[/font][/size][/color][color=blue][font=宋体]设置,否则不认,基本格式是[/font][/color][color=blue][size=10.5pt][font=Times New Roman]ASN:NUMBER[/font][/size][/color][color=blue][font=宋体],如下所示:[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman][edit policy-options][/font][/size][/font][/align]
[align=left][font=Times New Roman][font=Mono3-Regular][size=9pt]lab@r6# [/size][/font][b][font=Mono3-Bold][size=9pt]set community transit members 65412:100[/size][/font][/b][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman][edit policy-options][/font][/size][/font][/align]
[align=left][font=Times New Roman][font=Mono3-Regular][size=9pt]lab@r6# [/size][/font][b][font=Mono3-Bold][size=9pt]set community peers members 65412:200[/size][/font][/b][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman][edit policy-options][/font][/size][/font][/align]
[align=left][font=Times New Roman][font=Mono3-Regular][size=9pt]lab@r6# [/size][/font][b][font=Mono3-Bold][size=9pt]set community customers members 65412:300[/size][/font][/b][font=Mono3-Regular][size=10pt][/size][/font][/font][/align]
[color=blue][size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size][/color]
[size=3][color=blue][font=宋体]问题七:[/font][/color][color=blue][size=10.5pt][font=Times New Roman]next-hop self[/font][/size][/color][color=blue][font=宋体]问题[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[size=3][color=black][font=宋体]注意[/font][/color][color=black][size=10.5pt][font=Times New Roman]next-hop self[/font][/size][/color][color=black][font=宋体]的配置位置:在边界路由器上配置,在对[/font][/color][color=black][size=10.5pt][font=Times New Roman]ibgp peer[/font][/size][/color][color=black][font=宋体]的[/font][/color][color=black][size=10.5pt][font=Times New Roman]group[/font][/size][/color][color=black][font=宋体]里的[/font][/color][color=black][size=10.5pt][font=Times New Roman]export policy[/font][/size][/color][color=black][font=宋体]里设置,不要写[/font][/color][color=black][size=10.5pt][font=Times New Roman]accept[/font][/size][/color][color=black][font=宋体],测试结果就是看[/font][/color][color=black][size=10.5pt][font=Times New Roman]ibgp neighbor[/font][/size][/color][color=black][font=宋体]是不是已经没有[/font][/color][color=black][size=10.5pt][font=Times New Roman]hidden route[/font][/size][/color][color=black][font=宋体]了[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size]
[size=3][color=blue][font=宋体]问题八:对外广播路由的过滤[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[size=3][size=10.5pt][font=Times New Roman]JUNOS[/font][/size][font=宋体]默认的是把收到的[/font][size=10.5pt][font=Times New Roman]BGP[/font][/size][font=宋体]路由都公布给所有的[/font][size=10.5pt][font=Times New Roman]EBGP/IBGP PEER[/font][/size][font=宋体],所以[/font][size=10.5pt][font=Times New Roman]policy[/font][/size][font=宋体]里不用写[/font][size=10.5pt][font=Times New Roman]accept[/font][/size][font=宋体],只有汇聚并公布本[/font][size=10.5pt][font=Times New Roman]AS[/font][/size][font=宋体]内部地址段的时候才用[/font][size=10.5pt][font=Times New Roman]accept[/font][/size][font=宋体]。对于考试要求的特定的[/font][size=10.5pt][font=Times New Roman]deny[/font][/size][font=宋体]的[/font][size=10.5pt][font=Times New Roman]match[/font][/size][font=宋体]条件最好用[/font][size=10.5pt][font=Times New Roman]community[/font][/size][font=宋体]作条件。[/font][size=10.5pt][/size][/size]
[size=3][u][font=宋体]特别要注意的是:本地公布的[/font][/u][u][size=10.5pt][font=Times New Roman]192.168.x.0/24[/font][/size][/u][u][font=宋体]的地址段要自行过滤掉,单独分出一个[/font][/u][u][size=10.5pt][font=Times New Roman]term[/font][/size][/u][u][font=宋体]来写!!![/font][/u][u][size=10.5pt][/size][/u][/size]
[size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size]
[size=3][color=blue][font=宋体]问题九[/font][/color][color=blue][size=10.5pt][font=Times New Roman]: aggregate route in a ospf stub/isis level 1 area[/font][/size][/color][color=blue][font=宋体],汇聚路由造成[/font][/color][color=blue][size=10.5pt][font=Times New Roman]IBGP PEER[/font][/size][/color][color=blue][font=宋体]中断[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[size=10.5pt][size=3][font=Times New Roman]Generated route/ qualified next-hop static route with a higher route preference[/font][/size][/size]
[size=10.5pt][size=3][font=Times New Roman]Scenario: [/font][/size][/size]
[size=3][size=10.5pt][font=Times New Roman]r1/r2[/font][/size][font=宋体]因为要汇聚[/font][size=10.5pt][font=Times New Roman]10/8[/font][/size][font=宋体]给[/font][size=10.5pt][font=Times New Roman]p1[/font][/size][font=宋体],在本地做了一个[/font][size=10.5pt][font=Times New Roman]aggregate[/font][/size][font=宋体],因为是[/font][size=10.5pt][font=Times New Roman]ospf stub area/isis level 1[/font][/size][font=宋体]的关系,使得本地的汇聚路由成为最长匹配,从而[/font][size=10.5pt][font=Times New Roman]aggregate 10/8[/font][/size][font=宋体]成为[/font][size=10.5pt][font=Times New Roman]best route[/font][/size][font=宋体],因为[/font][size=10.5pt][font=Times New Roman]aggregate route[/font][/size][font=宋体]是下一跳为[/font][size=10.5pt][font=Times New Roman]reject/discard[/font][/size][font=宋体]的,就有了路由黑洞了;[/font][size=10.5pt][/size][/size]
[size=3][font=宋体]方法一[/font][font=宋体]:[/font][size=10.5pt][font=Times New Roman] [/font][/size][font=宋体]只有在[/font][size=10.5pt][font=Times New Roman]r3[/font][/size][font=宋体]上作本地汇聚,然后通过[/font][size=10.5pt][font=Times New Roman]ibgp[/font][/size][font=宋体]发过来,然后[/font][size=10.5pt][font=Times New Roman]r1[/font][/size][font=宋体]本地上做一个[/font][size=10.5pt][font=Times New Roman]generate route 10/8[/font][/size][font=宋体],才能再把[/font][size=10.5pt][font=Times New Roman]IBGP peer[/font][/size][font=宋体]带起来,同时又能满足对[/font][size=10.5pt][font=Times New Roman]ebgp peer p1[/font][/size][font=宋体]发放[/font][size=10.5pt][font=Times New Roman]10/8[/font][/size][font=宋体]汇聚路由的需要。[/font][size=10.5pt][/size][/size]
[size=3][font=宋体]方法二[/font][font=宋体]:不用[/font][size=10.5pt][font=Times New Roman]generate route[/font][/size][font=宋体],但是[/font][size=10.5pt][font=Times New Roman]Lab[/font][/size][font=宋体]里允许一些静态路由,可以在[/font][size=10.5pt][font=Times New Roman]r1[/font][/size][font=宋体]上配两条静态路由,主路由正常配置,次级路由下一跳为[/font][size=10.5pt][font=Times New Roman]qualified-next-hop[/font][/size][font=宋体]并且调高[/font][size=10.5pt][font=Times New Roman]route preference[/font][/size][font=宋体]使得比主路由不优先[/font][size=10.5pt][/size][/size]
[size=3][font=宋体]方法三[/font][font=宋体]:在[/font][size=10.5pt][font=Times New Roman]ibgp export policy[/font][/size][font=宋体]里修改本地的[/font][size=10.5pt][font=Times New Roman]aggregate route 10/8[/font][/size][font=宋体]的下一跳[/font][size=10.5pt][/size][/size]
[align=left][font=新宋体][size=8.5pt]Another solution to the hidden aggregate route problem described in this section, without using generated or static routes, is to use policy to alter the BGP next hop associated with the aggregate route so that the associated BGP next hop is no longer resolved through the summary route. The following policy statement, applied to [/size][/font][font=新宋体][size=8.5pt]r3[/size][/font][font=新宋体][size=8.5pt], will cause the BGP next hop for the 10/8 aggregate route to be 10.0.4.13. Because this address is present in the IS-IS level 1 area (and in an OSPF totally stubby area), the advertised BGP next hop will no longer need to recurse through the 10/8 aggregate, allowing it to become active. The following policy term, when applied as part of an IBGP export policy, will achieve this goal: [/size][/font][/align]
[align=left][font=新宋体][size=8.5pt][edit policy-options policy-statement [/size][/font][i][font=新宋体][size=8.5pt]ibgp-export [/size][/font][/i][font=新宋体][size=8.5pt]term [/size][/font][i][font=新宋体][size=8.5pt]agg-route[/size][/font][/i][font=新宋体][size=8.5pt]][/size][/font][/align]
[align=left][font=新宋体][size=8.5pt]lab@r3# [/size][/font][b][font=新宋体][size=8.5pt]show[/size][/font][/b][/align]
[align=left][font=新宋体][size=8.5pt]from {[/size][/font][/align]
[align=left][font=新宋体][size=8.5pt]route-filter 10.0.0.0/8 exact;[/size][/font][/align]
[align=left][font=新宋体][size=8.5pt]}[/size][/font][/align]
[align=left][font=新宋体][size=8.5pt]then {[/size][/font][/align]
[align=left][font=新宋体][size=8.5pt]next-hop 10.0.4.13;[/size][/font][font=新宋体][size=10pt][/size][/font][/align]
[size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size]
[size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size]
[size=3][color=blue][font=宋体]问题十:对端([/font][/color][color=blue][size=10.5pt][font=Times New Roman]p1[/font][/size][/color][color=blue][font=宋体])错误的把一些路由[/font][/color][color=blue][size=10.5pt][font=Times New Roman]prepend[/font][/size][/color][color=blue][font=宋体]了你的[/font][/color][color=blue][size=10.5pt][font=Times New Roman]AS[/font][/size][/color][color=blue][font=宋体]号吗,你必须配置你的边界路由器接受这些路由[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[align=left][size=3][color=black][size=10.5pt][font=Times New Roman]BGP[/font][/size][/color][color=black][font=宋体]默认是不接受带有自己[/font][/color][color=black][size=10.5pt][font=Times New Roman]AS[/font][/size][/color][color=black][font=宋体]号码的路由的,这是为了避免环路,[/font][/color][/size][font=Times New Roman][font=Sabon-Roman][size=9.5pt]To complete this objective, you must tell [/size][/font][font=Mono3-Regular][size=9.5pt]r1 [/size][/font][font=Sabon-Roman][size=9.5pt]and [/size][/font][font=Mono3-Regular][size=9.5pt]r2 [/size][/font][font=Sabon-Roman][size=9.5pt]that they should accept routes that contain the local AS number in the path:[/size][/font][font=Sabon-Roman][size=10pt][/size][/font][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman][edit routing-options][/font][/size][/font][/align]
[align=left][font=Times New Roman][u][font=Mono3-Regular][size=9pt]lab@r1# [/size][/font][/u][b][u][font=Mono3-Bold][size=9pt]set autonomous-system loops 2[/size][/font][/u][/b][u][font=Mono3-Regular][size=10pt][/size][/font][/u][/font][/align]
[size=3][color=black][size=10.5pt][font=Times New Roman]loops[/font][/size][/color][color=black][font=宋体]后面的数字代表路由能穿越指定[/font][/color][color=black][size=10.5pt][font=Times New Roman]AS[/font][/size][/color][color=black][font=宋体]的次数,默认为[/font][/color][color=black][size=10.5pt][font=Times New Roman]1[/font][/size][/color][color=black][font=宋体],这里给设置为[/font][/color][color=black][size=10.5pt][font=Times New Roman]2[/font][/size][/color][color=black][font=宋体]以后才能生效。[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[size=3][color=black][font=宋体]记住[/font][/color][color=black][size=10.5pt][font=Times New Roman]commit[/font][/size][/color][color=black][font=宋体]以后要[/font][/color][color=black][size=10.5pt][font=Times New Roman]clear bgp neighbor[/font][/size][/color][color=black][font=宋体]一下,让对端重新发所有路由[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size]
[size=3][color=blue][font=宋体]问题十一:如何引导入网流量[/font][/color][size=10.5pt][/size][/size]
[size=3][font=宋体]两种方法,都是用[/font][size=10.5pt][font=Times New Roman]med[/font][/size][font=宋体](特别注意,[/font][size=10.5pt][font=Times New Roman]JUNOS[/font][/size][font=宋体]的默认不发[/font][size=10.5pt][font=Times New Roman]med[/font][/size][font=宋体]的意思就代表[/font][size=10.5pt][font=Times New Roman]med=0[/font][/size][font=宋体],是[/font][size=10.5pt][font=Times New Roman]med[/font][/size][font=宋体]最低也就是最优先的意思)[/font][size=10.5pt][/size][/size]
[size=3][font=宋体]第一种方法[/font][font=宋体],使用[/font][size=10.5pt][font=Times New Roman]ebgp export policy[/font][/size][font=宋体],但是这里有一些要注意的,就是如果要修改已经有的[/font][size=10.5pt][font=Times New Roman]ebgp export policy[/font][/size][font=宋体]的[/font][size=10.5pt][font=Times New Roman]term[/font][/size][font=宋体]一般在最后一条增加[/font][size=10.5pt][font=Times New Roman]then metric xxx[/font][/size][font=宋体],这里对前面已经有[/font][size=10.5pt][font=Times New Roman]accept[/font][/size][font=宋体]的[/font][size=10.5pt][font=Times New Roman]term[/font][/size][font=宋体]的路由是无效的,因为比如[/font][size=10.5pt][font=Times New Roman]10/8[/font][/size][font=宋体]的已经跳出[/font][size=10.5pt][font=Times New Roman]policy[/font][/size][font=宋体]了,造成了[/font][size=10.5pt][font=Times New Roman]10/8[/font][/size][font=宋体]的路由的[/font][size=10.5pt][font=Times New Roman]metric[/font][/size][font=宋体]并没有被修改。解决这个问题的方法是:另外创建一个[/font][size=10.5pt][font=Times New Roman]ebgp export policy then metric xxx[/font][/size][font=宋体]和原有的一起[/font][size=10.5pt][font=Times New Roman] [/font][/size][font=宋体]作[/font][size=10.5pt][font=Times New Roman]policy chain[/font][/size][font=宋体],并且把这个新创建的[/font][size=10.5pt][font=Times New Roman]policy[/font][/size][font=宋体]放在前面先处理[/font][size=10.5pt][font=Times New Roman][[/font][/size][font=宋体]改变顺序[/font][size=10.5pt][font=Times New Roman]][/font][/size][/size]
[size=3][font=宋体]第二种方法[/font][font=宋体],直接在[/font][size=10.5pt][font=Times New Roman]BGP[/font][/size][font=宋体]下使用[/font][size=10.5pt][font=Times New Roman]metric-out[/font][/size][font=宋体]命令,注意,肯定是要在[/font][size=10.5pt][font=Times New Roman]neighbor-level[/font][/size][font=宋体]下配置此命令,并且如果两种方法同时使用的话,[/font][size=10.5pt][font=Times New Roman]policy[/font][/size][font=宋体]下的[/font][size=10.5pt][font=Times New Roman]metric[/font][/size][font=宋体]设置优先[/font][size=10.5pt][/size][/size]
[size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size]
[size=3][color=blue][font=宋体]问题十二:如何引导出网流量以及[/font][/color][color=blue][size=10.5pt][font=Times New Roman]local-preference[/font][/size][/color][color=blue][font=宋体]设置[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[size=3][color=black][font=宋体]引导出网流量可以使用[/font][/color][color=black][size=10.5pt][font=Times New Roman]local-preference[/font][/size][/color][color=black][font=宋体],[/font][/color][color=black][size=10.5pt][font=Times New Roman]local-pref[/font][/size][/color][color=black][font=宋体]越高的路由越优先选择,配置方面是在[/font][/color][color=black][size=10.5pt][font=Times New Roman]ibgp group[/font][/size][/color][color=black][font=宋体]下直接写[/font][/color][color=black][size=10.5pt][font=Times New Roman]local-preference xxx[/font][/size][/color][color=black][font=宋体],相当于对这台路由器说,我对这个[/font][/color][color=black][size=10.5pt][font=Times New Roman]IBGP group[/font][/size][/color][color=black][font=宋体]下的所有[/font][/color][color=black][size=10.5pt][font=Times New Roman]neighbor[/font][/size][/color][color=black][font=宋体]公布的全部路由的[/font][/color][color=black][size=10.5pt][font=Times New Roman]local-preference[/font][/size][/color][color=black][font=宋体]是[/font][/color][color=black][size=10.5pt][font=Times New Roman]xxx[/font][/size][/color][/size]
[color=black][size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size][/color]
[size=3][color=blue][font=宋体]问题十三:如果在收到路由超出时告警,并写入[/font][/color][color=blue][size=10.5pt][font=Times New Roman]syslog[/font][/size][/color][color=blue][font=宋体]文件[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[align=left][font=Times New Roman][font=Mono3-Regular][size=9pt]lab@r4# [/size][/font][b][font=Mono3-Bold][size=9pt]show protocols bgp group [/size][/font][/b][b][i][font=Mono3-BoldItalic][size=9pt]c1[/size][/font][/i][/b][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]type external;[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]multihop;[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]local-address 10.0.3.4;[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]family inet {[/font][/size][/font][/align]
[align=left][font=Times New Roman][b][font=Mono3-Regular][size=9pt]unicast[/size][/font][/b][font=Mono3-Regular][size=9pt] {[/size][/font][/font][/align]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]prefix-limit {[/font][/size][/font][/b][/align]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]maximum 10;[/font][/size][/font][/b][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]}[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]peer-as 65010;[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]neighbor 200.200.0.1 {[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]authentication-key "$9$n2/i9tOMWx7VY"; # SECRET-DATA[/font][/size][/font][/align]
[align=left][font=Times New Roman][font=Mono3-Regular][size=9pt]}[/size][/font][font=Mono3-Regular][size=10pt][/size][/font][/font][/align]
[size=3][color=black][font=宋体]以上配置,不加[/font][/color][color=black][size=10.5pt][font=Times New Roman]teardown[/font][/size][/color][color=black][font=宋体]选项是不会[/font][/color][color=black][size=10.5pt][font=Times New Roman]down[/font][/size][/color][color=black][font=宋体]掉[/font][/color][color=black][size=10.5pt][font=Times New Roman]bgp peer[/font][/size][/color][color=black][font=宋体]的,仅仅是告警信息记入日志文件[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[color=blue][size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size][/color]
[size=3][color=blue][font=宋体]问题十四:[/font][/color][color=blue][size=10.5pt][font=Times New Roman]show route advertising-protocol bgp[/font][/size][/color][color=blue][font=宋体]和[/font][/color][color=blue][size=10.5pt][font=Times New Roman]show route receive-protocol bgp[/font][/size][/color][color=blue][font=宋体]区别[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[size=3][color=black][size=10.5pt][font=Times New Roman]show route advertising-protocol bgp[/font][/size][/color][color=black][font=宋体]出来的结果是在[/font][/color][color=black][size=10.5pt][font=Times New Roman]Remove-private[/font][/size][/color][color=black][font=宋体]和[/font][/color][color=black][size=10.5pt][font=Times New Roman]export policy[/font][/size][/color][color=black][font=宋体]之前[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[size=3][color=black][size=10.5pt][font=Times New Roman]show route receive-protocol bgp[/font][/size][/color][color=black][font=宋体]是在[/font][/color][color=black][size=10.5pt][font=Times New Roman]import policy[/font][/size][/color][color=black][font=宋体]执行之后[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[color=black][size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size][/color]
[color=black][size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size][/color]
[size=3][color=blue][font=宋体]问题十五:[/font][/color][color=blue][size=10.5pt][font=Times New Roman]transit provider[/font][/size][/color][color=blue][font=宋体]的[/font][/color][color=blue][size=10.5pt][font=Times New Roman]policy[/font][/size][/color][color=blue][font=宋体]的[/font][/color][color=blue][size=10.5pt][font=Times New Roman]match[/font][/size][/color][color=blue][font=宋体]条件问题[/font][/color][color=blue][size=10.5pt][/size][/color][/size]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]term tag-t1 {[/font][/size][/font][/b][/align]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]from neighbor 172.16.0.14;[/font][/size][/font][/b][/align]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]then {[/font][/size][/font][/b][/align]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]community add trans-1;[/font][/size][/font][/b][/align]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]}[/font][/size][/font][/b][/align]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]}[/font][/size][/font][/b][/align]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]term tag-t2 {[/font][/size][/font][/b][/align]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]from neighbor 172.16.0.18;[/font][/size][/font][/b][/align]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]then {[/font][/size][/font][/b][/align]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]community add trans-2;[/font][/size][/font][/b][/align]
[align=left][b][font=Mono3-Regular][size=9pt][font=Times New Roman]}[/font][/size][/font][/b][/align]
[align=left][font=Times New Roman][b][font=Mono3-Regular][size=9pt]}[/size][/font][/b][b][font=Mono3-Regular][size=10pt][/size][/font][/b][/font][/align]
[size=3][color=black][font=宋体]在[/font][/color][color=black][size=10.5pt][font=Times New Roman]r3[/font][/size][/color][color=black][font=宋体]上可以按照如上方法写,这就保证了两个[/font][/color][color=black][size=10.5pt][font=Times New Roman]transit community[/font][/size][/color][color=black][font=宋体]的独特性和唯一性[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[color=black][size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size][/color]
[size=3][b][size=10.5pt][font=Times New Roman]###[/font][/size][/b][color=blue][font=宋体]问题十六:要求对外公布[/font][/color][color=blue][size=10.5pt][font=Times New Roman]3[/font][/size][/color][color=blue][font=宋体]种[/font][/color][color=blue][size=10.5pt][font=Times New Roman]NLRI[/font][/size][/color][color=blue][font=宋体]信息:你的[/font][/color][color=blue][size=10.5pt][font=Times New Roman]10/8[/font][/size][/color][color=blue][font=宋体]地址段,[/font][/color][color=blue][size=10.5pt][font=Times New Roman]OSPF[/font][/size][/color][color=blue][font=宋体]路由器发过来的路由,[/font][/color][color=blue][size=10.5pt][font=Times New Roman]OSPF[/font][/size][/color][color=blue][font=宋体]的直联网段,不准修改[/font][/color][color=blue][size=10.5pt][font=Times New Roman]r2/r3/r6/r7[/font][/size][/color][color=blue][font=宋体]的[/font][/color][color=blue][size=10.5pt][font=Times New Roman]routing-options[/font][/size][/color][color=blue][font=宋体]的配置,不能用[/font][/color][color=blue][size=10.5pt][font=Times New Roman]generate route[/font][/size][/color][color=blue][font=宋体],但是可以使用不超过[/font][/color][color=blue][size=10.5pt][font=Times New Roman]2[/font][/size][/color][color=blue][font=宋体]条的静态路由[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[size=3][color=black][font=宋体]在[/font][/color][color=black][size=10.5pt][font=Times New Roman]r5[/font][/size][/color][color=black][font=宋体]上[/font][/color][color=black][size=10.5pt][font=Times New Roman]routing-options[/font][/size][/color][color=black][font=宋体]下定义[/font][/color][color=black][size=10.5pt][font=Times New Roman]aggregate 10/8[/font][/size][/color][color=black][font=宋体],[/font][/color][color=black][size=10.5pt][font=Times New Roman]192.168/22[/font][/size][/color][color=black][font=宋体],[/font][/color][color=black][size=10.5pt][font=Times New Roman]172.16.40/29[/font][/size][/color][color=black][font=宋体],然后定义[/font][/color][color=black][size=10.5pt][font=Times New Roman]policy[/font][/size][/color][color=black][font=宋体]如下:[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]term 2 {[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]from {[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]protocol aggregate;[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]route-filter 10.0.0.0/8 exact;[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]route-filter 192.168.0.0/22 exact;[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]route-filter 172.16.40.0/29 exact;[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]}[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]then accept;[/font][/size][/font][/align]
[align=left][font=Times New Roman][font=Mono3-Regular][size=9pt]}[/size][/font][font=Mono3-Regular][size=10pt][/size][/font][/font][/align]
[align=left][font=Times New Roman][font=Mono3-Regular][size=9pt]lab@r5# [/size][/font][b][font=Mono3-Bold][size=9pt]show routing-options aggregate[/size][/font][/b][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]route 10.0.2.0/23;[/font][/size][/font][/align]
[align=left][font=Mono3-Regular][size=9pt][font=Times New Roman]route 10.0.8.0/21;[/font][/size][/font][/align]
[align=left][u][font=Mono3-Regular][size=9pt][font=Times New Roman]route 192.168.0.0/22;[/font][/size][/font][/u][/align]
[align=left][u][font=Mono3-Regular][size=9pt][font=Times New Roman]route 172.16.40.0/29;[/font][/size][/font][/u][/align]
[align=left][font=Times New Roman][u][font=Mono3-Regular][size=9pt]route 10.0.0.0/8;[/size][/font][/u][u][font=Mono3-Regular][size=10pt][/size][/font][/u][/font][/align]
[size=3][color=black][font=宋体]这里发现[/font][/color][color=black][size=10.5pt][font=Times New Roman]r4[/font][/size][/color][color=black][font=宋体]不对自己的[/font][/color][color=black][size=10.5pt][font=Times New Roman]ebgp peer[/font][/size][/color][color=black][font=宋体]发布[/font][/color][color=black][size=10.5pt][font=Times New Roman]192.168/22[/font][/size][/color][color=black][font=宋体]和[/font][/color][color=black][size=10.5pt][font=Times New Roman]172.16.40/29[/font][/size][/color][color=black][font=宋体]的路由[/font][/color][color=black][font=宋体],[/font][/color][color=black][font=宋体]因为[/font][/color][color=black][size=10.5pt][font=Times New Roman]r4[/font][/size][/color][color=black][font=宋体]已经有这些网段的[/font][/color][color=black][size=10.5pt][font=Times New Roman]isis[/font][/size][/color][color=black][font=宋体]路由而不是[/font][/color][color=black][size=10.5pt][font=Times New Roman]bgp[/font][/size][/color][color=black][font=宋体]路由[/font][/color][color=black][size=10.5pt][font=Times New Roman](bgp route is inactive)[/font][/size][/color][color=black][font=宋体],在[/font][/color][color=black][size=10.5pt][font=Times New Roman]r4[/font][/size][/color][color=black][font=宋体]上使用[/font][/color][color=black][size=10.5pt][font=Times New Roman]set protocols bgp advertise-inactive[/font][/size][/color][color=black][font=宋体]就可以解决了。[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[size=3][color=black][font=宋体]这里又发现[/font][/color][color=black][size=10.5pt][font=Times New Roman]r1/r2[/font][/size][/color][color=black][font=宋体]不对外发布[/font][/color][color=black][size=10.5pt][font=Times New Roman]10/8[/font][/size][/color][color=black][font=宋体]的路由[/font][/color][color=black][font=宋体],[/font][/color][color=black][font=宋体]解决方法是定义[/font][/color][color=black][size=10.5pt][font=Times New Roman]10/8[/font][/size][/color][color=black][font=宋体]的[u]静态路由[/u][/font][/color][color=black][font=宋体],[/font][/color][color=black][font=宋体]下一跳为正常下一跳[/font][/color][color=black][font=宋体],[/font][/color][color=black][font=宋体]还要设置一个[/font][/color][color=black][size=10.5pt][font=Times New Roman]qualified-next-hop[/font][/size][/color][color=black][font=宋体]并且把[/font][/color][color=black][size=10.5pt][font=Times New Roman]preference[/font][/size][/color][color=black][font=宋体]设得大一些,然后[/font][/color][color=black][size=10.5pt][font=Times New Roman]r1/r2[/font][/size][/color][color=black][font=宋体]上的[/font][/color][color=black][size=10.5pt][font=Times New Roman]peer-export policy[/font][/size][/color][color=black][font=宋体]就是[/font][/color][color=black][size=10.5pt][font=Times New Roman]from protocol static route-filter 10/8 exact then accept[/font][/size][/color][color=black][font=宋体]即可,其他的都是默认就发送出去咯!!![/font][/color][color=black][size=10.5pt][/size][/color][/size]
[color=black][size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size][/color]
[size=3][color=blue][font=宋体]问题十七[/font][/color][color=blue][font=宋体]:[/font][/color][color=blue][font=宋体]如果要求[/font][/color][color=blue][size=10.5pt][font=Times New Roman]transit provider[/font][/size][/color][color=blue][font=宋体]使用连接到到[/font][/color][color=blue][size=10.5pt][font=Times New Roman]r6[/font][/size][/color][color=blue][font=宋体]的[/font][/color][color=blue][size=10.5pt][font=Times New Roman]link[/font][/size][/color][color=blue][font=宋体]来转发流量到[/font][/color][color=blue][size=10.5pt][font=Times New Roman]customer[/font][/size][/color][color=blue][font=宋体]的目标地址[/font][/color][color=blue][font=宋体],[/font][/color][color=blue][font=宋体]并不许在[/font][/color][color=blue][size=10.5pt][font=Times New Roman]r3[/font][/size][/color][color=blue][font=宋体]上设置[/font][/color][color=blue][size=10.5pt][font=Times New Roman]med[/font][/size][/color][/size]
[size=3][color=black][size=10.5pt][font=Times New Roman]Med[/font][/size][/color][color=black][font=宋体]不设置已经是最低了(为[/font][/color][color=black][size=10.5pt][font=Times New Roman]0[/font][/size][/color][color=black][font=宋体]),所以,不能用[/font][/color][color=black][size=10.5pt][font=Times New Roman]med[/font][/size][/color][color=black][font=宋体]比大小的方法解决。解决方法是在[/font][/color][color=black][size=10.5pt][font=Times New Roman]r3[/font][/size][/color][color=black][font=宋体]的[/font][/color][color=black][size=10.5pt][font=Times New Roman]bgp[/font][/size][/color][color=black][font=宋体]配置下到[/font][/color][color=black][size=10.5pt][font=Times New Roman]transit provider[/font][/size][/color][color=black][font=宋体]的配置上设置[/font][/color][color=black][size=10.5pt][font=Times New Roman]export policy[/font][/size][/color][color=black][font=宋体]来[/font][/color][color=black][size=10.5pt][font=Times New Roman]prepend AS[/font][/size][/color][color=black][font=宋体]号码,使得[/font][/color][color=black][size=10.5pt][font=Times New Roman]r3-t2[/font][/size][/color][color=black][font=宋体]这个[/font][/color][color=black][size=10.5pt][font=Times New Roman]link[/font][/size][/color][color=black][font=宋体]比[/font][/color][color=black][size=10.5pt][font=Times New Roman]r6-t2[/font][/size][/color][color=black][font=宋体]的[/font][/color][color=black][size=10.5pt][font=Times New Roman]link[/font][/size][/color][color=black][font=宋体]优先级低[/font][/color][color=black][size=10.5pt][/size][/color][/size]
[color=black][size=10.5pt][font=Times New Roman][size=3] [/size][/font][/size][/color]
[b][color=red][size=10.5pt][size=3][font=Times New Roman]bgp check-list:[/font][/size][/size][/color][/b]
[size=3][font=宋体]查看[/font][size=10.5pt][font=Times New Roman]ibgp peer/ebgp peer[/font][/size][font=宋体]是否建立[/font][size=10.5pt][/size][/size]
[size=3][font=宋体]查看所有[/font][size=10.5pt][font=Times New Roman]BGP ROUTER[/font][/size][font=宋体]有无[/font][size=10.5pt][font=Times New Roman]hidden[/font][/size][font=宋体]路由[/font][font=宋体],[/font][font=宋体]如果有[/font][font=宋体],[/font][font=宋体]是否为合法的[/font][size=10.5pt][font=Times New Roman]hidden[/font][/size][font=宋体]路由[/font][font=宋体]([/font][font=宋体]被[/font][size=10.5pt][font=Times New Roman]filter[/font][/size][font=宋体]掉[/font][font=宋体])[/font][size=10.5pt][/size][/size]
[size=3][size=10.5pt][font=Times New Roman]Export policy[/font][/size][font=宋体]是否成功应用[/font][size=10.5pt][/size][/size]
[size=3][size=10.5pt][font=Times New Roman]Martian route[/font][/size][font=宋体]是否被[/font][size=10.5pt][font=Times New Roman]filter[/font][/size][font=宋体]掉[/font][size=10.5pt][/size][/size]
[size=3][font=宋体]根据要求是否设立了[/font][size=10.5pt][font=Times New Roman]med/local-pref/prepended AS/community tags[/font][/size][/size]
[size=3][size=10.5pt][font=Times New Roman]Connectivity[/font][/size][font=宋体]是否建立[/font][font=宋体],[/font][font=宋体]本地要测试[/font][font=宋体],[/font][font=宋体]所有的[/font][size=10.5pt][font=Times New Roman]ebgp peer[/font][/size][font=宋体]也要测试[/font][font=宋体]([/font][size=10.5pt][font=Times New Roman]ping/traceroute[/font][/size][font=宋体])[/font][size=10.5pt][/size][/size]
[size=3][size=10.5pt][font=Times New Roman]traceroute[/font][/size][font=宋体]查看本[/font][size=10.5pt][font=Times New Roman]AS[/font][/size][font=宋体]内部是不是走的最优路径[/font][size=10.5pt][/size][/size]
[size=3][font=宋体]本地路由器是否能够[/font][size=10.5pt][font=Times New Roman]traceroute[/font][/size][font=宋体]到每个[/font][size=10.5pt][font=Times New Roman]ebgp peer[/font][/size][font=宋体]路由器的[/font][size=10.5pt][font=Times New Roman]loopback[/font][/size][font=宋体]地址[/font][font=宋体],[/font][font=宋体]是否走的是最优路径[/font][font=宋体],[/font][font=宋体]如有特殊路径要求是否走的是要求的路径[/font][size=10.5pt][/size][/size]
[size=3][size=10.5pt][font=Times New Roman]Damp[/font][/size][font=宋体]工作吗?[/font][size=10.5pt][/size][/size]
[size=3][size=10.5pt][font=Times New Roman]Ibgp/ebgp[/font][/size][font=宋体]负载均衡是否工作[/font][size=10.5pt][/size][/size]
[size=3][b][u][font=宋体]所有的边界路由器对相应的[/font][/u][/b][b][u][size=10.5pt][font=Times New Roman]EBGP PEER[/font][/size][/u][/b][b][u][font=宋体]的收发路由要特别仔细检查!!![/font][/u][/b][/size][b][u][size=10.5pt][/size][/u][/b]
wang120 2008-5-7 16:52
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
diamosters 2008-5-13 22:02
下雨了
外面似乎快下雨了,赶快灌个水,然后回家收衣服
Buy cheap [url=http://www.guildnav.com/replica-handbags/]replica handbags[/url] and [url=http://www.hohotrade.com]china wholesale[/url] and [url=http://www.hohotrade.com]wholesale[/url] instantly.Also buy [url=http://www.guildnav.com]wholesale electronics[/url] and [url=http://www.guildnav.com/replica-watches/]replica watches[/url] from here.Get to work now.
080525jk 2008-6-8 10:48
摩卡4
[url=http://www.mochabsm.com/bsmconcept-comefrom.htm][b]ITSM[/b][/url]需求分析
随着中国企业信息化建设的深入推进,信息系统的规模不断扩大,业务对IT系统的依赖性越来越大,同时IT系统日趋复杂、系统维护要求越来越高。尤其是金融、电信、电力等重点行业对IT管理的要求越来越高。[url=http://www.mochabsm.com/demo/index.htm][b]ITI[/b]L[/url]服务管理(ITSM)作为IT管理的新理论、方法和工具,正在发挥着越来越重要的作用。
同时,越来越多的企业认识到ITSM对企业[url=http://www.mochabsm.com/][b]IT资产管理[/b][/url]的重要性,据统计,2005年,中国IT服务管理市场的规模达到8.2亿元。[url=http://www.mochabsm.com/buy/index.htm][b]IT运维[/b][/url]与2004年的市场规模相比,年增长率达到20.5%。其中电信行业占到整个行业较大的市场份额,金融、电力这些对网络依存很高的行业也都在IT服务管理上有一定的投入。未来4年内,中国IT服务管理市场规模将以22.4%的年复合增长率增长,到2009年,市场规模将接近20亿元。[url=http://www.mochabsm.com/buy/index.htm][b]IT运维管理[/b][/url]随着IT服务管理解决方案在电信、金融、电力等行业越来越多的成功案例涌现,成功经验也会在各个行业分享和传播,ITSM市场孕育巨大潜力。
klmn851 2008-6-23 13:53
深圳市爱思普瑞检测设备公司
*** 作者被禁止或删除 内容自动屏蔽 ***
rstu247 2008-9-5 12:14
命运的抉择让我痛放天龙
这里不是《乡愁》,也不是对自己的爱人的那种相思,只是对游戏的想念。
离开[b][url=http://www.63520.com]天龙八部私服[/url][/b]因为对自己学业的不放弃,这是对的,然而人并非做了的对的事情便觉得开心,这里存在一个选择的问题在里面,我选择了什么?这选择是否让我失去了什么。是呀,抉择面前我是对的。对的很不痛快。
我并不想忘却什么,只是在等待一个机会,我想我终究可以挣脱束缚然后奔向自己的热爱,正如我现在所写的文章,我并非乐意而为之,而我写这篇文章确实对的。乱了,一切都变的无理可询。在抉择面前我们谁不曾心痛呢?抉择对放弃的那股思念又岂是三言两语可以道明的?