Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access-List

Status
Not open for further replies.

duster123

Technical User
Joined
Jun 21, 2006
Messages
168
Location
GB
I place this command on my switch:

access-list 2 deny host 9.9.9.3
access-list 2 permit any
end

how is it that im still able to access shares and ping that compute(9.9.9.3)?Also, the 9.9.9.3 workstation is still able to see all other worksations.
 
Hi,

you need to apply that access list to an interface...

user

ip access-group 2 in | out

LEEroy
MCNE6,CCNP,CWNA,CCSA,Project+
 
But what if 9.9.9.3 workstation is on the same switch as 9.9.9.2? how do i block 9.9.9.3 from acessing 9.9.9.2
 
Apply the access-group to the port that 9.9.9.2 is attached to (using the 'out' option).
 
im sorry, but im kinda new to cisco so how would i apply the access list to a port. what would be the command?
 
As per leedsit response above:-

switch> en
password: <enter the password>
switch#conf t
switch (conf)#int fa<the interface that 9.9.9.2 is attached to - i.e fa0/1>

switch(conf-if)#ip access-group 2 out
switch(conf-if)#ctrl+Z
switch#wr

Test this. If this does not work then replace the 'out' in the above command with 'in'. It all depends on how the switch views the packets.
 
Im getting an invalid input on my 2950 when i type the command
ip access-group 2 out. even when i go to config t and access the interface:



 
Unfortuantly where I am at the moment I dont have access to a 2950. However later I will have and I will have a look and post the result here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top