exact match on IOS include

Discussion in 'Cisco' started by Marco Giuliani, Feb 15, 2012.

  1. Hi,

    I have a named acl like this....

    ip access-list standard test-in
    permit host 192.168.1.1
    permit host 192.168.1.2
    permit host 192.168.1.3
    permit host 192.168.1.25
    permit host 192.168.1.26
    end

    and I would like to match 192.168.1.2 only and not .25 .26.

    However I get this.....

    show ip access-list test-in | include 192.168.1.2

    permit host 192.168.1.2
    permit host 192.168.1.25
    permit host 192.168.1.26

    In my opinion there should be a way to do it by regex.

    What do you think about it?

    bye
    Marco Giuliani, Feb 15, 2012
    #1
    1. Advertising

  2. Marco Giuliani

    Rob Guest

    Marco Giuliani <> wrote:
    > Hi,
    >
    > I have a named acl like this....
    >
    > ip access-list standard test-in
    > permit host 192.168.1.1
    > permit host 192.168.1.2
    > permit host 192.168.1.3
    > permit host 192.168.1.25
    > permit host 192.168.1.26
    > end
    >
    > and I would like to match 192.168.1.2 only and not .25 .26.
    >
    > However I get this.....
    >
    > show ip access-list test-in | include 192.168.1.2
    >
    > permit host 192.168.1.2
    > permit host 192.168.1.25
    > permit host 192.168.1.26
    >
    > In my opinion there should be a way to do it by regex.
    >
    > What do you think about it?
    >
    > bye


    I think you can use an underscore _ after your address.
    Rob, Feb 15, 2012
    #2
    1. Advertising

  3. On 15/02/2012 10:12, Rob wrote:

    > I think you can use an underscore _ after your address.


    Great! It works :)

    Thank you very match Rob!

    Regards,
    Marco
    Marco Giuliani, Feb 15, 2012
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Um9iZXJ0IEp1ZGdl?=

    XP Service Pack 2 does not include Bluetooth devices

    =?Utf-8?B?Um9iZXJ0IEp1ZGdl?=, Jul 17, 2005, in forum: Wireless Networking
    Replies:
    10
    Views:
    13,885
    =?Utf-8?B?cmFjaGlk?=
    Jan 31, 2006
  2. David Harrison

    Which exact version?

    David Harrison, Sep 23, 2004, in forum: Firefox
    Replies:
    3
    Views:
    419
    .brian.
    Sep 25, 2004
  3. =?Utf-8?B?ZmFuYm90?=

    eXact.downloader

    =?Utf-8?B?ZmFuYm90?=, May 14, 2005, in forum: Microsoft Certification
    Replies:
    0
    Views:
    504
    =?Utf-8?B?ZmFuYm90?=
    May 14, 2005
  4. Brian Whiting
    Replies:
    2
    Views:
    673
    Brian Whiting
    Dec 29, 2005
  5. Mike Rahl
    Replies:
    1
    Views:
    1,199
    Trendkill
    May 30, 2007
Loading...

Share This Page