ASA/PIX: Load balancing between two ISP - options

VERSION 7 
  • Is it possible to load balance between two ISP links?
  • Does the ASA support PBR (Policy Based Routing)?
  • Does the ASA support secondary IP address on interfaces?
  • What other options do we have?
    • SLA Route Tracking
    • PBR on the router outside the firewall
    • Allowing outbound via ISP1 and inbound via ISP2
    • Allowing internet access via ISP1 and L2L *** via ISP2
    • Multiple context mode

Is it possible to load balance between two ISP links?

Presently it is not possible to load balance traffic between two ISP links on an ASA. The reason being, there can only be one default route configured on the ASA.

Does the ASA support PBR (Policy Based Routing)?

No, the ASA does not support PBR.

Does the ASA support secondary IP address on interfaces?

No, the ASA does not support secondary IP address on interfaces.  This is not to be confused with the standby IP address configured on the interfaces for failover configuration.

What other options do we have?

SLA Route Tracking

With this method we can configure both the ISP links on the ASA and use the primary ISP for all outgoing traffic and then the secondary ISP, if the primary fails. Failure of the primary ISP causes a temporary disruption of traffic. Use this configuration for redundancy or backup purposes only.

Refer this link: http://www.cisco.com/en/US/products/hw/***devc/ps2030/products_configuration_example09186a00806e880b.shtml

PBR on the router outside the firewall

With this method we can configure both the ISP links on the router outside the firewall.  We can translate some traffic to use Primary ISP provided IP address and the rest of the traffic to use Secondary ISP provided IP address.  Now, based on this source address that hits the router, we can configure the router to do policy based routing and route the traffic either via the Primary ISP or via the Secondary ISP.

Let us assume the requirement as below:

1. We would like all the users traffic translated to the ISP1 provided address

2. We would like all the servers traffic translated to the ISP2 provided address

3. The router should look at the translated addresses and based on the address it should set the next hop address and route the traffic via the appropriate  ISP.

ISP1 provided address block is 10.10.10.0/24 and ISP2 provided address block is 172.18.124.0/24. These are not routable addresses. For simplicity reasons we are using RFC 1918 address space.

ASA config:

Translation for all users to take ISP 1
nat (inside) 1 192.168.2.0 255.255.255.0
global (outside) 1 10.10.10.1

Translation for web and e-mail servers to take ISP2
static (inside,outside) 172.18.124.20 192.168.2.20 netmask 255.255.255.255
static (inside,outside) 172.18.124.30 192.168.2.30 netmask 255.255.255.255

route outside 0 0 172.16.12.2

Router config:

ip access-list ext isp1-addr

permit ip 10.10.10.0 0.0.0.255 any

ip access-list ext ips2-addr

permit ip 172.18.124.0 0.0.0.255 any

route-map ISP permit 10

match ip address isp1-addr

set ip next-hop 10.10.10.2

route-map ISP permit 20

match ip address isp2-addr

set ip next-hop 172.18.124.2

int f0/0

ip address 172.16.12.2 255.255.255.0

ip policy route-map ISP in

Allowing outbound via ISP1 and inbound via ISP2

Let us take the same example above. We can use one ISP1 for all outbound connections and use IPS2 for all inbound connections.

Translation for all outbound connections from users and servers to take ISP 1
nat (inside) 1 192.168.2.0 255.255.255.0
global (ISP1) 1 10.10.10.1

route ISP1 0 0 10.10.10.254

Here are the translations for inbound connections to the servers:

Translation for web and e-mail servers to take ISP2
static (inside,ISP2) 172.18.124.20 192.168.2.20 netmask 255.255.255.255
static (inside,ISP2) 172.18.124.30 192.168.2.30 netmask 255.255.255.255

In the previous case even the out bound connections made by the servers would take the ISP2 path but, in this example outbound connections from the web and e-mail servers will take ISP1. ONLY the INBOUND connections will come through ISP2 and will be responded back using ISP2.

Allowing internet access via ISP1 and L2L *** via ISP2

The above example can also be used to allow internet access outbound and inbound via ISP1 with the default route pointing to ISP1 and ××× site to site tunnels can be terminated on the ISP2 interface by configuring specific routes to reach peer networks via IPS2.

Multiple context mode

The last option is to use multiple context mode where we can load balance on a per context basis.  ××× is not supported in this mode and so are dynamic routing protocols.  Please refer this link for the limitations: http://www.cisco.com/en/US/docs/security/asa/asa82/configuration/guide/contexts.html#wp1146747

Context-1 could use ISP1 link and Context-2 could use ISP2 link.

link:

