Пока что вот что сделал:Топология:
http://s58.radikal.ru/i162/1012/0e/4ea670313937.jpg
Конфиг:
R2 - 1841
version 12.4
!
hostname R2
!
ip cef
!
!
!
interface FastEthernet0/0
description USERs
no ip address
no ip route-cache cef
no ip route-cache
duplex auto
speed auto
!
interface FastEthernet0/0.100
description User-1
encapsulation dot1Q 100
ip address 10.10.10.1 255.255.255.0
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no cdp enable
!
interface FastEthernet0/0.200
description User-2
encapsulation dot1Q 200
ip address 20.20.20.1 255.255.255.0
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no cdp enable
!
interface FastEthernet0/0.300
description User-3
encapsulation dot1Q 300
ip address 30.30.30.1 255.255.255.0
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no cdp enable
!
interface FastEthernet0/1
description Tag_port_1
no ip address
no ip route-cache cef
no ip route-cache
duplex auto
speed auto
!
interface FastEthernet0/1.10
description CH-1
encapsulation dot1Q 10
ip address 192.168.10.2 255.255.255.252
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
traffic-shape rate 256000 7936 7936 1000
no cdp enable
!
interface FastEthernet0/1.20
description CH-2
encapsulation dot1Q 20
ip address 192.168.20.2 255.255.255.252
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
traffic-shape rate 256000 7936 7936 1000
no cdp enable
!
interface FastEthernet0/1.30
description CH-3
encapsulation dot1Q 30
ip address 192.168.30.2 255.255.255.252
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
traffic-shape rate 256000 7936 7936 1000
no cdp enable
!
router bgp 100
no synchronization
bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 10.10.10.0 mask 255.255.255.0
network 20.20.20.0 mask 255.255.255.0
network 30.30.30.0 mask 255.255.255.0
neighbor 192.168.10.1 remote-as 100
neighbor 192.168.10.1 route-map CH-1 out
neighbor 192.168.20.1 remote-as 100
neighbor 192.168.20.1 route-map CH-2 out
neighbor 192.168.30.1 remote-as 100
neighbor 192.168.30.1 prefix-list deny-default in
neighbor 192.168.30.1 route-map CH-3 out
maximum-paths ibgp 3
no auto-summary
!
ip route 10.10.10.0 255.255.255.0 Null0 250
ip route 20.20.20.0 255.255.255.0 Null0 250
ip route 30.30.30.0 255.255.255.0 Null0 250
!
!
ip http server
!
!
ip prefix-list deny-default seq 5 deny 0.0.0.0/32
access-list 10 permit 10.10.10.0 0.0.0.255
access-list 10 deny any
access-list 11 permit 20.20.20.0 0.0.0.255
access-list 11 permit 30.30.30.0 0.0.0.255
access-list 11 deny any
access-list 20 permit 20.20.20.0 0.0.0.255
access-list 20 deny any
access-list 22 permit 10.10.10.0 0.0.0.255
access-list 22 permit 30.30.30.0 0.0.0.255
access-list 22 deny any
access-list 30 permit 30.30.30.0 0.0.0.255
access-list 30 deny any
access-list 33 permit 20.20.20.0 0.0.0.255
access-list 33 permit 10.10.10.0 0.0.0.255
access-list 33 deny any
route-map CH-2 permit 10
match ip address 20
set local-preference 150
!
route-map CH-2 permit 20
match ip address 22
set local-preference 100
!
route-map CH-3 permit 10
match ip address 30
set local-preference 150
!
route-map CH-3 permit 20
match ip address 33
set local-preference 100
!
route-map CH-1 permit 10
match ip address 10
set local-preference 150
!
route-map CH-1 permit 20
match ip address 11
set local-preference 100
!
------------------------
R1 в моей схеме - маршрутизатор провайдера, который настраивается самостоятельно.
Но вот такой у меня был стенд:
R1-1841
version 12.4
!
hostname R1
!
ip cef
!
!
interface FastEthernet0/0
description INET
no ip address
no ip route-cache cef
no ip route-cache
duplex auto
speed auto
!
interface FastEthernet0/0.11
description Inet_1
encapsulation dot1Q 11
ip address 11.11.11.1 255.255.255.0
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no cdp enable
!
interface FastEthernet0/0.12
description Inet_2
encapsulation dot1Q 12
ip address 22.22.22.1 255.255.255.0
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no cdp enable
!
interface FastEthernet0/0.13
description Inet_3
encapsulation dot1Q 13
ip address 33.33.33.1 255.255.255.0
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no cdp enable
!
interface FastEthernet0/1
description Tag_port_1
no ip address
no ip route-cache cef
no ip route-cache
duplex auto
speed auto
!
interface FastEthernet0/1.10
description CH-1
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.252
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
traffic-shape rate 256000 7936 7936 1000
no cdp enable
!
interface FastEthernet0/1.20
description CH-2
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.252
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
traffic-shape rate 256000 7936 7936 1000
no cdp enable
!
interface FastEthernet0/1.30
description CH-3
encapsulation dot1Q 30
ip address 192.168.30.1 255.255.255.252
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
traffic-shape rate 256000 7936 7936 1000
no cdp enable
!
router bgp 100
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
neighbor 192.168.10.2 remote-as 100
neighbor 192.168.10.2 timers 20 30
neighbor 192.168.10.2 default-originate
neighbor 192.168.20.2 remote-as 100
neighbor 192.168.20.2 timers 20 30
neighbor 192.168.20.2 default-originate
neighbor 192.168.30.2 remote-as 100
neighbor 192.168.30.2 timers 20 30
neighbor 192.168.30.2 default-originate
no auto-summary
!
ip route 11.11.11.0 255.255.255.0 Null0 250
ip route 22.22.22.0 255.255.255.0 Null0 250
ip route 33.33.33.0 255.255.255.0 Null0 250
!
!
(минимальные настройки)
------------------------------------------
И вот что получилось(когда все в порядке).
Сеть 10.10.10.0/24 - анонсируется на VL 10
Сеть 20.20.20.0/24 - анонсируется на VL 20
Сеть 30.30.30.0/24 - анонсируется на VL 20
У провайдера будет такое(на R1):
R1#sh ip bgp
BGP table version is 4, 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
* i10.10.10.0/24 192.168.30.2 0 100 0 i
* i 192.168.20.2 0 100 0 i
*>i 192.168.10.2 0 150 0 i
* i20.20.20.0/24 192.168.30.2 0 100 0 i
*>i 192.168.20.2 0 150 0 i
* i 192.168.10.2 0 100 0 i
*>i30.30.30.0/24 192.168.30.2 0 150 0 i
* i 192.168.20.2 0 100 0 i
* i 192.168.10.2 0 100 0 i
Default разрешаю с 2х аплинков: VL 10 и VL 20
И вижу у меня на R2:
R2#sh ip ro
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 192.168.20.1 to network 0.0.0.0
.........
B* 0.0.0.0/0 [200/0] via 192.168.20.1, 00:14:23
[200/0] via 192.168.10.1, 00:14:23
Обратка в моей схеме довольно большая, как и прямой трафик. Поэтому так и реализовано. На мониторинге загрузка обратных каналов CH-1 и CH-2 почти равномерная. Прямые каналы для каждой сети - свои.
При падении одного из канала - сеть живущая за ним перескакивает на соседа.
Как бы это то, что я и хотел. Может кому-то пригодится, выкладываю топологию и конфиг.