How to calculate the mask with joker to ACL

Dear,

I know it may seem a question very bacis, but frankly I've searched the net, books & asked many friends and no one could help you.

I want to create one or two access list to hit the following ip prefix.

192.168.2.0

192.168.6.0

192.168.11.0

192.168.15.0

192.168.18.0

may well want to explain to me in binary computing.

concerning

I think your question is asking questions about the means to have a single line in the list ACL correspond to more than one address, so that with one or two lines of ACL you could match to these 5 addresses. The way to start is to understand what these addresses have in common. they all 192.168 in the first two bytes and 0 in the last byte. So the third byte is the place where there is no variation. We must therefore start with the value of the third byte in binary:

2 is 00000010

6 is 00000110

11 is 00001011

15 is 00001111

18 is 00010010

If you examine the binary and see what numbers have many BITS in common that we see that 2 and 6 have in common the 7 of the 8 bits and could be grouped. We see that the 11 and 15 have in common the 7 of the 8 bits and could be combined.

Then the Group 2 and six that we want a mask which says that bit positions 1, 2, 3, 4, 5, 7 and 8 must match and bit position 6 does not. The mask with 0 to 1, 2, 3, 4, 5, 7 and 8 is 00000100 (4 in decimal). The Group 11 and 15, we also have bits 1, 2, 3, 4, 5, 7 and 8 to match while we would use this mask still 00000100.

There is not a way to combine 18 very well with the other addresses. So an ACL have 3 statements to match these 5 addresses.

permit 192.168.2.0 0.0.4.0

permit 192.168.11.0 0.0.4.0

Allow 192.168.18.0 0.0.0.0

HTH

Rick

Tags: Cisco Security

