Solved

Block Inter-VLAN Access on Cisco Router

Posted on 2009-07-15
3
1,055 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Internet Protocol Security question 3 94
ISP Change 14 63
2 routers and 1 public IP Address. 10 55
VPN Server config in Modem 5 27
Creating an OSPF network that automatically (dynamically) reroutes network traffic over other connections to prevent network downtime.
I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
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…

861 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