Forum Discussion

Norman_Elton_13's avatar
Norman_Elton_13
Icon for Nimbostratus rankNimbostratus
Oct 11, 2013
Solved

Binary arithmetic on IP addresses

We are considering a network redesign that would move our users from public IP addressing (on large, flat networks) to private addressing (on smaller, per-building subnets). Any run-of-the-mill NAT f...
  • John_Alam_45640's avatar
    Oct 11, 2013

    Norman:

     

    iRUle can do a good bit of IP address comparison, take a look at this: https://devcentral.f5.com/wiki/iRules.IP__addr.ashx

     

    TCL, particularly the "binary scan" command can do a lot of manipulation, take a look at this: http://wiki.tcl.tk/4180 For examples look at this: http://wiki.tcl.tk/11766 and: http://www.opensource.apple.com/source/tcl/tcl-87/tcl_ext/tcllib/tcllib/modules/dns/ip.tcl