33 lines
875 B
Text
33 lines
875 B
Text
|
!
|
||
|
int r1-eth0
|
||
|
ip address 192.168.1.1/24
|
||
|
!
|
||
|
router bgp 65000
|
||
|
no bgp ebgp-requires-policy
|
||
|
no bgp network import-check
|
||
|
neighbor 192.168.1.2 remote-as internal
|
||
|
neighbor 192.168.1.2 timers 1 3
|
||
|
neighbor 192.168.1.2 timers connect 1
|
||
|
neighbor 192.168.1.2 extended-link-bandwidth
|
||
|
address-family ipv4 unicast
|
||
|
network 10.10.10.40/32
|
||
|
network 10.10.10.100/32
|
||
|
network 10.10.10.200/32
|
||
|
neighbor 192.168.1.2 route-map r2 out
|
||
|
exit-address-family
|
||
|
!
|
||
|
ip prefix-list p40 seq 5 permit 10.10.10.40/32
|
||
|
ip prefix-list p100 seq 5 permit 10.10.10.100/32
|
||
|
ip prefix-list p200 seq 5 permit 10.10.10.200/32
|
||
|
!
|
||
|
route-map r2 permit 10
|
||
|
match ip address prefix-list p40
|
||
|
set extcommunity bandwidth 40000
|
||
|
route-map r2 permit 20
|
||
|
match ip address prefix-list p100
|
||
|
set extcommunity bandwidth 100000
|
||
|
route-map r2 permit 30
|
||
|
match ip address prefix-list p200
|
||
|
set extcommunity bandwidth 200000
|
||
|
exit
|