Computing.Net > Forums > Networking > how to define acl in cisco routers

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how to define acl in cisco routers

Reply to Message Icon

Name: girgav
Date: March 13, 2003 at 03:31:34 Pacific
OS: windows
CPU/Ram: pentium 128
Comment:

Hi there,

I want to know more about configuring routers i.e how to set an access control list to enable/disable some ip's on the network .Are the settings volatile or they can be saved permanently .Kindly let me know the commands.
Also are there any sites which give examples of such acls ?

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: BrADmatt
Date: March 13, 2003 at 07:40:49 Pacific
Reply:

check out www.cisco.com. do a search on ACL's.


0

Response Number 2
Name: Tosk
Date: March 13, 2003 at 14:15:56 Pacific
Reply:

Howdy.

The ACLs are stored in the config, so if you save the config after you define them, they'll be present when and if the router reloads.

To specify an ACL, you have to be in global config mode. Type:

access-list # permit|deny IPaddr wildcardmask

All ACLs have an implicit deny any statement at the end, so to block all hosts except a few, you'll create an ACL to permit those hosts; but to allow all hosts except a few, you'd define the ACL and put a permit any at the end.

All ACL statements must have they're own line. So to define an ACL to block only 192.168.0.48 you'd do this:

router# access-list 1 deny host 192.168.0.48 [enter]

router# access-list 1 permit any[enter]

Also note, you can only use ACL numbers 1-99. These are standard ACLs that are used to permit or deny hosts, either specifically, or an entire subnet. ACL numbers 100-199 are extended ACLs that can be used to permit or deny specific protocols (ICMP, TCP, FTP, HTTP) or ports.

Once you've created your ACL, you need to assign it to an interface. To assign it to an interface, goto interface config mode for the interface that it's to be specified to:

router(config)# int e0 (or fa0/0 if 2600ser)

Then you need to issue the ip access-group comand to bind the ACL to an interface.

ip access-group # in|out

The in|out specifies whether or not the ACL is to permit/deny coming in the router, or going out.

Hope this helps some.

- Tosk



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: how to define acl in cisco routers

Dial in to Cisco router www.computing.net/answers/networking/dial-in-to-cisco-router/4692.html

how to make a di-704p router a hub? www.computing.net/answers/networking/how-to-make-a-di704p-router-a-hub/16627.html

cisco logging www.computing.net/answers/networking/cisco-logging/15031.html