

Johan Myréen at 15:10 5 What OS ifconfig shows the ether or lladdr on both Mac OS X and OpenBSD. jc at 15:08 2 Or you can use ip link to show the MAC address. The HWaddr field will be your MAC address.

It’s easy to lock MAC address with IP in Linux. 1 Show us the output of ifconfig for you machine. So the command would be like below: iptables -A INPUT -s A.B.C.D -i eth0 -m mac ! -mac-source 1A:2B:3C:4D:5E:6F -j DROP If you still accept the incoming packets but only drop the forwarding packets, replace the INPUT with FORWARD. The command above simply means that if there is a packet from IP address A.B.C.D with the MAC address is not 1A:2B:3C:4D:5E:6F, then drop / block the connection packet. Having a problem logging in Please visit this page to clear all LQ-related cookies. 1 Background: Im trying to install Vivado in my WSL2 instance, but its licensing scheme requires a fixed MAC address. Using your favorite shell, type the command below in the command line: iptables -A INPUT -s A.B.C.D -i eth0 -m mac ! -mac-source 1A:2B:3C:4D:5E:6F -j DROP In Linux we can easily do this by using ‘iptables’ tool. Use this method to obtain the MAC Address of your local computer as well as query remotely by computer name or IP Address. That means you can block any IP address coming from different source of MAC address in Linux OS. In case you use Linux operating system as the router in your office, instead of using Mikrotik, you can do the same with Mikrotik.

The goal of this task is to prevent users from changing their workstation’s IP address to break policy rules. In a previous post, we have shown you how to lock MAC address and IP in Mikrotik.
