02-21-2013 10:09 AM - edited 03-07-2019 11:52 AM
We have 3 VLAN in our cisco 3750G switch. VLAN 1 10.1.0.0/24 for domain network, VLAN 2 10.2.0.0/24 for student and VLAN 3 10.3.0.0/24 for public. We have one printer 10.3.0.206 in the VLAN 3 and want to allow student server 10.2.0.253 in the VLAN 2 to access the printer. How can we configure access-list? Here is current configuration.
ip access-list extended publicaccess
permit icmp any any
permit ip any host 10.2.0.253
permit tcp any any established log
deny ip 10.3.0.0 0.0.0.255 10.1.0.0 0.0.0.255
deny ip 10.3.0.0 0.0.0.255 10.2.0.0 0.0.0.255
Solved! Go to Solution.
02-21-2013 06:41 PM
Hi,
Fix your ACL to be like this
no ip access-list extended studentaccess
ip access-list extended studentaccess
permit ip host 10.2.0.253 host 10.3.0.206
permit icmp any any
permit tcp any any established log
deny ip 10.2.0.0 0.0.0.255 10.0.0.0 0.0.255.255
permit ip any any
no ip access-list extended publicaccess
ip access-list extended publicaccess
permit icmp any any
permit ip host 10.3.0.206 host 10.2.0.253
permit tcp any any established log
deny ip 10.3.0.0 0.0.0.255 10.1.0.0 0.0.0.255
deny ip 10.3.0.0 0.0.0.255 10.2.0.0 0.0.0.255
permit ip any any
Sent from Cisco Technical Support Android App
02-21-2013 10:55 AM
What interface do you have this access-list applied to now?
The easiest way is to put it inbound on vlan 2 interface:
ip access-list ext Printer
permit ip host 10.2.0.253 host 10.3.0.206
int vlan 2
ip access-group Printer in
But I'm not sure where your existing one is applied, so it's hard for me to tell you how to reconfigure this acl not knowing.
HTH,
John
*** Please rate all useful posts ***
02-21-2013 02:31 PM
Thank you for the tip. I am not Cisco engineer. If I don't provide the information you need, please let me know. I will try my best. Here are the interfaces:
interface Vlan200
description StudentSubnet
ip address 10.2.0.2 255.255.255.0
ip access-group studentaccess in
!
interface Vlan300
description PublicWireless
ip address 10.3.0.2 255.255.255.0
ip access-group publicaccess in
ip helper-address 10.2.0.253
I try to add permit ip host 10.2.0.253 host 10.3.0.206 to ip access-list extended studentaccess
and
permit ip host 10.3.0.206 host 10.2.0.253 to ip access-list extended publicaccess
but that doesn't fix the problem. Here are configuration after I made the changes.
ip access-list extended studentaccess
permit icmp any any
permit tcp any any established log
deny ip 10.2.0.0 0.0.0.255 10.0.0.0 0.0.255.255
permit ip any any
permit ip host 10.2.0.253 host 10.3.0.206
ip access-list extended publicaccess
permit icmp any any
permit ip any host 10.2.0.253
permit tcp any any established log
deny ip 10.3.0.0 0.0.0.255 10.1.0.0 0.0.0.255
deny ip 10.3.0.0 0.0.0.255 10.2.0.0 0.0.0.255
permit ip any any
permit ip host 10.3.0.206 host 10.2.0.253
02-21-2013 06:41 PM
Hi,
Fix your ACL to be like this
no ip access-list extended studentaccess
ip access-list extended studentaccess
permit ip host 10.2.0.253 host 10.3.0.206
permit icmp any any
permit tcp any any established log
deny ip 10.2.0.0 0.0.0.255 10.0.0.0 0.0.255.255
permit ip any any
no ip access-list extended publicaccess
ip access-list extended publicaccess
permit icmp any any
permit ip host 10.3.0.206 host 10.2.0.253
permit tcp any any established log
deny ip 10.3.0.0 0.0.0.255 10.1.0.0 0.0.0.255
deny ip 10.3.0.0 0.0.0.255 10.2.0.0 0.0.0.255
permit ip any any
Sent from Cisco Technical Support Android App
02-22-2013 08:15 AM
So the commands takes by order. That make sense. After making the change, I can add the printer, but can't print. I think the problem is I need open more tcp and udp. Can someone give me the command line to add all tcp and udp for 10.2.0.253 to access 10.3.0.206 and where I shuld insert the command line by order? Thank you.
02-22-2013 08:24 AM
If u can add a printer that means Printer is available, else you can ping printer ip.
02-22-2013 09:08 AM
I can ping the printer IP and add it. But when I send the print job, it stays in the queue for a while and the shows error. I do beleive it is port issue because in the public VLAN, I can telnet printer port 515 and 80. In the Student VLAN, I can't.
02-22-2013 10:03 AM
Hi,
Post here your current configuration of the switch.
Hope it will help.
Best regards,
Abzal
02-22-2013 11:14 AM
03-02-2013 09:23 AM
I opened a case with Cisco and get it work. The case can be found here: http://www.howtocisco.com/cisco/switch/switchvlan2.htm
I do beleive someone could provide correct answer if I would provide allconfiguration. Thank you.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: