Networking Forums

Networking Forums > Network Hardware > Network Routers > router access lists

Reply
Thread Tools Display Modes

router access lists

 
 
Darren
Guest
Posts: n/a

 
      11-14-2005, 10:02 AM
Hi everyone.

I am a student and have a access list question

Is this the correct way to configure a router if I wanted to prevent a host
computer with IP 192.168.4.3 from accessing the 192.168.1.0 subnet? Based on
a Cisco 2600.

access-list 101 deny ip 192.168.4.3 0.0.0.0 192.168.1.0 0.0.0.255



Thx
Darren


 
Reply With Quote
 
 
 
 
Dennis Willson
Guest
Posts: n/a

 
      11-14-2005, 06:41 PM
yep, now that access list will have to be applied to an interface to actually work. You also have to put a global permit as the
default action at the end of an access list is "deny ip any any"

You could also use an extended access list like:

ip access-list extended host-block
deny ip host 192.168.4.3 192.168.1.0 0.0.0.255
permit ip any any
exit

By using extended access lists you can use meaningful names. You can also put remarks within the access list like:

ip access-list extended host-block
remark -- This access list keeps the 4.3 computer from the 2.0 network
remark -- block the host here
deny ip host 192.168.4.3 192.168.1.0 0.0.0.255
remark -- allow all other traffic
permit ip any any
exit

Using the remarks makes things more clear and reminds you and anyone else maintaining the router what things are there. IMHO

Dennis


Darren wrote:
> Hi everyone.
>
> I am a student and have a access list question
>
> Is this the correct way to configure a router if I wanted to prevent a host
> computer with IP 192.168.4.3 from accessing the 192.168.1.0 subnet? Based on
> a Cisco 2600.
>
> access-list 101 deny ip 192.168.4.3 0.0.0.0 192.168.1.0 0.0.0.255
>
>
>
> Thx
> Darren
>
>

 
Reply With Quote
 
Darren
Guest
Posts: n/a

 
      11-14-2005, 08:43 PM
Thanks for the help. Will give that a try


"Dennis Willson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed).. .
> yep, now that access list will have to be applied to an interface to
> actually work. You also have to put a global permit as the default action
> at the end of an access list is "deny ip any any"
>
> You could also use an extended access list like:
>
> ip access-list extended host-block
> deny ip host 192.168.4.3 192.168.1.0 0.0.0.255
> permit ip any any
> exit
>
> By using extended access lists you can use meaningful names. You can also
> put remarks within the access list like:
>
> ip access-list extended host-block
> remark -- This access list keeps the 4.3 computer from the 2.0 network
> remark -- block the host here
> deny ip host 192.168.4.3 192.168.1.0 0.0.0.255
> remark -- allow all other traffic
> permit ip any any
> exit
>
> Using the remarks makes things more clear and reminds you and anyone else
> maintaining the router what things are there. IMHO
>
> Dennis
>
>
> Darren wrote:
>> Hi everyone.
>>
>> I am a student and have a access list question
>>
>> Is this the correct way to configure a router if I wanted to prevent a
>> host computer with IP 192.168.4.3 from accessing the 192.168.1.0 subnet?
>> Based on a Cisco 2600.
>>
>> access-list 101 deny ip 192.168.4.3 0.0.0.0 192.168.1.0 0.0.0.255
>>
>>
>>
>> Thx
>> Darren



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"noname" in router network devices lists Adam Lipscombe Linux Networking 1 06-21-2007 04:51 PM
Network Access Lists Mike Windows Networking 3 09-01-2006 07:46 AM
WINS and Browser Lists MarkSJ Windows Networking 1 08-21-2006 02:49 PM
Browse Lists Jeff Richardson Windows Networking 1 12-14-2005 05:08 PM
Can Linksys broadband/wifi routers run inbound/outbound access lists? Peter Broadband 7 12-09-2003 02:50 PM



1 2 3 4 5 6 7 8 9 10 11