【正文】
o speed auto ! interface FastEther0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 ip address serial restartdelay 0 ! interface Serial1/1 no ip address shutdown serial restartdelay 0 ! interface Serial1/2 ip address serial restartdelay 0 ! interface Serial1/3 no ip address shutdown serial restartdelay 0 ! ! router ospf 100 routerid logadjacencychanges work area 0 ! router bgp 12 no synchronization bgp routerid bgp logneighborchanges neighbor remoteas 24 neighbor remoteas 12 no autosummary ! ! ! ip server no ip secureserver ! ! ! ! ! controlplane ! ! ! ! ! ! ! ! ! alias exec a sh ip int brief alias exec b sh ip route alias exec c sh ip route rip alias exec d sh run ! line con 0 exectimeout 0 0 logging synchronous line aux 0 exectimeout 0 0 logging synchronous line vty 0 4 exectimeout 0 0 password cisco login ! ! end r2 r3sh run Building configuration... Current configuration : 1503 bytes ! version service timestamps debug datetime msec service timestamps log datetime msec no service passwordencryption ! hostname r3 ! bootstartmarker bootendmarker ! enable password cisco ! no aaa newmodel memorysize iomem 5 ip cef ! ! ! ! no ip domain lookup ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address ! interface Loopback90 no ip address ! interface FastEther0/0 no ip address shutdown duplex auto speed auto ! interface FastEther0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 ip address serial restartdelay 0 ! interface Serial1/1 no ip address shutdown serial restartdelay 0 ! interface Serial1/2 ip address serial restartdelay 0 ! interface Serial1/3 no ip address shutdown serial restartdelay 0 ! ! router ospf 100 routerid logadjacencychanges work area 0 ! router bgp 12 no synchronization bgp routerid bgp logneighborchanges neighbor remoteas 12 neighbor remoteas 73 no autosummary ! ! ! ip server no ip secureserver ! ! ! ! ! controlplane ! ! ! ! ! ! ! ! ! alias exec a sh ip int brief alias exec b sh ip route alias exec c sh ip route rip alias exec d sh run ! line con 0 exectimeout 0 0 logging synchronous line aux 0 exectimeout 0 0 logging synchronous line vty 0 4 exectimeout 0 0 password cisco login ! ! end r3 r4sh run Building configuration... Current configuration : 1419 bytes ! version service timestamps debug datetime msec service timestamps log datetime msec no service passwordencryption ! hostname r4 ! bootstartmarker bootendmarker ! enable password cisco ! no aaa newmodel memorysize iomem 5 ip cef ! ! ! ! no ip domain lookup ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address ! interface FastEther0/0 no ip address shutdown duplex auto speed auto ! interface FastEther0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 ip address serial restartdelay 0 ! interface Serial1/1 no ip address shutdown serial restartdelay 0 ! interface Serial1/2 no ip address shutdown serial restartdelay 0 ! interface Serial1/3 no ip address shutdown serial restartdelay 0 ! ! router ospf 100 routerid logadjacencychanges work area 0 ! router bgp 73 no synchronization bgp routerid bgp logneighborchanges neighbor remoteas 12 no autosummary ! ! ! ip server no ip secureserver ! ! ! ! ! controlplane ! ! ! ! ! ! ! ! ! alias exec a sh ip int brief alias exec b sh ip route alias exec c sh ip route rip alias exec d sh run ! line con 0 exectimeout 0 0 logging synchronous line aux 0 exectimeout 0 0 logging synchronous line vty 0 4 exectimeout 0 0 password cisco login ! ! end r4 2. 配置 QPPB r4(config)int lo100 r4(configif)ip add r4(config)router bgp 73 r4(configrouter) mask r1sh ip bgp BGP table version is 2, local router ID is Status codes: s suppressed, d damped, h history, * valid, best, i internal, r RIBfailure, S Stale Origin codes: i IGP, e EGP, ? inplete Network Next Hop Metric LocPrf Weight Path * r3(config)routemap fxh 設(shè)置一個團(tuán)隊屬性為 12: 17 r3(configroutemap)set munity 12:17 additive r3(configroutemap)router bgp 12 調(diào)用這個屬性 r3(configrouter)nei routemap fxh in r3clear ip bgp * 重新計算 bgp r3sh ip bgp munity 在 AS12 中就看到了團(tuán)體屬性 BGP table version is 2, local router ID is Status codes: s suppressed, d damped, h history, * valid, best, i internal, r RIBfailure, S Stale Origin codes: i IGP, e EGP, ? inplete Network Next Hop Metric LocPrf Weight Path * r3(config)router bgp 12 r3(configrouter)nei sendmunity r3clear ip bgp * r2sh ip bgp munity R2 在 AS12 中就可以收到這個團(tuán)體屬性了。 BGP table version is 6, local router ID is Status codes: s suppressed, d damped, h history, * valid, best, i internal, r RIBfailure, S Stale Origin codes: i IGP, e EGP, ? inplete Network Next Hop Metric LocPrf Weight Path * r2(config)ip munitylist 44 permit 786449 書寫一個團(tuán)體列表,作用是抓取這個團(tuán)體列表所標(biāo)示的 IP