fbpx

When a client places the router cable in the LAN output and issues the wrong IP and brings down the network, how can that IP be blocked?

A mac lock can be performed, the mac lock consists of if it is a device that connects to a port and does not have the IP and mac that are specified in a list (ARP Table) in the router it will not be able to have communication With your gateway, you will not have communication with other devices and nor will you have access to the Internet.

For it to work, in the interface you must enable the arp reply-only mode and manually add arp, ip, mac and interface to the table.

When a customer incorrectly connects a router to the network, using one of its LAN ports, and this router starts issuing IP addresses (acting as an unauthorized DHCP server), it can cause IP conflicts and connectivity problems on the network.

To resolve this issue on a network managed by a MikroTik device, you can take steps to block traffic from the specific IP address that is causing the issue or disable the unwanted DHCP server.

Here's how to block that specific IP address using the MikroTik firewall:

Using WinBox

  1. Access your MikroTik: Log in to your MikroTik device using WinBox.
  2. Open the Firewall: go to IP > Firewall on the menu.
  3. Add a New Rule in the 'Forward' Chain:
    • Click on the tab Filter Rules and then on the button + to add a new rule.
    • General: In the “General” tab, set the “Chain” to forward.
    • Advanced: No need to set options here for this purpose.
    • source address: Enter the IP address of the unauthorized DHCP server that you want to block.
    • Action: Switch to the “Action” tab, select drop in the “Action” field. This will block all traffic coming from that IP address.
    • Click on Apply and then OK to keep the rule.

Using the CLI

If you prefer to use the command line, here is the corresponding command:

/ip firewall filter add action=drop chain=forward src-address=<IP_Servidor_DHCP_Errado>

Replaces <IP_Servidor_DHCP_Errado> with the IP address of the rogue DHCP server that is causing the problem.

Additional Solutions

Aside from blocking the IP, there are other strategies you could consider to prevent these types of incidents in the future:

  • Disable DHCP on Unwanted Ports: If you have a manageable switch between the MikroTik and the users, you can configure the ports as “untrusted” for DHCP Snooping, preventing them from acting as DHCP servers.
  • Using DHCP Snooping: If your network equipment supports it, DHCP Snooping can help identify and block unauthorized DHCP responses on the network.
  • Alerts and Monitoring: Set up alerts to notify you when IP conflicts occur or when a new device is trying to act as a DHCP server on the network.

These measures will help you maintain the stability of your network and avoid connectivity problems caused by misconfigurations of devices on the network.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011