exact match on IOS include

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

Reply to
Marco Giuliani
Loading thread data ...

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

Reply to
Rob

Great! It works :-)

Thank you very match Rob!

Regards, Marco

Reply to
Marco Giuliani

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.