Similar Questions

  • How to calculate the days with 2 Date/time fields

    Hello
    I tried to create a workflow to update a numeric field with the following formula, however, I get an error message "value too long for the field 'ZNum_0' (maximum size 16) (SBL-DAT-00235). Can I know what is the problem with my calculation?

    dtCloseDate - dtAssignDate

    Thank you

    Hi, your formula is correct.

    You could be facing this problem because it will assess the value in decimal and result has no set limit for the decimal point. As digital field accept only 16 characters, the problem is occure.

    You must truncate the result with a defined decimal.

    Hope this will help you
    Dinesh

  • HP12C Platinum: How to calculate the EMI with a grace period?

    I'm figuring the tranche of loan compared to a loan with a grace period.  This can be done easily using MS Excel, but I need to do the calculation using my HP12CP.

    Details of the loan:

    Main: 1 million

    Interest rates. : 12% p.a.

    Tenor: 36 months

    Period: 3 months

    Payment frequency: monthly

    Loan annuity calculated with Excel: Q1 - zero; 4th in the 36th month: 36 810 /-per month

    Hello MilanH

    Perhaps this allows, if you train in two steps:

    1)

    n = 3 grace period

    IR/a=12%

    PV = 1 million

    FMT = 0.00

    FV =-1030301.00 (-because you have to pay it back)

    2)

    n = 33

    IR/a = 12%

    PV = 1030301.00

    VF = 0.00

    FMT = 36810.01 (-because you have to pay)

    I have no 12 c, but if this kind of loan is not built in, you can manage this way.

  • How to add the mask into effect reference is Options for Composition with after effects CC 2014?

    The main reason why I'm updating my After Effects with cc 2014 is "composition for each effect options, including the ability to limit the area affected by each of the effects with masks". This useful feature really simplify my work. But now I realize that I want to use the script function.

    I get Composition Options the effect name and matchName.It looks like this:

    NameNameNameNamepropertyValueTypeRemove
    Composition optionsundefinedADBE effect built in Params
    MasksundefinedEffect ADBE Mask Parade
    Reference mask 1undefinedADBE effect mask
    Reference mask 1MASK_INDEXFlow path ADBE effect Ref
    Opacity of the effectOneDADBE mask opacity

    I try to use .canAddProperty ("ADBE effect mask") and .canAddProperty ("ADBE Path flow Ref effect"). However, it returns false.

    I found that add or delete this property in the user interface are the buttons '+' and '-', so maybe I can use app.executeCommand (app.findMenuCommandId (theCommand)); However, I can't find that button name because it does not have a helpTips to remind me of the name.

    So how do you add the mask with script reference? Or ESTK has no permissions to access this useful property so far? I have not found anything on the Internet.

    Moreover, I have an another two quick questions:

    1. If there is more than two masks in a layer, remove for each mask is the same ("ADBE Mask Parade") ("ADBE Mask Atom"). How can I use the Remove to get the second mask such as the name property? First I treat like a table, but ("ADBE Mask Parade") ("ADBE Mask Atom') [index] actually did not work, so that ("ADBE Mask Parade") (" ADBE Mask Atom'") (index) is referring to the child property altogether in the first mask. I have no idea about it.

    2. when I use the method property() with script, property ('effect'), and property("effect") are all the two ok. The only difference in the method is the single quotes ' and the Quotation brands "." I just want to know if the "and" have any difference in the method property (), except that "this color is blue" and "this color is purple" in ESTK.

    The advice and the answer would be appreciated.

    Yes you can add masks to the effects by script.

    If "fx" is a fx on a layer:

    var fx.compositingOption = co;                                  or fx.property ("ADBE effect Built In Params')

    var fxMasks = co.mask;                                            or co.property ("ADBE mask Parade"): INDEXED_GROUP j

    fxMasks.canAddproperty ("ADBE effect mask");    true

    var fxMask = fxMasks.addproperty ("" ADBE effect mask");

    fxMask.maskReference.setValue (1);                        or fxMask.property ("ADBE effect way Brook Ref") .setValue (1);

    If you can do short

    fx.compositingOption.mask.addProperty("ADBE Effect Mask").maskReference.setValue(1);
    

    Xavier.

  • calculate the mask color

    Hello

    How to calculate the color mask image with the dominant color of the input image?

    Thank you

    So, you use the "dominant" colour as a threshold for segmentation.

  • How to calculate the polynomial graphic adjustment of waveform

    Hi all

    I am new to lab - view so would need a little assistance in one of the problem I have right now.

    My problem is: how to calculate the polynomial graph of waveform data adjustment? I need to convert the waveform to XY graph data, and then use the polynomial vi made integrated to calculate the fitting?

    Detail: My problem is that I have waveform graph, I calculate the vertices and the Valley, but because of the noise, my peaks and Valley detection is sometimes not exact, so to smooth the chart that I must apply the polynomial fit.

    If anyone can help me in this, I'll be very grateful.

    Thanks in advance

    Hi Omar,.

    have you seen the suggestion of Lynn above?

    You already have the values of Y (your table). Now, you need build the table of X as indicated, only to replace the value of dt with your spacing from point to point. Somewhere in your code, you know that the value that you have an x-axis indicated in milliseconds...

  • How to calculate the sum of two digital form fields based on the selection of the checkbox.

    I have a form in Acrobat Pro who needs a custom calculation. How to calculate the sum of two digital form fields based on a selection of the checkbox. I have three number fields. Field-A and B are simple one or two digits. Field-C is the sum, or the total field. I want to field-C have a control box which, when turned on and off, just gives a. gives the sum of A + B

    _ Field - 2

    _ Field - A 4

    [check] _ _ field - 6 C

    [disabled] _ _ field - 2 C

    Thank you

    The custom field C calculation script could be:

    (function () {
    
        // Get the values of the text fields, as numbers
        var v1 = +getField("A").value;
        var v2 = +getField("B").value;
    
        // Set this field's value based on the state of the check box named "CB"
        if (getField("CB").value !== "Off") {
            event.value = v1 + v2;
        } else {
            event.value = v1;
        }
    
    })();
    

    Replace 'A', 'B', and 'CB' with the real names of the fields.

  • How Illustrator calculates the height of box Em?

    I am trying to determine how Illustrator calculates the basic position of the top of the a Point text object bounding box.  She seems to be the same distance as an object of text box with the game setting of first base to box Em height line.  I just do not know what assets within the scope of the police which matches.  Help of the Illustrator defines it as:

    "The top of the box em in Asian fonts touches the top of the type object. This option is available regardless of the preference show Asian Options. »

    For some fonts, this distance seems to be near the pole of the police, but this is not true for each font.  The clues how Illustrator calculates it?

    metric-example.png

    Here you go

    var idoc = app.activeDocument;
    var itext = idoc.selection[0];
    
    var top = itext.position[1];
    var base = itext.anchor[1];
    
    alert('Em? size: ' + (top-base));
    
  • How to calculate the size of a VMFS volume?

    Creating a new partitiontable after ESXi 4 wiped empty was pretty easy with fdisk.
    These days with partedUtil and ESXi 5 is not so trivial.

    Consider that we have a disk/Lun, which looks like this

    ~ # partedUtil get /vmfs/devices/disks/mpx.vmhba1:C0:T4:L0
    93990 255 63 1509949440

    and suggests that the original - now messed the Volume was created with ESXi 5.
    How to calculate the value of the end in the sector so that I can recreate the VMFS partition like this:

    partedUtil setptbl ' / vmfs/devices/disks/mpx.vmhba1:C0:T4:L0 ' TPG '1-2048 ? '. AA31E02A400F11DB9590000C2911D1B8 0 "


    In this case, the correct value is 1509949349, but how do I calculate if I don't know the correct value?

    Hello

    the output of the command "partedUtil get /vmfs/devices/disks/mpx.vmhba1:C0:T4:L0" will be useful in your case, it's "93990 255 63 1509949440".

    gives us the values for C/H/S (cylinder/head/sector).

    A VMFS volume partition must end on the limit of a cylinder, so selecting the last sector of the partition table should be done using the formula endSector = (C * H * S - 1).

    who is '1509949440-1' = 1509949349.

    Concerning

    (Ref: http://www.virtuallyghetto.com/2011/07/how-to-format-and-create-vmfs-volume.html)

  • How to calculate the number of days/weeks/months between 2 dates?

    Hello

    I would like to know how to calculate the number of days/weeks/months between 2 dates in OBIEE 11 g, for example, I have 26/05/2013 and 19/05/2013, then I want to get 7 days.

    Thank you!
    Jamie

    Hi Jamie,

    Through this links...

    http://www.bravesoft.com/blog/?p=682
    http://twobiee.blogspot.in/2012/01/working-with-date-differences.html

    Mark as correct it allows u...
    Thank you...

  • How to calculate the month on month growth rates in an OBIEE application?

    Hi all

    I would like to ask for your help on how to calculate the months on growth rate previous/[(last month-previous month) month * 100%] in a query OBIEE. This report should always be calculated for the last 2 months available.

    I have the following query:
    Month0 | Months1. Month2
    Produces a 500 | 100. 200
    Product B 600 | 300. 150

    I would like to add month on month column as follows:
    Month0 | Months1. Month2. Month on Month (%)
    Produces a 500 | 100. 200 | + 100.00%
    Product B 600 | 300. 150. -50.00%

    I tried to add a calculated item, but it failed because I couldn't find a way to not show the column calculated in percent with 2 decimal places. In addition, I would ideally prefer to have an automatic update but as far as I understand it can be done in the automatically calculated item

    I also tried to add a new column to the column area and to filter the results for the last month, then for the previous month and then based on that to calculate the necessary ratio but unfortunately it does not work.

    Thank you in advance your advice

    Hello

    The best way to solve this problem is by using the function Ago. With this, you can create a logical column for the previous month. Then you will have 2 columns available with which you can do your calculations.

    If you want to do this with a calculated item (don't know if formatting will work for you), but you can do the more general calculation using $1 for the $2 for the 2 column and 1 column in your calculation. If ($x) columns will change with the columns in your report.

    Concerning

  • How to calculate the number of Out_flags for the PIPL?

    Hey everybody!

    I'm kinda new to After Effects of programming, so I hope I'm not asking an obvious question.

    I searched the web and this forum but just could not find a solution to this problem.

    Compilation of my plugin works fine, but as soon as I select it from the menu effects I am presented with an incompatibility error.

    My question (already in the title): how to calculate the correct number for the global_out_flags pipl?

    Thanks in advance,

    Markus

    If you want the easiest option, just start with the debugger and to break in the General preferences where is defined, or, if you find amusement in the bit and other Boolean arithmetic shift, please do not hesitate to look at the macro

  • How to use the import with FDM with adapter ERPI script?

    Hello

    I use FDM and ERPI 11.1.2 to load data of EBS R12 to planning 11.1.2

    Loaded from eBS data for a YEAR.

    I realized I could use an import script to manually calculate the amount with the periodic_net_cr and periodic_net_dr fields.

    But how to use this import script? Because in my import in FDM format, I do not use a file but directly the adapter, if no field "Expression".

    Thanks in advance for your help

    Fanny

    You must use the ImportAction script.

  • How to calculate the second and minisecond for audio landmark

    I'm doing a sound synchronization for the clip audio and video in Flash. I found a tutorial on the web, and it seems to work. However, I do not know how to calculate the second and the mini (deuxieme from mp3 file. The first frame has the following lines to set the duration for each animation:
    Import class
    Import net.quip.sound.SoundSync;

    Stop the main timeline
    Stop();

    Create an instance of SoundSync
    var ss:SoundSync = new SoundSync();

    ss.addCuePoint ("IT", 20100);
    ss.addCuePoint ("admin", 20000);
    ss.addCuePoint ("maintenance", 19800);
    ss.addCuePoint ("treatment", 16479);
    ss.addCuePoint ("engineering", 14598);
    as.addCuePoint ("logo_epa_npdes", 12356);
    ss.addCuePoint ("construction", 8967);
    ss.addCuePoint ("370 mg/j", 7896);
    ss.addCuePoint ("mc_650, 000 ', 5439);
    ss.addCuePoint ("130 mg/j", 3254);
    ss.addCuePoint ("1938", 2439);
    ss.addCuePoint ("vintage_mc", 0);

    Use the instance of loading external MP3
    ss.loadSound ("Scn04 - 05.mp3", true);

    Create a listener object for the
    cuePoint and onSoundComplete events
    var listener: Object = new Object();
    listener.cuePoint = function (): Void {}
    Play();
    }
    listener.onSoundComplete = function (): Void {}
    Play();
    }
    ss.addEventListener ("cuePoint", listener);
    ss.addEventListener ("onSoundComplete", listener);

    and the soundsync.as file as follows:
    Import mx.events.EventDispatcher;
    Import mx.utils.Delegate;
    class net.quip.sound.SoundSync extends its {}
    PROPERTIES
    private var _cuePoints:Array;
    private var _currentCuePoint:Number;
    private var _interval:Number;
    private var _intervalDuration:Number;
    private var _secondOffset:Number;
    Event dispatcher
    public var dispatchEvent:Function;
    public var addEventListener:Function;
    private var removeEventListener:Function;
    CONSTRUCTOR
    public void SoundSync(target:MovieClip) {}
    Super (target);
    init();
    }
    METHODS
    private function init (): Void {}
    Initialize properties
    _cuePoints = new Array();
    _currentCuePoint = 0;
    _intervalDuration = 200;
    _secondOffset = 0;
    Initialize the instance of the class as the valid event broadcaster
    EventDispatcher.initialize (this);
    }
    Add Cue Point
    public void addCuePoint(cuePointName:String,_cuePointTime:Number):Void {}
    () _cuePoints.push
    {
    type: "cuePoint",.
    name: cuePointName,.
    time: cuePointTime,.
    target: this
    }
    );
    _cuePoints.sortOn ("time", Array.NUMERIC);
    }
    Get cue point
    public void getCuePoint(nameOrTime:Object):Object {}
    var counter: Number = 0;
    While (counter < _cuePoints.length) {}
    If (typeof (nameOrTime) == 'string') {}
    If (_cuePoints [meter] .name == nameOrTime) {}
    return _cuePoints [counter];
    }
    } Else if (typeof (nameOrTime) == 'number') {}
    If (_cuePoints [meter] .time == nameOrTime) {}
    return _cuePoints [counter];
    }
    }
    counter ++;
    }
    Returns a null value.
    }
    Get the Index of the current Cue Point
    private void getCurrentCuePointIndex(cuePoint:Object):Number {}
    var counter: Number = 0;
    While (counter < _cuePoints.length) {}
    If (_cuePoints [meter] .name == cuePoint.name) {}
    return the meter;
    }
    counter ++;
    }
    Returns a null value.
    }
    Get the next Cue Point index
    private void getNextCuePointIndex(seconds:Number):Number {}
    seconds (seconds) =? seconds: 0;
    var counter: Number = 0;
    While (counter < _cuePoints.length) {}
    If (_cuePoints [meter] .time > = seconds * 1000) {}
    return the meter;
    }
    counter ++;
    }
    Returns a null value.
    }
    Benchmark deleted
    public void removeCuePoint(cuePoint:Object):Void {}
    _cuePoints.splice (getCurrentCuePointIndex (cuePoint), 1);
    }
    Remove all Cue Points
    public function removeAll_cuePoints (): Void {}
    _cuePoints = new Array();
    }
    Beginning
    public void start(secondOffset:Number,_loops:Number):Void {}
    Super.Start (secondOffset, loops);
    dispatchEvent ({type: "onStart", target: this});
    Reset benchmark
    _secondOffset = secondOffset;
    _currentCuePoint = getNextCuePointIndex (secondOffset);
    Poll for cue points
    clearInterval (_interval);
    _interval = setInterval (Delegate.create (this, pollCuePoints), _intervalDuration);
    }
    Load sound
    public void loadSound(url:String,_isStreaming:Boolean):Void {}
    super.loadSound (url, isStreaming);
    clearInterval (_interval);
    _interval = setInterval (Delegate.create (this, pollCuePoints), _intervalDuration);
    }
    Stop
    public void stop(linkageID:String):Void {}
    If {(linkageID)
    Super.Stop (linkageID);
    } else {}
    Super.Stop ();
    }
    dispatchEvent ({type: "onStop", target: this});
    Kill the ballot
    clearInterval (_interval);
    }
    Survey benchmarks
    private function pollCuePoints (): Void {}
    If the current position is close to the cue point.
    var time: Number = _cuePoints [_currentCuePoint] .time;
    var span: Number = (_cuePoints [_currentCuePoint + 1] .time)? _cuePoints [_currentCuePoint + 1] .time: time + _intervalDuration * 2;
    If (position > = time & & position < = span) {}
    Send event
    dispatchEvent (_cuePoints [_currentCuePoint]);
    Advance to the next landmark...
    If (_currentCuePoint < _cuePoints.length) {}
    _currentCuePoint ++;
    } else {}
    _currentCuePoint = getNextCuePointIndex (_secondOffset);
    }
    }
    }
    EVENT HANDLERS
    onSoundComplete
    public function onSoundComplete (): Void {}
    Kill the ballot
    clearInterval (_interval);
    Reset benchmark
    _currentCuePoint = 0;
    Send event
    dispatchEvent ({type: "onSoundComplete", target: this});
    }
    }

    any help will be greatly appreciated.

    Wuzhishan,

    > Hi Dave, your tutorial is very cute and it is very useful.

    Thank you! My daughter is cute. She inherited all of
    me, so I have not left. ;)

    > I'm sorry that I don't have my question clearly.

    No worries. :)

    > I have listen mp3 in Windows Media Player and try to
    > get both for the tail, I found it on the bottom of the
    > player time indicates 00:26.

    I'm with you.

    > How can I writer this number in the code? Is it 0026 or 26?

    The code expects milliseconds, then 26 seconds would be written as
    this:

    26000

    If he said 01:22 (one minute and 22 seconds), you must write it like this:

    82000

    ... which is 60 seconds for now, 22 seconds
    side, then multiplied by 1,000 to get milliseconds.

    David Stiller
    Adobe Community Expert
    Dev blog, http://www.quip.net/blog/
    "Luck is the residue of good design."

  • How to play the song with .wma extension

    How to play the song with .wma extension

    If it does not DRM, use VLC. If so, no Mac OS X software can play or convert.

    (142864)

Maybe you are looking for