what is DHCP Snooping ? as its name is very cleared what is that, its an mechanism to control your network DHCP Servers, in the DHCP Snooping we define DHCP Server connected to which port or VLAN and then after enable DHCP Snooping, if Switch receive any DHCP DISCOVERY massage, just forward that to Trusted ports, and its very basic operation for block some attacks like man-in-the-middle, cause in the networks without DHCP Snooping everyone can respond to DHCP Client massage and get IP to them with custom information like different Gateway.
maybe ask yourself how it work !? its very simple, each frame came from un-trust port for DHCPDISCOVERY, switch forward it to only Trusted port and then when ACK Massage was send to client, switch register some information to DHCP-Snooping Database, this Info include: Client MAC Address, Lease Time, Switch Port,IP Address and VLAN.
This table was stored in Flash by default but as you know flash capacity is limited and maybe you have a big Network with a lot of workstations, you need another place for store this Database(this database is a flat file with simple format), if your Database was out of your switches, then if switch was fail, you have copies of your DHCP Snooping Data and can very easily recover them to new switches or as you know when switch was reloaded, all of here DHCP Snooping Database data be cleared, but if you have an external database, you can keep this data to unlimited next reboot.This Database can accessed by CISCO Switches via remote protocols like TFTP.
IP Source Guard and Dynamic ARP Inspection uses this Database entry to perform own filtering or any operation must to do.
All entry will be remain in this Database file ? NO ! when they removed ? in two situation items in DHCP Snooping was removed Automatically via switches, 1: When lease time was ended and if workstation at this time send another request to DHCP, DHCP Server get it maybe new IP Address, then switch store new information of that host.
2: when client or workstation send RELEASE frame to DHCP Server.
and you must remember this tips, DHCP Snooping doesn't store Host Information about Every Host on Trusted ports. and when you want to view Hosts Information from DHCP Snooping Database, you cant see any data entry from ports that are Trusted already.
By default DHCP Snooping is disabled and you can enable it via this commands:
2. ip dhcp snooping
After Enabling DHCP Snooping Globally, then now is time to configure DHCP Snooping on one or more VLAN,via this command:
ip dhcp snooping vlan [vlan-list]
DHCP snooping MAC address verification:
This feature by default is enabled and if any packet revived from untrust ports have different MAC Address to client MAC Address for when it get IP Address from DHCP Server, then all of there packet be dropped.
How to register a port as a Trust:
ip dhcp snoop trust
get overall information about your DHCP Snooping configuration and ports status
HelloWe have new branch and we will connect it through 4G routers "WAN connection" and L3 switches as below Fig. From 1-Branch Switch i can ping the 2-Branch Switch, but from (PC-1) i cannot ping (2-Branch Switch) also (PC-2).Maybe i hav...
Hello, I have problem understanding this SNMP configuration. The commands are below: ALS1(config)# access-list 1 permit 192.168.1.0 0.0.0.255 ALS1(config)# snmp-server community LEVEL1 ro 1 #Line 2ALS1(config)...
Hi, I have tried twice to order mounting kits for several of these switches that I have. Both times, the seller claimed my model would fit these kits. Both times, the mount was too short to fit both "prongs" into the indents of the switch.&nbs...
Hi, Hope you can help. I am installing a 877VA and connecting to 3750 Core and need to access video streams over VPN to 3 internal inter-routed VLANS... VLAN1 = 192.168.153.1\24VLAN2 = 192.168.150.254\24VLAN3 = 192.168.151.254\24 I hav...
Hello everyone Sorry for the mistakes, english in not my first language And having a problem with a router 1841, its deleting and static route by itself First I thought I didnt save configuration and due to a electric failure It reboot and ...