Here is a basic configuration I did for Optimized Edge Routing using static routes. OER is supported on 12.3T, and is a huge technology that seems to fill volumes at cisco.com, but I wanted to boil it down to basics, I was researching more on this for a pre-sales effort and wanted to share. This configuration has been tested in an actual environment, so what you see below is a working config. What it does is actively learn routes, by watching where people are going. My config aggregates these to the /26, and installs 1000 prefixes max. So if it saw someone hit 200.200.200.1 and then someone hit 200.200.200.5, it would just install 200.200.200.0/26. 100 prefixes is just for safety, basically with router memory and cpu you can go as high as 2500. You can do a lot with this, you can have it “learn” routes like mine does below, or you can have it work off the bgp table……..*a lot* of tie-in’s to BGP, but my config below is sans BGP.
It’s a basic config with Three ISP’s, the Master Controller and Border Router are one in the same in this config, although you can have a dedicated Master Controller and 10 or so Border Routers if you like. You have to have at least 2 external interfaces for a valid config, but these don’t have to reside on the same border router, they can be separate border routers. The below is using DSL connections brought directly into the router via PPPoA, so there are dialer interfaces as well.
The keywords below make it uses delay and throughput as metrics in the best path calculation. Also the “max-range-utilization percent 10” tell it to keep both links within 10 percent of each other from a utilization perspective. OER is actually inserting routes into your router, in this case /26’s, to trump your default. My below config will insert up to 1000 /26’s. Its possible your NAT flow gets built over ISP #1, and then OER inserts a /26 that hijacks your flow and sends it out ISP #2. This is why the “oer” keyword is on the NAT “ip nat inside source” line, it tells the router that any existing flows continue to use its original exit path.
There is PAT going on to allow servers to still work, those are policy routed over the Dialer1 interface as thats where their static IP’s came from. Also notice the loopback1 interface which is for local policy routing so I can manage this router remotely. You must account for local policy routing if you wish to do anything remote with a router set up like this (telnet, snmp, etc).
Some of the best info on this technology is:
Command Reference (you can look up the commands/parameters I chose for the below config)
http://www.cisco.com/en/US/docs/ios/oer/command/reference/oer_book.html
Configuration Guide
http://www.cisco.com/en/US/docs/ios/oer/configuration/guide/oer-vpn_gre_exit_ps6441_TSD_Products_Configuration_Guide_Chapter.html
Other things you can do is base your route decision not off just prefix, but flow (src, dst, src port, dst port, protocol), and you can also use “active” mode and tie it into IP SLA so you can have voice traffic automatically utilizing the lowest jitter path, or lowest latency path. And you can do all this with or without BGP and other routing protocols, it really can “learn” and do a lot of this dynamically.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 |
boot system flash:c2800nm-spservicesk9-mz.124-19.bin boot-end-marker ! enable secret 5 xxxxxxxxxxxxxxxxxxxxxxxxx ! no aaa new-model ! ! ip cef no ip dhcp use vrf connected ip dhcp excluded-address 192.168.1.254 ip dhcp excluded-address 192.168.1.0 192.168.1.149 ! ip dhcp pool pool1 network 192.168.1.0 255.255.255.0 default-router 192.168.1.254 dns-server 205.152.144.23 205.152.132.23 ! ! ! voice-card 0` no dspfarm ! ! ! --- Master Controller Config Begins --- key chain key1 key 1 key-string 7 13080E190E15 ! ! ! ! ! ! ! ! ! ! ! oer master max-range-utilization percent 10 keepalive 1 logging ! border 10.10.10.1 key-chain key1 interface Dialer3 external interface Dialer2 external interface Dialer1 external interface GigabitEthernet0/0 internal ! learn throughput delay periodic-interval 5 monitor-period 1 prefixes 1000 aggregation-type prefix-length 26 mode route control mode monitor passive mode select-exit best ! --- Master Controller Config Begins --- ! --- Border Router Config Begins --- oer border logging local Loopback0 master 10.10.10.1 key-chain key1 ! --- Border Router Config Begins --- ! ! username admin secret xxxxxxxxxxxxxxxxxxxxxxxxxxx username test password xxxxxxxxxxxxxxxxxxxxxxxxxx ! ! ! ! ! interface Loopback0 description OER interface ip address 10.10.10.1 255.255.255.0 ! interface Loopback1 description Used for Router Management ip address 72.155.61.161 255.255.255.255 ! interface GigabitEthernet0/0 description To LAN ip address 192.168.1.254 255.255.255.0 ip nat inside ip policy route-map server duplex auto speed auto ! interface GigabitEthernet0/1 no ip address shutdown duplex auto speed auto ! interface ATM0/0/0 no ip address no atm ilmi-keepalive bundle-enable dsl operating-mode auto pvc 8/35 encapsulation aal5mux ppp dialer dialer pool-member 1 ! ! interface ATM0/1/0 no ip address no atm ilmi-keepalive bundle-enable dsl operating-mode auto pvc 8/35 encapsulation aal5mux ppp dialer dialer pool-member 2 ! ! interface ATM0/2/0 no ip address no atm ilmi-keepalive bundle-enable dsl operating-mode auto pvc 8/35 encapsulation aal5mux ppp dialer dialer pool-member 3 ! ! interface Dialer1 description 752-4493 bandwidth 3000 ip address negotiated ip nat outside encapsulation ppp dialer pool 1 no fair-queue no cdp enable ppp authentication chap callin ppp chap hostname xxxxxxxxxxx@bellsouth.net ppp chap password 7 xxxxxxxxxxxxxxxxx ppp pap sent-username xxxxxxxxxxxxxxxxxxx@bellsouth.net password 7 xxxxxxxxxxxxxxxxxxx ! interface Dialer2 description 752-1805 bandwidth 3000 ip address negotiated ip nat outside encapsulation ppp dialer pool 2 no fair-queue no cdp enable ppp authentication chap callin ppp chap hostname yyyyyyyyyyyy@bellsouth.net ppp chap password 7 yyyyyyyyyyyyyyy ppp pap sent-username yyyyyyyyyyyyyyy@bellsouth.net password 7 yyyyyyyyyyyyyyyyyyyyy ! interface Dialer3 description 752-8340 bandwidth 3000 ip address negotiated ip nat outside encapsulation ppp dialer pool 3 no fair-queue no cdp enable ppp authentication chap callin ppp chap hostname zzzzzzzzzzzzzzzzz@bellsouth.net ppp chap password 7 zzzzzzzzzzzzzzzzzz ppp pap sent-username zzzzzzzzzzzzzzzzz@bellsouth.net password 7 zzzzzzzzzzzzzzzzzzzzzz ! ip local policy route-map local ip forward-protocol nd ip route 0.0.0.0 0.0.0.0 Dialer3 ip route 0.0.0.0 0.0.0.0 Dialer2 ip route 0.0.0.0 0.0.0.0 Dialer1 ! ! no ip http server no ip http secure-server ip nat pool server 72.155.61.164 70.155.61.164 netmask 255.255.255.248 ip nat inside source list servers-only pool server overload ip nat inside source route-map isp1nat interface Dialer1 overload oer ip nat inside source route-map isp2nat interface Dialer2 overload oer ip nat inside source route-map isp3nat interface Dialer3 overload oer ip nat inside source static tcp 192.168.1.99 20 72.155.61.164 20 extendable ip nat inside source static tcp 192.168.1.99 21 72.155.61.164 21 extendable ip nat inside source static tcp 192.168.1.16 80 72.155.61.164 80 extendable ip nat inside source static tcp 192.168.1.101 1723 72.155.61.164 1723 extendable ip nat inside source static tcp 192.168.1.99 3389 72.155.61.164 3389 extendable ! ip access-list standard no-servers deny 192.168.1.99 deny 192.168.1.101 deny 192.168.1.16 permit 192.168.1.0 0.0.0.255 ip access-list standard router-mgmt permit 72.155.61.161 permit 128.32.0.68 72.155.61.161 ip access-list standard servers-only permit 192.168.1.99 permit 192.168.1.101 permit 192.168.1.16 ! route-map server permit 10 description Static mapped servers must use Dialer1 match ip address servers-only set interface Dialer1 ! route-map isp1nat permit 10 match ip address no-servers match interface Dialer1 ! route-map isp3nat permit 10 match ip address no-servers match interface Dialer3 ! route-map isp2nat permit 10 match ip address no-servers match interface Dialer2 ! route-map local permit 10 description Router Management must use Dialer1 match ip address router-mgmt set interface Dialer1 ! ! ! ! control-plane ! ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 login local ! scheduler allocate 20000 1000 ! end |