https://supportforums.cisco.com/docs/DOC-13015

转载于:https://blog.51cto.com/steve/620485

ASA/PIX: Load balancing between two ISP - options相关推荐

  1. 科普|什么是负载均衡(Load balancing)

    点击上方"方志朋",选择"设为星标" 回复"666"获取新整理的面试文章 作者 | Enter 来源 | cnblogs.com/kingr ...

  2. 负载均衡(Load Balancing)学习笔记(二)

    概述 文章负载均衡(Load Balancing)学习笔记(一) 讲述了负载均衡的一般性原理,本文继续介绍常见的实现负载均衡的方法. HTTP重定向 HTTP重定向服务器是一台普通的Web服务器,用户 ...

  3. 网页加载出现没有合适的负载均衡器_终于讲清楚了,什么是负载均衡(Load balancing)...

    什么是负载均衡(Load balancing) 在网站创立初期,我们一般都使用单台机器对台提供集中式服务,但随着业务量越来越大,无论性能还是稳定性上都有了更大的挑战.这时候我们就会想到通过扩容的方式来 ...

  4. nginx tcp代理_nginx——TCP/UDP Load Balancing

    nginx––– tcp and udp 代理 Introduction nginx 反向代理一般都是7层代理,进行http/https 协议层的转发:说起4层代理,一般想到的都是lvs 和 hapr ...

  5. Nginx(四):负载均衡Load balancing

    1.概念基础 Load balancing,即负载均衡,是一种计算机技术,用来在多个计算机(计算机集群).网络连接.CPU.磁盘驱动器或其他资源中分配负载,以达到最优化资源使用.最大化吞吐率.最小化响 ...

  6. UVA 12904 Load Balancing 暴力

    Load Balancing Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://acm.hust.edu.cn/vjudge/contest/vi ...

  7. 网络负载平衡(Network Load Balancing)的工作原理

    NLB算法的特点: 在NLB群集中,每台服务器都会有一个属于自己的静态IP地址,同时NLB群集中的所有服务器还有一个共同的IP地址-NLB群集地址: 当客户向NLB群集(NLB的虚拟IP地址)发起请求 ...

  8. PLB: Congestion Signals are Simple and Effective for Network Load Balancing读后思考

    这周我读的论文是PLB: Congestion Signals are Simple and Effective for Network Load Balancing.这篇论文是谷歌提出的一个建立在传 ...

  9. BZOJ4411 - [Usaco2016 Feb]Load balancing

    Portal Description 给出平面上的\(n(n\leq10^5)\)个整点.画两条直线\(x=x_0\)和\(y=y_0\)将这些点划分成\(s_1,s_2,s_3,s_4\)个点,最小 ...

最新文章

  1. 选择大于努力?某程序员吐槽:自己毕业去了百度,技术不如自己的室友去了快手,如今股票1500万!...
  2. InteWidgetTookit现有三个控件的使用方法
  3. ionic app调试问题
  4. java 性能 优化_Java十大简单性能优化
  5. 【CSU - 1004】Xi and Bo(并查集,裸题)
  6. SonarQube 8.4 发布,分析时间最多可减少 80%
  7. 小米手机不弹出usb连接设置_安卓手机数据备份教程(华为、小米、oppo、vivo)...
  8. SPSS统计指南【SPSS 003期】
  9. java线上编译器菜鸟_[Java教程]菜鸟成长记
  10. 计算机应用基础教程学什么,[电脑基础知识]计算机应用基础教程学习.ppt
  11. 一文学懂经典算法系列之:直接选择排序(附讲解视频)
  12. 深度学习结合SLAM的研究思路/成果整理之(二)语义SLAM 端到端
  13. 关于“应用程序正常初始化(0xc0150002)失败”问题的解决方案
  14. 科学研究设计三:抽样
  15. Ubuntu20.04安装NVIDIA显卡驱动、CUDA、CUDNN及突破NVENC并发限制
  16. Dynamic Topic Models的Python实现
  17. Centos系统各种日志存详解
  18. 8139网卡刷MAC
  19. STM32利用定时器1控制LED闪烁
  20. google支付简略流程

热门文章

  1. object references an unsaved transient instance - save the transient instance before flushing .
  2. Django之ORM操作
  3. rpm升级时spec文件执行的流程
  4. [BZOJ1222/Luogu2224][HNOI2001]产品加工
  5. Linux查看版本当前操作系统内核信息
  6. 在基于nuxt的移动端页面中引用mint UI的popup组件之父子组件传值
  7. Beta阶段发布说明
  8. linux 监控命令
  9. 关于在vue项目中使用wangEditor
  10. PHP7新增的主要特性