lb route 相关的一些问题
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 ...
随机推荐
- 基于ejabberd简单实现xmpp群聊离线消息
首先,xmpp服务器是基于ejabberd.离线消息模块是mod_interact,原地址地址:https://github.com/adamvduke/mod_interact: 修改后实现群聊离线 ...
- T-SQL语句基础
连接服务器 - 去哪个仓库找目标数据库 - 找仓库中的目标区域查找目标表 - 找货柜找数据(以行为基础单位) - 在货柜上找到目标的物品 基础T-Sql语句1.SQL语句的注释 2.创建数据库crea ...
- DDD实战成绩管理---用户故事
本次DDD实践选取我们都熟悉的高校成绩管理作为例子. (一).需求描述 每学期学校教务处老师会进行教学安排,具体就是建立教学班,指定该教学班代课教师,上课学生,然后进行排课(忽略此部分,这是另一个系统 ...
- php开发文章发布示例(正则表达式实例开发)
存档: post.php <form method="post" action="viewthread.php" target="_blank& ...
- js显示对象所有属性和方法的函数
function ShowObjProperty2( obj ) { // 用来保存所有的属性名称和值 var attributes = '' ; var methods = '' // 开始遍历 f ...
- Qt-QMl-自定义自己想要的TabView
上效果图 上实现源码,这里的代码都是来自Qt官方源码修改其中某一行内容 /* 作者:张建伟 时间:2018年4月8日 简述:自定义TabView,主要实现Tab和实现内容重叠,不在占用独立空间 该文件 ...
- Linux☞如何修改文件权限
修改文件/目录的权限:chmod 规则 文件/目录名 规则: 角色:u 自己人 user g 同组人 group o 其他人 other a 所有人 all 操作: + - 权限 ...
- Power Designer逆向工程导入Oracle表,转为模型加注释
1.打开PowerDesigner ——文件——Reverse Engineer——DataBase 2.选择所要连接数据库版本,此处使用的是oracle version 11g. 3.点击红色区域, ...
- Bin Packing 装箱问题——NPH问题的暴力枚举 状压DP
题目: 给定n(1≤n≤24)个物品,重量分别为wi,装进一些容量为S(S<1e8)的背包,最少需要多少个背包?
- .NET 4.0 Tuple 元组
Tuple是.NET 4.0的新特性,主要功能是动态返回数据结构,也可以用做临时数据结构. 原来做一些功能时需要一个方法返回几个值,有两种方法: 1. 非常难看.难用的OUT参数: 2. 新写一个实体 ...