Forum Discussion

statmp_87631's avatar
statmp_87631
Icon for Nimbostratus rankNimbostratus
Dec 19, 2011

iRules with subnet failed.

Hi,I met a problem with iRules recently, below is our iRules:

 

 

 

if { [IP::addr [IP::remote_addr] equals 221.177.152.0/26] } {

 

 

 

pool CMNET }

 

 

 

else { pool CMWAP_ OTHER }}

 

 

 

if the DNS query client with IP address 221.177.152.33 send a DNS message, f5 will answer with pool CMWAP_OTHER.

 

 

 

 

 

and if we change the iRules to below, the answer will be correct with pool CMNET.

 

if { [IP::addr [IP::remote_addr] equals 221.177.152.33/32] } {

 

pool CMNET }

 

else {

 

pool CMWAP_ OTHER

 

}

 

}

 

 

 

so , what's the difference between a host and a subnet int iRules?

 

thanks