-as : Admin Status -at : Aging Time [sec] -dm : Dispatch Method -cm : Connectivity Check Method -cp : Connectivity Check Port -ci : Connectivity Check Interval [sec] -cr : Connectivity Check Retries -ct : Capacity Threshold -rm : Redirection Mode -ef : Extended Check Frequency -hp : Home Page -sm : Sessions Mode -df : DNS Redirection Fallback -hm : HTTP Redirection Mode -bl : Bandwidth Limit -un : Authorized Username -pw : Authorized Password
appdirector farm table create VSDP -as Enabled -dm Cyclic -cm \-cp 80 -sm EntryPerSession
appdirector farm table create IVRP -as Enabled -dm Cyclic -cm \-cp 80 -sm EntryPerSession
appdirector farm table create RBT -as Enabled -dm Cyclic -cm \-cp 80 -sm EntryPerSession
3.2 NAT配置
appdirector nat client status set enable 全局打开Client NAT
appdirector
nat
client
range-to-nat
create
192.168.255.1
–t
192.168.255.63
定义需要实施Client NAT的用户地址范围,这里是本网段,外网用户不需要做NAT
主设备: appdirector
nat
client
address-range
create
192.168.255.50
-t
192.168.255.50
定义NAT需要使用的地址,这个地址的数目不能大于在全局NAT表中的条目(2)。 备设备: appdirector
address-range配置与address-range是相关联的,在Farm配置中,只需要配置address-range地址,range-to-nat是不可见的。
3.3 使用了Client NAT后的Farm附加配置
指定某个Farm需要做Client NAT,并指明使用哪个NAT地址来做地址翻译。 如果不需要Client NAT,此项不必配置。 主设备:
appdirector farm extended-params set VSDP -nr 192.168.255.50 appdirector farm extended-params set IVR -nr 192.168.255.50 appdirector farm extended-params set RBT -nr 192.168.255.50 备设备:
appdirector farm extended-params set VSDP -nr 192.168.255.51 appdirector farm extended-params set IVR -nr 192.168.255.51 appdirector farm extended-params set RBT -nr 192.168.255.51
3.4 服务器配置
appdirector farm server table
AppDirector-OA#appdirector farm server table help appdirector farm server table help:
nat
client
address-range
create
192.168.255.51
-t
192.168.255.51
set
create/add
help <-switch> Switches:
-sn : Server Name -w : Weight -om : Operation Mode -st : Type -cl : Connection Limit -as : Admin Status -bl : Bandwidth Limit -rt : Redirect To -cn : Client NAT -sd : Server Description -rs : Response Threshold [ms] -ba : Backup Server Address -pm : Backup Preemption -nr : Client NAT Address Range
在Radware AppDirector配置中,服务器是与Farm绑定在一起的,在WEB与CLI中,不能单独定义一个没有Farm的Server。同一个Server在不同的Farm中,可以使用相同的Server Name。
appdirector farm server table create VSDP 192.168.255.7 0 -sn vsdp-1 -cn Enabled
appdirector farm server table create VSDP 192.168.255.8 0 -sn vsdp-2 -cn Enabled
appdirector farm server table create IVR 192.168.255.13 0 -sn ivr-1 -cn Enabled
appdirector farm server table create IVR 192.168.255.14 0 -sn ivr-2 -cn Enabled
appdirector farm server table create RBT 192.168.255.41 0 -sn rbt-1 -cn Enabled
appdirector farm server table create RBT 192.168.255.42 0 -sn rbt-2 -cn Enabled
3.5 L4 Policy (以前的SuperFarm)配置
Farm需要通过VIP对外提供服务,并且根据服务端口来区分Farm,必须配置L4 Policy。此例中只介绍了L4的L4 Policy。
AppDirector-OA#appdirector l4-policy table help
appdirector l4-policy table help:
destroy/del
create/add
-ipt : Source IP To -po : L7 Policy -fn : Farm Name -ta : Application -bp : Backend Encryption Port -dr : Bytes of Request to Read -rs : Redundancy Status -pc : POST Classification Input -nr : HTTP Normalization -pm : L7 Persistent Switching Mode -sn : Segment Name
set
-efn : Explicit Farm Name 主设备:
appdirector l4-policy table create 192.168.255.52 TCP 80 0.0.0.0 P-VSDP -fn VSDP
appdirector l4-policy table create 192.168.255.53 TCP 80 0.0.0.0 P-IVR -fn IVR
appdirector l4-policy table create 192.168.255.54 TCP 80 0.0.0.0 P-RBT -fn RBT 备设备:
appdirector l4-policy table create 192.168.255.52 TCP 80 0.0.0.0 P-VSDP -fn VSDP -rs Backup
appdirector l4-policy table create 192.168.255.53 TCP 80 0.0.0.0 P-IVR -fn IVR -rs Backup
appdirector l4-policy table create 192.168.255.54 TCP 80 0.0.0.0 P-RBT -fn RBT -rs Backup
做冗余时,备机上记得将加上-rs Backup,如第二条的配置。系统默认是主用模式。
4 VRRP 配置(双机备份时需要配置)
4.1 Vrrp全局配置 redundancy mode set VRRP
redundancy interface-group set enable (主机上使用,备机不用) redundancy backup-fake-arp set disable redundancy backup-in-vlan set disable
4.2 VR配置 主设备:
redundancy vrrp virtual-routers create 1 10 -as down -p 200
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库RadWare AppDirector CLI配置(2)在线全文阅读。
相关推荐: