01-24-2016 08:08 PM - edited 03-05-2019 03:11 AM
Good day to all
How to enable dhcp snooping and ip source guard, so that the user of the VLAN 60 (PC1) was not able to use other static addresses except 192.168.20.2 from DHCP, while not affecting the other VLAN? The scheme does not change and there is no other equipment.
Solved! Go to Solution.
01-25-2016 08:49 PM
An even more complete example for switch1. I am 75% confident you can do option 82 processing on the Microtik, but I'll leave you to figure that out.
Enabling option 82 simply inserts an extra option in every DHCP request. Only DHCP servers that can process the option 82 can do anything with it. It wont break anything extra by turning on option 82 on the switch.
ip dhcp snooping vlan 60
ip dhcp snooping
ip dhcp snooping information option
interface Gigabit a/b/c
description DHCP Server or uplink to switch to DHCP server
ip dhcp snooping trust
interface Gigabit a/b/d
description Interface facing client
ip verify source
01-25-2016 10:20 PM
Now switch1, on which the hosts, functions as follows :
1) On the switch is turned on
ip dhcp snooping
ip dhcp snooping vlan 60
2) On ports 1-9 enabled function ip verify source
3) Everything works fine as I wanted to, that is, clients get the ip from dhcp server only, and can not even use his own ip as static, because of ip verify source
A task:
Now it is necessary that on the 10th port all PCs were able to use a single address which is tied to a switch port. Only one address which given by dhcp. How isitimplement?
01-25-2016 10:36 PM
Add the following on switch1:
ip dhcp snooping information option
Then configure your DHCP server to give out the same IP address for the port everytime.
01-25-2016 11:11 PM
01-25-2016 11:15 PM
You need to match on the circuit and port identifier, not the switch port MAC address.
You'll have to find an article on how to configure this on a Microtik.
01-26-2016 12:00 AM
You think that the problem only in DHCP Server?
With the configuration of the switchs is no problem?
01-26-2016 12:03 AM
Is the DHCP server reporting a circuit identifier in DHCP requests?
01-26-2016 12:42 AM
Yes. Clients receive the IP addresses, and the DHCP server reporting a circuit identifier in DHCP requests (On MikroTik in IP>DHCP Server>Leases). It is only if I tie the IP address to host MAC.
01-26-2016 12:52 AM
Then that confirms the switch is inserting the option 82 correctly.
Now you have to figure out how to configure your DHCP server to tie the IP address to the circuit identifier instead of the mac address. I don't know if the Mirotik is sophisticated enough to do this or not.
01-26-2016 02:17 AM
It means that MikroTik supports option 82, but how to configure, that is the question.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide