For this specific example of an OC-3 with 150 Mbps in the global pool and 45
Mbps in the subpool, the necessary configuration is as follows:
ip rsvp bandwidth 150000 sub-pool 45000
class-map match-all voice
match mpls experimental 5
policy-map llq
class voice
priority percent 30
interface POS3/0
service-policy output llq
tunnel mpls traffic-eng bandwidth sub-pool kbps
This is the same thing as the tunnel mpls traffic-eng bandwidth kbps command
that was covered earlier in this book, except that you are telling the headend to
do its path calculation and bandwidth reservation based on the advertised
subpool bandwidth.
You are allowed to have only one type of reservation per tunnel. If you try to
configure a tunnel with the command tunnel mpls traffic-eng bandwidth followed
by the command tunnel mpls traffic-eng bandwidth sub-pool, the sub-pool
command overwrites the global pool command.
__________________
H3 and H4 Can Be Reached Over Both TE Tunnels
源码:
On the CPE:
router bgp 100
neighbor 4.4.4.4 route-map setcom-voice out
route-map setcom-voice
match ip address 101
set community 1:1
access-list 101 permit ip host 1.1.1.1 host 255.255.255.255
On RouterG (the tunnel tail)
router bgp 100
neighbor 1.2.3.4 route-map set-nh in
route-map set-nh
match community 1
set ip next-hop 5.5.5.5
ip community-list 1 permit 1:1
On Routers A, B, C, and D
ip route 5.5.5.5 255.255.255.255 Tunnel1
#p#
R5:
router bgp 200
network 1.0.0.0
neighbor 192.168.3.1 remote-as 300
neighbor 192.168.3.1 route-map set_med_200 out
neighbor 192.168.4.1 remote-as 300
neighbor 192.168.4.1 route-map set_med_100 out
access-list 1 permit 1.0.0.0
route-map set_med_200 permit 10
match ip address 1
set metric 200
route-map set_med_100 permit 10
match ip address 1
set metric 100
默认情况下:
R4#s ip bgp
BGP table version is 6, local router ID is 192.168.3.1
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
* i1.0.0.0 192.168.1.1 150 100 0 100 i
* i 192.168.4.2 100 100 0 200 i
*> 192.168.3.2 200 0 200 i
*>i192.168.1.0 192.168.2.1 0 100 0 i
*>i192.168.4.0 192.168.5.1 0 100 0 i
R4(config-router)#bgp deterministic-med
R4#s ip bgp
BGP table version is 6, local router ID is 192.168.3.1
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
*>i1.0.0.0 192.168.1.1 150 100 0 100 i
* i 192.168.4.2 100 100 0 200 i
* 192.168.3.2 200 0 200 i
*>i192.168.1.0 192.168.2.1 0 100 0 i
*>i192.168.4.0 192.168.5.1 0 100 0 i
R4(config-router)#bgp always-compare-med
R4#s ip bgp
BGP table version is 6, local router ID is 192.168.3.1
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
* i1.0.0.0 192.168.1.1 150 100 0 100 i
*>i 192.168.4.2 100 100 0 200 i
* 192.168.3.2 200 0 200 i
*>i192.168.1.0 192.168.2.1 0 100 0 i
*>i192.168.4.0 192.168.5.1 0 100 0 i
R4#s ip bgp 1.0.0.0
BGP routing table entry for 1.0.0.0/8, version 6
Paths: (3 available, best #2, table Default-IP-Routing-Table)
Advertised to non peer-group peers:
192.168.3.2
100
192.168.1.1 (metric 5) from 192.168.2.1 (192.168.2.1)
Origin IGP, metric 150, localpref 100, valid, internal
200
192.168.4.2 (metric 10) from 192.168.5.1 (192.168.5.1)
Origin IGP, metric 100, localpref 100, valid, internal, best
200
192.168.3.2 from 192.168.3.2 (1.1.1.1)
Origin IGP, metric 200, localpref 100, valid, external

