Forum Discussion
statmp_87631
Dec 19, 2011Nimbostratus
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
- statmp_87631Nimbostratusvery strange, this format will work fine:
- JRahmAdminwhat version are you on? That doesn't look right at all. BTW, the comparison should be last for the most efficient operation, though in your case, it doesn't appear to be working. Here's an article I wrote on the various methods for comparing IP addresses:
- statmp_87631Nimbostratusmy version: BIGIP-10.2.1.297.0.iso
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects