Добрый день.
Продолжаю мучить динамические протоколы маршрутизации.)
Прошу помочь в реализации, грамотности топологии и рациональности схемы.Дано:
- 2 роутера R1 и R2 связаны друг с другом 3 линками.
Задача:
- прокидывать по xconnect L2 клиентов с балансировкой по каналам
- управление ходит по BGP
------------------------------------
Собрал такое:
http://s003.radikal.ru/i201/1012/3e/339ce3d81772.jpg
Для быстрой сходимости выбрал протокол EIGRP. Роутеры R1 и R2 сделал в одной EIGRP AS.
BGP AS у них разные (это в будущем при масштабируемости, чтоб не создавать роутер-рефлекторы и для предотвращения зацикливания маршрутов)
Поверх EIGRP запустил BGP.
Loopback'и для XCONNECT обозначил по BGP
Вот что получилось:
R1:
----
R1#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 not set
B 200.200.200.0/24 [20/0] via 20.20.20.20, 00:13:14
100.0.0.0/24 is subnetted, 1 subnets
C 100.100.100.0 is directly connected, FastEthernet0/1.100
192.168.30.0/30 is subnetted, 1 subnets
C 192.168.30.0 is directly connected, FastEthernet0/1.30
20.0.0.0/32 is subnetted, 1 subnets
D 20.20.20.20 [90/156160] via 192.168.30.2, 00:15:32, FastEthernet0/1.30
[90/156160] via 192.168.20.2, 00:15:32, FastEthernet0/1.20
[90/156160] via 192.168.10.2, 00:15:32, FastEthernet0/1.10
192.168.10.0/30 is subnetted, 1 subnets
C 192.168.10.0 is directly connected, FastEthernet0/1.10
22.0.0.0/32 is subnetted, 1 subnets
B 22.22.22.22 [20/0] via 20.20.20.20, 00:15:22
192.168.20.0/30 is subnetted, 1 subnets
C 192.168.20.0 is directly connected, FastEthernet0/1.20
10.0.0.0/32 is subnetted, 1 subnets
C 10.10.10.10 is directly connected, Loopback10
11.0.0.0/32 is subnetted, 1 subnets
C 11.11.11.11 is directly connected, Loopback11
R1#
-----------------------
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 not set
C 200.200.200.0/24 is directly connected, FastEthernet0/1.200
100.0.0.0/24 is subnetted, 1 subnets
B 100.100.100.0 [20/0] via 10.10.10.10, 00:15:02
192.168.30.0/30 is subnetted, 1 subnets
C 192.168.30.0 is directly connected, FastEthernet0/1.30
20.0.0.0/32 is subnetted, 1 subnets
C 20.20.20.20 is directly connected, Loopback20
192.168.10.0/30 is subnetted, 1 subnets
C 192.168.10.0 is directly connected, FastEthernet0/1.10
22.0.0.0/32 is subnetted, 1 subnets
C 22.22.22.22 is directly connected, Loopback22
192.168.20.0/30 is subnetted, 1 subnets
C 192.168.20.0 is directly connected, FastEthernet0/1.20
10.0.0.0/32 is subnetted, 1 subnets
D 10.10.10.10 [90/156160] via 192.168.30.1, 00:16:50, FastEthernet0/1.30
[90/156160] via 192.168.20.1, 00:16:50, FastEthernet0/1.20
[90/156160] via 192.168.10.1, 00:16:50, FastEthernet0/1.10
11.0.0.0/32 is subnetted, 1 subnets
B 11.11.11.11 [20/0] via 10.10.10.10, 00:16:09
R2#
--------------------------
XCONNECT поднялись:
R2#sh l2tun ses
%No active L2F tunnels
L2TP Session Information Total tunnels 1 sessions 2
LocID RemID TunID Username, Intf/ State Last Chg Uniq ID
Vcid, Circuit
64591 40567 33368 111, Fa0/0.111:111 est 00:37:08 3
64592 40568 33368 112, Fa0/0.112:112 est 00:37:08 4
%No active PPTP tunnels
R2#
Компы сервера пингуют, все ок.
Но вот прямой канал все таки делят пополам( (т.е. ходят по какому-то одному линку)
С ip load-sharing per pecket не хочу связываться. Оно работает, я собирал, но из-за большого объема трафика не могу позволить себе такое по процессору.
Каналы у меня равнозначные.
Важен вопрос сходимости для XCONNECT'ов, чтоб простоя у юзеров не было.
Указал:
router eigrp 100
variance 3
Как грамотно балансируется именно трафик. Сети при BGP можно раскидать, а у меня по 1 Loopback'у на цыску для Xconnect'ов.
Может что забыл?
-------------------------------------------------------------------
Конфиги:
R1
---
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip cef
!
!
!
!
l2tp-class Eigrp_signal
hello 10
cookie size 8
!
!
pseudowire-class wire_Eigrp
encapsulation l2tpv3
protocol l2tpv3 Eigrp_signal
ip local interface Loopback11
ip tos reflect
!
!
!
interface Loopback10
ip address 10.10.10.10 255.255.255.255
!
interface Loopback11
ip address 11.11.11.11 255.255.255.255
!
interface FastEthernet0/0
description Users
no ip address
no ip route-cache cef
no ip route-cache
duplex auto
speed auto
!
interface FastEthernet0/0.1
description dead VLAN 1
encapsulation dot1Q 1 native
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no ip mroute-cache
shutdown
no cdp enable
!
interface FastEthernet0/0.111
description PD_User_1
encapsulation dot1Q 111
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no ip mroute-cache
no cdp enable
xconnect 22.22.22.22 111 encapsulation l2tpv3 pw-class wire_Eigrp
!
interface FastEthernet0/0.112
description PD_User_2
encapsulation dot1Q 112
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no ip mroute-cache
no cdp enable
xconnect 22.22.22.22 112 encapsulation l2tpv3 pw-class wire_Eigrp
!
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.1
description dead VLAN 1
encapsulation dot1Q 1 native
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no ip mroute-cache
shutdown
no cdp enable
!
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
!
interface FastEthernet0/1.100
description UPO_R1
encapsulation dot1Q 100
ip address 100.100.100.100 255.255.255.0
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no cdp enable
!
router eigrp 100
variance 3
network 10.10.10.10 0.0.0.0
network 192.168.10.0 0.0.0.3
network 192.168.20.0 0.0.0.3
network 192.168.30.0 0.0.0.3
no auto-summary
!
router bgp 100
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 11.11.11.11 mask 255.255.255.255
network 100.100.100.0 mask 255.255.255.0
neighbor 20.20.20.20 remote-as 200
neighbor 20.20.20.20 ebgp-multihop 2
neighbor 20.20.20.20 update-source Loopback10
maximum-paths 3
no auto-summary
!
!
R2:
----
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip cef
!
!
!
!
l2tp-class Eigrp_signal
hello 10
cookie size 8
!
!
pseudowire-class wire_Eigrp
encapsulation l2tpv3
protocol l2tpv3 Eigrp_signal
ip local interface Loopback22
ip tos reflect
!
!
!
interface Loopback20
ip address 20.20.20.20 255.255.255.255
!
interface Loopback22
ip address 22.22.22.22 255.255.255.255
!
interface FastEthernet0/0
description Users
no ip address
no ip route-cache cef
no ip route-cache
duplex auto
speed auto
!
interface FastEthernet0/0.1
description dead VLAN 1
encapsulation dot1Q 1 native
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no ip mroute-cache
shutdown
no cdp enable
!
interface FastEthernet0/0.111
description PD_User_1
encapsulation dot1Q 111
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no ip mroute-cache
no cdp enable
xconnect 11.11.11.11 111 encapsulation l2tpv3 pw-class wire_Eigrp
!
interface FastEthernet0/0.112
description PD_User_2
encapsulation dot1Q 112
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no ip mroute-cache
no cdp enable
xconnect 11.11.11.11 112 encapsulation l2tpv3 pw-class wire_Eigrp
!
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.1
description dead VLAN 1
encapsulation dot1Q 1 native
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no ip mroute-cache
shutdown
no cdp enable
!
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
no cdp enable
!
interface FastEthernet0/1.200
description UPO_R2
encapsulation dot1Q 200
ip address 200.200.200.200 255.255.255.0
no ip redirects
no ip unreachables
no ip proxy-arp
no ip route-cache
no cdp enable
!
router eigrp 100
variance 3
network 20.20.20.20 0.0.0.0
network 192.168.10.0 0.0.0.3
network 192.168.20.0 0.0.0.3
network 192.168.30.0 0.0.0.3
no auto-summary
!
router bgp 200
no synchronization
bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 22.22.22.22 mask 255.255.255.255
network 200.200.200.0 mask 255.255.255.255
neighbor 10.10.10.10 remote-as 100
neighbor 10.10.10.10 ebgp-multihop 2
neighbor 10.10.10.10 update-source Loopback20
maximum-paths 3
no auto-summary
!
!
На сети 200.200.200.0 /24 и 100.100.100.0 /24 не обращайте внимания. Это управление. Для него не требуется балансировка.