Cisco маршрутизатор и 2 провайдера [2]

Cisco
Нашей задачей будет заставить работать 2 внешних интерфейса одновременно с балансировкой нагрузки и с использованием только статических маршрутов. Про BGP мы не договаривались :)
Пример нашел на импортном форуме, на боевой cisco пока не проверял, у меня свои заморочки. Нужно еще часть статики запускать только по одному каналу.

version 12.4  
service timestamps debug datetime localtime  
service timestamps log datetime localtime  
service password-encryption  
!  
!  
resource policy  
!  
ip subnet-zero  
!  
!  
!  
!  
ip cef  
vpdn enable  
!  
!  
clns routing  
!  
!  
!  
key chain cisco0  
 key 1  
  key-string 7 *******  
!  
!  
!  
!  
!  
!  
!  
!  
!  
!  
!  
!  
oer master  
 policy-rules OER  
 max-range-utilization percent 10  
 keepalive 1  
 !  
 border 192.168.20.1 key-chain cisco0  
  interface FastEthernet0/0.21 internal  
  interface FastEthernet0/0.22 internal  
  interface Ethernet1/0 external  
  interface Ethernet1/1 external  
 !  
 learn  
  throughput  
  delay  
  periodic-interval 1  
  monitor-period 2  
  prefixes 200  
  expire after time 1  
  aggregation-type prefix-length 32  
 max prefix total 2500  
 backoff 180 360  
 mode route control  
 mode select-exit best  
 periodic 180  
 resolve loss priority 1 variance 1  
 resolve delay priority 2 variance 1  
 resolve utilization priority 3 variance 1  
 resolve range priority 5  
!  
oer border  
 local Loopback0  
 active-probe address source interface Ethernet1/0  
 master 192.168.20.1 key-chain cisco0  
!  
!  
!  
!  
!  
!  
!  
bba-group pppoe global  
!  
!  
interface Loopback0  
 description OER Master Controller  
 ip address 192.168.20.1 255.255.255.255  
!  
interface FastEthernet0/0  
 description To L2 Switch port 15  
 no ip address  
 duplex auto  
 speed auto  
!  
interface FastEthernet0/0.1  
 description Native VLAN Trunking  
 encapsulation dot1Q 1 native  
 ip address 192.168.205.1 255.255.255.248  
!  
interface FastEthernet0/0.21  
 description To Switch A port 10  
 encapsulation dot1Q 21  
 ip address 192.168.21.1 255.255.255.252  
 ip nat inside  
 ip virtual-reassembly  
!  
interface FastEthernet0/0.22  
 description To Switch B port 2  
 encapsulation dot1Q 22  
 ip address 192.168.22.1 255.255.255.252  
 ip nat inside  
 ip virtual-reassembly  
!  
!  
interface Ethernet1/0  
 description To NAT box of ISP #1  
 ip address 172.16.0.2 255.255.255.252  
 full-duplex  
!  
interface Ethernet1/1  
 description To NAT box of ISP #2  
 ip address 172.16.0.6 255.255.255.252  
 ip virtual-reassembly  
 full-duplex  
!  
interface Ethernet1/2  
 no ip address  
 shutdown  
 half-duplex  
!  
interface Ethernet1/3  
 no ip address  
 shutdown  
 half-duplex  
!  
!  
!  
!  
ip classless  
ip route 0.0.0.0 0.0.0.0 172.16.0.1  
ip route 0.0.0.0 0.0.0.0 172.16.0.5  
!  
!  
no ip http server  
no ip http secure-server  
!  
ip prefix-list OER seq 10 permit 0.0.0.0/0  
!  
access-list 20 remark Approved IP addresses  
access-list 20 permit 10.0.0.0 0.255.255.255  
access-list 20 permit 172.16.0.0 0.15.255.255  
access-list 20 permit 192.168.0.0 0.0.255.255  
dialer-list 2 protocol ip permit  
no cdp run  
!  
!  
!  
oer-map OER 10  
 match ip address prefix-list OER  
!  
control-plane  
!  
!  
!  
line con 0  
line aux 0  
line vty 0 4  
 access-class 20 in  
 password 7 ******  
 login  
!  
!  
end

0 комментариев

Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.