Do not use on any
shared computer
August 29, 2008 06:03pm pdt
 
[x]
Attachment Details

Cisco ACL to limit which DHCP server allowed to respond

Tags: dhcp, cisco, acl
We are currently providing network connectivity to an apartment complex with the following setup.  

Cisco 2821 Router -> Cisco Catalyst 3750 24-port Fiber Switch -> Cisco Catalyst 2590 24-port Ethernet Switch (1 per Bldg) -> AMP NetConnect16-port unmanaged switch (8 units per Bldg) -> RJ-45 jacks in rooms = Internet in each room

The focus is between the Cisco 2590 and the tenants connections at any one buliding.  Each 2950 is setup as a DHCP server to give out a certain IP range (Bldg 5 = 192.168.5.xx , Bldg 13 = 192.168.13.xx) so a tenant plugs their computer into a wall jack, computers sends request to the 2950 which responds with appropriate IP.  Each individual building is on its' own VLAN for security and network efficiency purposes.  

The problem comes in when a tenant decides they want a wireless conection so they go out and buy a wireless router (Linksys / Netgear) and plug it into one of the switch ports on the router instead of the WAN/Internet port.  These start acting as DCHP servers themselves and tenants in other units of the building start receiving incorrect IP addresses and gateways (192.168.0.xxx) which causes a loss of internet for everyone.  Currently the only recourse is to call a tenant who has a problem, individually starting shutting off ports on the 2950 and have them renew their IP address until they begin receiving the correct addresses again.

We have higher level ACL's applied to the router but a very basic ACL in place currently on the 2590s for some usual problematic ports.  We have tried some ACL's but none seem to work.  The DHCP client to the DHCP server use UDP source port 68 and UDP destination port 67 whereas messages from the DHCP server to the DHCP client use UDP source port 67 and UDP destination port 68.  How can we use an ACL to ensure the computers only get their DHCP response from the 2950 and not from tenant equipment?  I am including a sample config.  Thanks.
 
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname KZOO_5
!
no logging console
enable secret 5 XXXXXXXXXXXXX
enable password XXXXXXXXXXXXX
!
ip subnet-zero
ip dhcp excluded-address 192.168.5.1 192.168.5.10
!
ip dhcp pool kzoo5pool
   network 192.168.5.0 255.255.255.0
   dns-server 24.247.15.53 24.247.24.53
   default-router 192.168.5.1
   lease 60
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
 switchport access vlan 5
 switchport mode access
 ip access-group 107 in
!
interface FastEthernet0/2
 switchport access vlan 5
 switchport mode access
 ip access-group 107 in
!
interface FastEthernet0/3
 switchport access vlan 5
 switchport mode access
 ip access-group 107 in
!
interface FastEthernet0/4
 switchport access vlan 5
 switchport mode access
 ip access-group 107 in
!
<<<Port 5 -> Port 23 - Shortened for readability>>>
!
interface FastEthernet0/24
 switchport access vlan 5
 switchport mode access
 ip access-group 107 in
!
interface FastEthernet0/25
 switchport access vlan 5
 switchport mode access
 ip access-group 107 in
!
interface FastEthernet0/26
 switchport access vlan 5
 switchport mode access
 ip access-group 107 in
!
interface Vlan1
 no ip address
 no ip route-cache
 shutdown
!
interface Vlan5
 ip address 192.168.5.2 255.255.255.0
 no ip route-cache
!
ip default-gateway 192.168.5.1
ip http server
access-list 107 deny   tcp any any eq 445
access-list 107 deny   tcp any any eq 1433
access-list 107 deny   tcp any any eq 135
access-list 107 deny   tcp any any eq 136
access-list 107 deny   tcp any any eq 137
access-list 107 deny   tcp any any eq 138
access-list 107 deny   tcp any any eq 139
access-list 107 deny   tcp any any eq 6346
access-list 107 permit ip any any
access-list 112 permit ip any any
!
line con 0
line vty 0 4
 password XXXXXX
 login
line vty 5 15
 password XXXXXX
 login
!
!
end
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Networking
Question Asked By: jsbush
Solution Provided By: adnanmig
Participating Experts: 2
Solution Grade: A
Views: 13
Translate:
Loading Advertisement...
 
[+][-]Accepted Solution by adnanmig
Accepted Solution by adnanmig:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by jsbush
Author Comment by jsbush:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by grsteed
Expert Comment by grsteed:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by adnanmig
Expert Comment by adnanmig:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by jsbush
Author Comment by jsbush:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by jsbush
Author Comment by jsbush:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_1_20070628