Solved

Block Inter-VLAN Access on Cisco Router

Posted on 2009-07-15
3
1,049 Views
Last Modified: 2012-05-07
I have VLANS (5,6,7,8,9,10) configured on my Cisco Switch C2950 connected to router C2651. All VLANs can ping to each other but I want the users in VLAN 5 should be able to access all the VLANs but all other VLANs should not access each other. They should access our default gateway 172.23.200.1. Please see a piece of my code below:

Cisco2651XM#sh run
Building configuration...

Current configuration : 1623 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
!
interface FastEthernet0/0
 ip address 172.23.200.185 255.255.254.0
 ip nat outside
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.1.1 255.255.255.0
 ip nat inside
 duplex auto
 speed auto
!
interface FastEthernet0/1.5
 encapsulation dot1Q 5
 ip address 192.168.5.1 255.255.255.0
 ip nat inside
!
interface FastEthernet0/1.6
 encapsulation dot1Q 6
 ip address 192.168.6.1 255.255.255.0
 ip nat inside
!
interface FastEthernet0/1.7
 encapsulation dot1Q 7
 ip address 192.168.7.1 255.255.255.0
 ip nat inside
!
interface FastEthernet0/1.8
 encapsulation dot1Q 8
 ip address 192.168.8.1 255.255.255.0
 ip nat inside
!
interface FastEthernet0/1.9
 encapsulation dot1Q 9
 ip address 192.168.9.1 255.255.255.0
 ip nat inside
!
interface FastEthernet0/1.10
 encapsulation dot1Q 10
 ip address 192.168.10.1 255.255.255.0
 ip nat inside
!
ip default-gateway 172.23.200.1
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0
ip route 192.168.0.0 255.255.0.0 FastEthernet0/1
!
no ip http server
ip nat inside source list 1 interface FastEthernet0/0 overload
!
access-list 1 permit 192.0.0.0 0.255.255.255
dialer-list 1 protocol ip permit
!
control-plane
!
0
Comment
Question by:sg2009
3 Comments
 
LVL 7

Accepted Solution

by:
clonga13 earned 500 total points
ID: 24862681
Use access-lists to block traffic between the ports. An example would be:

access-list 101 deny ip 192.168.9.0 0.0.0.255 192.168.10.0 0.0.0.255
access-list 101 permit ip 192.168.9.0 0.0.0.255 any

and use ip access-group 101 in on the appropriate interface. This way you decide what traffic can go between the VLANs and still allow traffic to the Internet.
0
 
LVL 34

Expert Comment

by:Istvan Kalmar
ID: 24863265
Hi,

In my opinion you must use VRF routing!
IT is more secured than access-list

Please read the following:
http://www.cisco.com/en/US/docs/ios/sec_secure_connectivity/configuration/guide/sec_vrf_aware_ipsec_ps6922_TSD_Products_Configuration_Guide_Chapter.html

Best regards,
Istvan
0
 

Author Closing Comment

by:sg2009
ID: 31603895
It worked.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

When posting a question about a Cisco ASA, Cisco Router or Cisco Switch, it can aid diagnosis if a suitably sanitised copy of the config is provided. It is much better to leave as much of the configuration as original as possible, as it could be tha…
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now