Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Syntax for assigning more than one port?

Hello all,

Greatly appreciate all the help I have recieve on this forum.

Is there a way to use and access-list command and eq 5000 to 5020 ports on a single line? I tried ... eq 5000-5020 without success.

TIA,

Gary

1 ACCEPTED SOLUTION

Accepted Solutions
Gold

Re: Syntax for assigning more than one port?

Hi -

Yes you can do this by using 'range' instead of 'eq' i.e.

access-list outside permit tcp host range 5000 5020

Hope this helps -

2 REPLIES
New Member

Re: Syntax for assigning more than one port?

Yes you can! You need to use the range keyword instead of 'eq'. For example:

access-list outside_access_in permit tcp any host 192.168.1.12 range 5000 5020

Hope this helps...

Marcus

Gold

Re: Syntax for assigning more than one port?

Hi -

Yes you can do this by using 'range' instead of 'eq' i.e.

access-list outside permit tcp host range 5000 5020

Hope this helps -

174
Views
5
Helpful
2
Replies
CreatePlease login to create content