lb route 相关的一些问题
==========================
查看系统平台和版本
> show hardware
Platform: NetScaler Virtual Appliance
Manufactured on: //
CPU: 3192MHZ
Host Id: 000c294ffa77
Serial no: HE2H81UJ47
Encoded serial no: 891e0000cb254307ee9a
Done
>
> show version
NetScaler NS12.: Build 56.20.nc, Date: Dec , ::
Done
>
进行 lb route 配置
虚拟服务器必须配置固定的IP地址和端口以及协议
协议: ANY IP地址: 0.0.0.0 端口: 0
LLB的负载均衡虚拟服务器的名字建议命名为: lb_vsrv_isp_llb_all lb_vsrv_isp_llb_ct lb_vsrv_isp_llb_cu lb_vsrv_isp_llb_cmcc lb_vsrv_isp_llb_edu
LLB的虚拟服务的名字建议命名为: svc_isp_ct svc_isp_cu svc_isp_cmcc svc_isp_edu
虚拟服务器支持的负载算法和会话保持算法
支持的负载算法: DESTINATIONIPHASH LEASTBANDWIDTH LEASTPACKETS LRTM ROUNDROBIN SOURCEIPHASH SRCIPDESTIPHASH
支持的会话保持算法: SOURCEIP SRCIPDESTIP DESTIP
> show ip
Ipaddress Traffic Domain Type Mode Arp Icmp Vserver State
--------- -------------- ---- ---- --- ---- ------- ------
) 192.168.11.15 NetScaler IP Active Enabled Enabled NA Enabled
) 192.168.10.45 SNIP Active Enabled Enabled NA Enabled
) 192.168.11.5 SNIP Active Enabled Enabled NA Enabled
Done
> show route
Network Netmask Gateway/OwnedIP State Traffic Domain Type
------- ------- --------------- ----- -------------- ----
) 0.0.0.0 0.0.0.0 192.168.10.1 UP STATIC
) 127.0.0.0 255.0.0.0 127.0.0.1 UP PERMANENT
) 192.168.10.0 255.255.255.0 192.168.10.45 UP DIRECT
) 192.168.11.0 255.255.255.0 192.168.11.15 UP DIRECT
Done
>
> enable ns mode usnip
Done
> add server srv_route1 9.9.9.9
Done
> add server srv_route2 192.168.30.1
Done
> add server srv_route3 192.168.10.1
Done
> add service svc_route1 srv_route1 any *
Done
> add service svc_route2 srv_route2 any *
Done
> add service svc_route3 srv_route3 any *
Done
> bind service svc_route1 -monitorName ping
Done
> bind service svc_route2 -monitorName ping
Done
> bind service svc_route3 -monitorName ping
Done
> show service -summary
---------------------------------------------------------------------------------------------
Name State IP Addr Port Protocol MaxClients MaxReqs
---------------------------------------------------------------------------------------------
svc_route1 UP srv_route1 * ANY
svc_route2 UP srv_route2 * ANY
svc_route3 UP srv_route3 * ANY
Done
>
> add monitor mon_tcp_llb TCP -destIP 114.114.114.114 -destPort -Transparent YES -LRTM DISABLED
Done
> add monitor mon_ping_llb PING -destIP 114.114.114.114 -Transparent YES -LRTM DISABLED
Done
> bind service svc_route1 -monitorName mon_tcp_llb
Done
> bind service svc_route2 -monitorName mon_tcp_llb
Done
> bind service svc_route3 -monitorName mon_tcp_llb
Done
> show service -summary
---------------------------------------------------------------------------------------------
Name State IP Addr Port Protocol MaxClients MaxReqs
---------------------------------------------------------------------------------------------
svc_route1 DOWN srv_route1 * ANY
svc_route2 DOWN srv_route2 * ANY
svc_route3 UP srv_route3 * ANY
Done
>
> add lb vserver lb_vsrv_isp1 ANY 0.0.0.0 -persistenceType DESTIP -lbMethod ROUNDROBIN
Done
> bind lb vserver lb_vsrv_isp1 svc_route1
Done
> add lb vserver lb_vsrv_isp2 ANY 0.0.0.0 -persistenceType DESTIP -lbMethod ROUNDROBIN
Done
> bind lb vserver lb_vsrv_isp2 svc_route2
Done
> add lb vserver lb_vsrv_isp3 ANY 0.0.0.0 -persistenceType DESTIP -lbMethod ROUNDROBIN
Done
> bind lb vserver lb_vsrv_isp3 svc_route3
Done>
问题1: 添加服务器的IP地址,不能为D类和E类的IPv4地址。
D类地址 前四位为1110,注意是位
1、不分网络地址和主机地址。
2、地址范围:224.0.0.1 --- 239.255.255.254
E类地址 前五位为11110,注意是位
1、不分网络地址和主机地址
2、地址范围:240.0.0.1 --- 255.255.255.254
> add server srv_route4 223.255.255.255
Done
> rm server srv_route4
Done
> add server srv_route4 224.0.0.0
ERROR: Operation not permitted
> add server srv_route4 224.0.0.1
ERROR: Operation not permitted
> add server srv_route4 239.255.255.254
ERROR: Operation not permitted
> add server srv_route4 239.255.255.255
ERROR: Operation not permitted
> add server srv_route4 240.0.0.0
ERROR: Operation not permitted
> add server srv_route4 240.0.0.1
ERROR: Operation not permitted
> add server srv_route4 255.255.255.254
ERROR: Operation not permitted
> add server srv_route4 255.255.255.255
ERROR: Operation not permitted
>
问题2: 添加路由项时,若网关与设备不在同一网段(简单理解即没有与之互通的SNIP),则操作失败,提示【ERROR: The gateway is not directly reachable】
> show ip
Ipaddress Traffic Domain Type Mode Arp Icmp Vserver State
--------- -------------- ---- ---- --- ---- ------- ------
) 192.168.11.15 NetScaler IP Active Enabled Enabled NA Enabled
) 192.168.10.45 SNIP Active Enabled Enabled NA Enabled
) 192.168.11.5 SNIP Active Enabled Enabled NA Enabled
Done
>
> show route
Network Netmask Gateway/OwnedIP State Traffic Domain Type
------- ------- --------------- ----- -------------- ----
) 0.0.0.0 0.0.0.0 192.168.10.1 UP STATIC
) 127.0.0.0 255.0.0.0 127.0.0.1 UP PERMANENT
) 192.168.10.0 255.255.255.0 192.168.10.45 UP DIRECT
) 192.168.11.0 255.255.255.0 192.168.11.15 UP DIRECT
Done
>
> add route 192.168.30.0 255.255.255.0 192.168.30.1
ERROR: The gateway is not directly reachable
>
问题3: 对于与设备不在同一网段的服务(简单理解即没有与之互通的SNIP),此服务绑定的透传类型(-Transparent YES)的健康检查监视器 mon_tcp_llb,健康检查失败,提示信息为【Failure - Internal error: resource unavailable to send probe.】
> show service svc_route1
svc_route1 (9.9.9.9:*) - ANY
State: DOWN
Last state change was at Thu Aug ::
Time since last state change: days, ::13.350
Server Name: srv_route1
Server ID : None Monitor Threshold :
Max Conn: Max Req: Max Bandwidth: kbits
Use Source IP: NO
Client Keepalive(CKA): NO
Access Down Service: NO
TCP Buffering(TCPB): NO
HTTP Compression(CMP): NO
Idle timeout: Client: sec Server: sec
Client IP: DISABLED
Cacheable: NO
SC: OFF
SP: OFF
Down state flush: ENABLED
Monitor Connection Close : NONE
Appflow logging: ENABLED
Process Local: DISABLED
Traffic Domain: ) Monitor Name: mon_tcp_llb
State: DOWN Weight: Passive:
Probes: Failed [Total: Current: ]
Last response: Failure - Internal error: resource unavailable to send probe.
Response Time: 0.0 millisec
) Monitor Name: ping
State: UP Weight: Passive:
Probes: Failed [Total: Current: ]
Last response: Success - ICMP echo reply received.
Response Time: 273.67 millisec
Done
> show service svc_route2
svc_route2 (192.168.30.1:*) - ANY
State: DOWN
Last state change was at Thu Aug ::
Time since last state change: days, ::13.220
Server Name: srv_route2
Server ID : None Monitor Threshold :
Max Conn: Max Req: Max Bandwidth: kbits
Use Source IP: NO
Client Keepalive(CKA): NO
Access Down Service: NO
TCP Buffering(TCPB): NO
HTTP Compression(CMP): NO
Idle timeout: Client: sec Server: sec
Client IP: DISABLED
Cacheable: NO
SC: OFF
SP: OFF
Down state flush: ENABLED
Monitor Connection Close : NONE
Appflow logging: ENABLED
Process Local: DISABLED
Traffic Domain: ) Monitor Name: mon_tcp_llb
State: DOWN Weight: Passive:
Probes: Failed [Total: Current: ]
Last response: Failure - Internal error: resource unavailable to send probe.
Response Time: 0.0 millisec
) Monitor Name: ping
State: UP Weight: Passive:
Probes: Failed [Total: Current: ]
Last response: Success - ICMP echo reply received.
Response Time: 0.344 millisec
Done
> show service svc_route3
svc_route3 (192.168.10.1:*) - ANY
State: UP
Last state change was at Thu Aug ::
Time since last state change: days, ::40.260
Server Name: srv_route3
Server ID : None Monitor Threshold :
Max Conn: Max Req: Max Bandwidth: kbits
Use Source IP: NO
Client Keepalive(CKA): NO
Access Down Service: NO
TCP Buffering(TCPB): NO
HTTP Compression(CMP): NO
Idle timeout: Client: sec Server: sec
Client IP: DISABLED
Cacheable: NO
SC: OFF
SP: OFF
Down state flush: ENABLED
Monitor Connection Close : NONE
Appflow logging: ENABLED
Process Local: DISABLED
Traffic Domain: ) Monitor Name: mon_tcp_llb
State: UP Weight: Passive:
Probes: Failed [Total: Current: ]
Last response: Success - TCP syn+ack received.
Response Time: 0.0 millisec
) Monitor Name: ping
State: UP Weight: Passive:
Probes: Failed [Total: Current: ]
Last response: Success - ICMP echo reply received.
Response Time: 0.157 millisec
Done
>
问题4: 对于与设备不在同一网段的服务(简单理解即没有与之互通的SNIP),绑定此服务的虚拟服务器,添加 lb route 使用此虚拟服务器作为网关,执行失败,报错提示【ERROR: Service parameters are invalid for LLB/PBR VIP】
> add lb route 223.255.252.0 255.255.254.0 lb_vsrv_isp1
ERROR: Service parameters are invalid for LLB/PBR VIP
>
> add lb route 223.223.192.0 255.255.240.0 lb_vsrv_isp2
ERROR: Service parameters are invalid for LLB/PBR VIP
>
> add lb route 223.120.0.0 255.248.0.0 lb_vsrv_isp3
Done
>
> show lb route
Network Netmask Traffic Domain VIP Flags
------- ------- -------------- --- -----
) 223.120.0.0 255.248.0.0 lb_vsrv_isp3 UP
Done
>
> show route
Network Netmask Gateway/OwnedIP State Traffic Domain Type
------- ------- --------------- ----- -------------- ----
) 0.0.0.0 0.0.0.0 192.168.10.1 UP STATIC
) 127.0.0.0 255.0.0.0 127.0.0.1 UP PERMANENT
) 192.168.10.0 255.255.255.0 192.168.10.45 UP DIRECT
) 192.168.11.0 255.255.255.0 192.168.11.15 UP DIRECT
) 223.120.0.0 255.248.0.0 lb_vsrv_isp3 UP |LBROUTE
Done
>
> show ip
Ipaddress Traffic Domain Type Mode Arp Icmp Vserver State
--------- -------------- ---- ---- --- ---- ------- ------
) 192.168.11.15 NetScaler IP Active Enabled Enabled NA Enabled
) 192.168.10.45 SNIP Active Enabled Enabled NA Enabled
) 192.168.11.5 SNIP Active Enabled Enabled NA Enabled
Done
>
============= End
lb route 相关的一些问题的更多相关文章
-
route 相关设置
Debian系统 查看路由表: root@debian:~# ip route default via 192.168.6.1 dev enp4s0 10.0.0.0/24 dev br0 proto ...
-
Route学习笔记之Area的Route注册
前一段时间接触了MVC的Area可以将模型.控制器和视图分成各个独立的节点.分区之后,区域路由注册的需求就出来了. 默认的 在MVC项目上右键添加区域之后,在文件夹下会自动添加一个FolderName ...
-
.NET/ASP.NET Routing路由(深入解析路由系统架构原理)
阅读目录: 1.开篇介绍 2.ASP.NET Routing 路由对象模型的位置 3.ASP.NET Routing 路由对象模型的入口 4.ASP.NET Routing 路由对象模型的内部结构 4 ...
-
《TCP/IP 详解 卷一》读书笔记-----Ping&;Traceroute
1.ping是用于测试对方主机是否可达的命令,其实本质上就是echo类型的ICMP报文.同时,ping还能用于计算RTT(round-trip time),即两台主机间的往返时延. 2.随着网络安全意 ...
-
网络配置和NFS和TFTP的配置
2015.1.20(今天是个开始) 整理考试试卷: 注:在做指针的题目的时候,要注意多个指针指向一个地址的情况,只要其中一个指针对这个地址中的值进行了修改,后面的指针 在对这个地址的内容进行引用的时候 ...
-
.NET/ASP.NET Routing路由(深入解析路由系统架构原理)http://wangqingpei557.blog.51cto.com/1009349/1312422
阅读目录: 1.开篇介绍 2.ASP.NET Routing 路由对象模型的位置 3.ASP.NET Routing 路由对象模型的入口 4.ASP.NET Routing 路由对象模型的内部结构 4 ...
-
NET/ASP.NET Routing路由(深入解析路由系统架构原理)(转载)
NET/ASP.NET Routing路由(深入解析路由系统架构原理) 阅读目录: 1.开篇介绍 2.ASP.NET Routing 路由对象模型的位置 3.ASP.NET Routing 路由对象模 ...
-
AngularJS和ReactJS对比
Angular的特点: 优势: AngularJS是一套完整的框架,angular有自带的数据绑定.render渲染.angularUI库,过滤器,$filter,$directive(模板),$se ...
-
一、ASP.NET Routing路由(深入解析路由系统架构原理)
阅读目录: 1.开篇介绍 2.ASP.NET Routing 路由对象模型的位置 3.ASP.NET Routing 路由对象模型的入口 4.ASP.NET Routing 路由对象模型的内部结构 4 ...
随机推荐
-
JS使用getComputedStyle()方法获取CSS属性值
在对网页进行调试的过程中,经常会用到js来获取元素的CSS样式,方法有很多很多,现在仅把我经常用的方法总结如下: 1. obj.style:这个方法只能JS只能获取写在html标签中的写在style属 ...
-
字符编码笔记:ASCII,Unicode和UTF-8(转载)
作者: 阮一峰 日期: 2007年10月28日 今天中午,我突然想搞清楚Unicode和UTF-8之间的关系,于是就开始在网上查资料. 结果,这个问题比我想象的复杂,从午饭后一直看到晚上9点,才算初步 ...
-
学好C++必须要注意的十八个问题
转自 http://blog.chinaunix.net/uid-7396260-id-2056691.html 一.#include "filename.h"和#i nclud ...
-
Entity Framework 学习初级篇1--EF基本概况
转自:http://www.cnblogs.com/Tally/archive/2012/09/14/2685011.html 最近在学习研究微软的EF,通过这时间的学习研究,感觉这个EF目前来说还不 ...
-
使用iScroll和photoswipe写手机浏览图片的插件的几点经验
首先,当我知道我得到一个任务需要写一个在手机上能浏览图片的插件时,我第一想到了iScroll.它的左右滑动,上下滑动的效果在安卓手机上也能让用户有良好的体验,自己写也能方便控制. 我的需求是,插件要能 ...
-
div+css 圆角加阴影
.test{ display: inline-block; padding: 5px 10px 6px; text-decoration: none; border-radius: 5px; -moz ...
-
ASP.NET MVC 学习之路-2
本文在于巩固基础 为了方便理解MVC框架,我们先创建空的ASP.NET MVC模板 下面是创建后的项目结构 每个文件或者文件夹的作用 App_Data 应用程序数据--- 顾名思义是放置文件或者数据库 ...
-
ajax提交File文件
<script type="text/javascript"> $(function() { $("input[name='image'] ...
-
论文速读(Jiaming Liu——【2019】Detecting Text in the Wild with Deep Character Embedding Network )
Jiaming Liu--[2019]Detecting Text in the Wild with Deep Character Embedding Network 论文 Jiaming Liu-- ...
-
SSH端口转发详解及实例-转载
作者:珂儿吖 出处:http://www.cnblogs.com/keerya/ 目录 1.1 SSH端口转发的两大功能 实验一:实现SSH端口转发——本地转发 实验二.实现SSH端口转发——远程转发 ...