+ Post New Thread
Results 1 to 6 of 6
Networks Thread, Cisco IOS ACL - port range? in Technical; Is it possible to set up an ACL on a cisco switch which covers a range of ports (eg. 30015-30215)? ...
  1. #1

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Bristol
    Posts
    12,970
    Blog Entries
    24
    Thank Post
    438
    Thanked 1,502 Times in 1,179 Posts
    Rep Power
    459

    Cisco IOS ACL - port range?

    Is it possible to set up an ACL on a cisco switch which covers a range of ports (eg. 30015-30215)?

    I can do individual ports easily enough, but I don't want to have to do 200 ports...

  2. IDG Tech News

  3. #2

    Join Date
    Jan 2012
    Posts
    73
    Thank Post
    0
    Thanked 7 Times in 6 Posts
    Rep Power
    21
    Quote Originally Posted by localzuk View Post
    Is it possible to set up an ACL on a cisco switch which covers a range of ports (eg. 30015-30215)?

    I can do individual ports easily enough, but I don't want to have to do 200 ports...
    have a look at the int range command. should put a range of interfaces (either vlan, gigE, FE) from within config mode. if you have a range of none contiguous ports you may be able to use a comma to specify all the different ports you want to apply acl to in one command (although have not had a reason to use that before so don't know how well the latter works)

  4. #3

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Bristol
    Posts
    12,970
    Blog Entries
    24
    Thank Post
    438
    Thanked 1,502 Times in 1,179 Posts
    Rep Power
    459
    Quote Originally Posted by alttab View Post
    have a look at the int range command. should put a range of interfaces (either vlan, gigE, FE) from within config mode. if you have a range of none contiguous ports you may be able to use a comma to specify all the different ports you want to apply acl to in one command (although have not had a reason to use that before so don't know how well the latter works)
    I'm referring to TCP/UDP ports, rather than physical ports. The int range command refers to physical ports.

  5. #4

    Join Date
    Jan 2012
    Posts
    73
    Thank Post
    0
    Thanked 7 Times in 6 Posts
    Rep Power
    21
    Quote Originally Posted by localzuk View Post
    I'm referring to TCP/UDP ports, rather than physical ports. The int range command refers to physical ports.
    sorry, i read it as you wanting to apply an acl(s) to a range of interfaces. thought it sounded a bit strange needing to apply ip acl's to 200 switch ports. should have read your first post properly.

  6. #5
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    East Yorkshire
    Posts
    1,053
    Blog Entries
    4
    Thank Post
    200
    Thanked 109 Times in 104 Posts
    Rep Power
    29
    This page may help you.

    Configuring Commonly Used IP ACLs - Cisco Systems

    I love ACL's

  7. #6
    nicholab's Avatar
    Join Date
    Nov 2006
    Location
    Birmingham
    Posts
    987
    Blog Entries
    1
    Thank Post
    3
    Thanked 57 Times in 53 Posts
    Rep Power
    35
    Just stick "range 30015-30215" instead of "eq 30015"

SHARE:
+ Post New Thread

Similar Threads

  1. CISCO ASA5505 Firewall (port forwarding)
    By phughes in forum Internet Related/Filtering/Firewall
    Replies: 6
    Last Post: 2nd November 2010, 12:16 PM
  2. Replies: 0
    Last Post: 27th May 2010, 11:41 AM
  3. [Wanted] Cisco 2950 24 port switches
    By Sunderwood in forum Classified Adverts
    Replies: 16
    Last Post: 31st March 2010, 11:00 PM
  4. CISCO 2600 IOS
    By Joedetic in forum Hardware
    Replies: 4
    Last Post: 28th February 2007, 11:39 AM
  5. Cisco IOS
    By Ric_ in forum Hardware
    Replies: 10
    Last Post: 2nd October 2005, 11:24 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •