Questions tagged [mac-address]

The MAC address is the network address of an interface at data link layer in IEEE 802 networks such as ethernet.

Filter by
Sorted by
Tagged with
1
vote
1answer
26 views

Bridge gets random MAC instead of port address

I have a fresh install of Debian 11 and did a bridge setup: auto br0 iface br0 inet dhcp bridge_ports eno1 What I expect is that br0 has the same MAC address as eno1 but it gets a randomly ...
0
votes
0answers
18 views

Iptables -m --mac-address : ```No chain/target/match by that name```

I has be interested not long ago by iptables firewall and i want create rules to authorize just some mac address I want use this code but i have an error iptables -A INPUT -m mac --mac-source 80:3F:5D:...
0
votes
1answer
24 views

Run a terminal command when device connects to a WiFi network

I spoof my MAC address on a public WiFi network that I use often, but I do not want to have my MAC spoofed on my home network. I was thinking that a way to automate this is to have the computer ...
0
votes
0answers
25 views

Unexpected network packets (with "wrong" MAC address) arriving in a VM - Why?

I have a VM which is run by QEMU-KVM on a Linux host. In that VM, I have Debian Bullseye installed. The VM is connected to the host's network by bridging. There are the following network interfaces ...
0
votes
0answers
42 views

Ethernet Gadget - Issue with fixed MAC address

I'm trying to setup up a Raspberry Pi Zero as an ethernet gadget with a fixed host mac address but I ran into a strange issue. Hopefully I can resolve this with your help. I've configured the g_ether ...
0
votes
1answer
88 views

Delete illegal router from network

I have a default gateway with IP address 192.168.1.1 and MAC address 5c:77:76:6e:0d:7b. It is my only wi fi modem router from which I receive internet. But in input nftables logs I saw another one ...
1
vote
0answers
31 views

Possible to get another HW address for a single WiFi connection using wpa_supplicant?

I built my own WiFi to WiFi router based on a raspberry pi 4. This is working quite well but some WiFi provider introduce a per device speed limit based on the HW address. Because of that I thought ...
0
votes
1answer
71 views

how do i get interface name, ip and mac from active interface only (except lo)

I use this command to get the name of my network interfaces and their mac address ip -o link | awk '$2 != "lo:" {print $2, $(NF-2)}' | sed 's_: _ _' out: enp2s0 XX:XX:XX:XX:XX:XX wlp1s0 YY:...
-1
votes
1answer
151 views

Loop through MAC addresses, how to handle both numbers (0-9) and letters (a-f) in a "for" loop

I've a script with this code for i in {2..9} do grep "Node${i}\|01, source address = 00:00:00:00:00:0${i}" t1.txt > t2.txt done Is it possible to expand the loop ...
1
vote
0answers
241 views

How to filter (rate-limit) traffic through a bridge, using nftables, depending on whether or not the traffic originated locally?

I'd appreciate some help with understanding how traffic filtering in a bridge works, especially for packets / Ethernet frames which originated locally. To explain the problem, I'll shortly describe ...
0
votes
1answer
351 views

Network driver didn't actually change to the new MAC

whenever I try to change my MAC address I get "Network driver didn't actually change to the new MAC!!" error. I have tried; macchanger wlan0 down macchanger -r wlan0 Output: Current MAC: ...
0
votes
0answers
29 views

MAC address spoof of a wifi connected device, not the network interface of the PC

Some devices are known to data hosts by their MAC. If you physically replace that device and it has a new MAC the host will not accept the data. All the router will do is spoof the network interface ...
0
votes
0answers
122 views

Detecting IP/MAC spoofing using iptables

Is there any way to detect IP or MAC address spoofing with iptables?
0
votes
0answers
86 views

Unable to connect via SSH to when eth0 is disconnected

I've seen a few similar questions, to this one, but have not found a solution. I'm working on a Raspberry Pi and wiring up a second Ethernet port (ultimately it will be the only port on a Pi Zero, ...
0
votes
1answer
360 views

Read MAC using Buildroot 20.20 NVMEM_IMX_OCOTP on i.MX7s

We are migrating from Buildroot 2018.02.9 (linux-4.14.85) to Buildroot 2020.02.2 (linux-5.4.40), and have found that we can no longer read the MAC address on an I.MX7s SoC. The following indicates why:...
18
votes
7answers
3k views

Find the IP address of a newly-booted Raspberry Pi

I've attached a Raspberry Pi running Ubuntu to my home network with a cable. It is booted up and connected to the network. The Pi has no keyboard, mouse, or monitor. If I know the IP address that was ...
1
vote
1answer
90 views

How to find where zoom is getting MAC

It looks like based on stdout output after running a malicious app called zoom, that it gathers the currently used MAC Address. I am looking to block this functionality via AppArmor, however I cant ...
0
votes
1answer
849 views

Changing of MAC Address with Network Manager on Debian 10

Looking at syslog files on Debian 10 form a previous session I have noticed a MAC Address change and I do not know why it is happening. Any ideas on how to stop this? Jun 8 15:43:46 NetworkManager[...
1
vote
1answer
480 views

mac address of usb ethernet device changes each time on reboot on raspberry pi 3b running raspbian

Mac address of embedded usb ethernet device (smsc95xx driver) is being changed on each reboot - its happening despite adding to the /boot/cmdline.txt smsc95xx.macaddr=00:11:22:33:45:67 - I know that ...
0
votes
1answer
1k views

Does a DHCP server assign MAC addresses to network computers?

I have been working on basic Linux network configuration. I am aware that IP addresses, default gateways, subnetmasks etc are assigned by a DHCP server but am unsure if MAC addresses are assigned by ...
0
votes
1answer
162 views

How can I change the mac address on a Linux 3.3.8 device without macchanger?

I'm trying to permanently modify my MAC address on a device running Linux 3.3.8 I cannot get macchanger to install either. When I try it with ifconfig eth0 hw ether I get ifconfig: SIOCSIFHWADDR:...
1
vote
1answer
872 views

Macchanger works until connecting to network in Debian 10 [duplicate]

I’ve been trying to test out my MAC spoofing abilities on my home network using Macchanger. When not connected to WiFi, it works just fine. I can bring the interface down using ifconfig, change the ...
4
votes
1answer
431 views

SSH with MAC based filtering using iptables - recommended?

I have a server in an internal network (login there via VPN) from where I login to the server via SSH with OpenSSH public/private key authentication. From a security point of view, I want to tie the ...
0
votes
2answers
21 views

Can I remotely connect my office system "PC-A" to another neighbouring office system "PC-B" through mac address?

System description I have two Ubuntu (Mate-flavour) systems in my office "PC-A" and "PC-B". previously(4 days ago) I was able to remotely connect both the PC from home. both are connected with the ...
0
votes
1answer
805 views

Changing `iptables` rules by `MAC` address

I'm using a gateway connected to VPN to do forwarding with the port of an industrial LAN element. I use iptables forwarding to access port 80/443 of my gateway in the browser to show me the contents ...
0
votes
0answers
24 views

Pinging default gateway on a Linux virtual machine

I have two question about the network. I started to ping my router from my Linux virtual machine and I have intercepted these ICMP frames. I noticed that the destination MAC address is not my router ...
0
votes
1answer
27 views

Upgrading stretch to buster interface MAC issues

After upgrading Debian from stretch to buster I am encountering weird behaviour of the ethernet interface. This installation runs on a Hyper-V host. After rebooting, the mac address reported by the ...
0
votes
1answer
518 views

How to change eth0 MAC address only using a text editor?

I am running OpenWrt (=Busybox per SSH) so my amount of binaries is limited. I would like to change my MAC address only using a text editor like nano.
2
votes
2answers
368 views

Is it necessary to down/up interface during MAC address change?

I'm using SuSE 12.2 with custom kernel 4.4.21 (minor changes related to real time environment). Is it really necessary to down/up the interface during the MAC address change? What I observed is that ...
-1
votes
1answer
160 views

Attempting to use airmon-ng returns error

So im trying to use airmon-ng so i can get some mac addresses and deauth them 'with permission, ofc' im on Nethunter and airmon returns this ls: cannot access '/sys/class/net': No such file or ...
0
votes
3answers
2k views

bash script to get MAC address and paste it to ifconfig file after HWADDR

Is there a way to get the MAC address from ifconfig and append after HWADDR in ifconfig-eth0 file? I have used awk command to show MAC address but couldn't figure it out to hold that information and ...
0
votes
1answer
684 views

getting MAC address of system: eth0 vs PredictableNetworkInterfaceNames

I wrote some C code having a rudimentary software licensing function within, where the executable will only run if the MAC address of the system I whitelisted in my C code. I only want this to work ...
1
vote
1answer
451 views

Host key verification failed after changing MAC address

I changed my MAC address, I believe using sudo ip link set dev interface address XX:XX:XX:XX:XX:XX, in order to be assigned a new local IP address to fix some network issues I was having. This worked ...
0
votes
1answer
3k views

Read a json file and run a command in Bash

I wanna block a mac address which downloaded value is over "20480": The json file: { "client_length": 3, "clients": { "ac:07:5f:77:40:e9": { "id": 1, "ip": "192.168.5.40", ...
0
votes
0answers
365 views

setting/using MAC that is multicast and local

is it possible to set a MAC address using ifconfig where it has a 11 in the least significant bits of the first octet? For testing I want to do ifconfig em1 hw ether 13ffffffffff using 12ffffffffff ...
-1
votes
1answer
234 views

DHCP lease table in router shows weird entries when connected to Linux server

I have a domestic server where a MitraStar ADSL router is connected to a bunch of mobile devices plus two desktop machines (one Linux and one Windows) connected by Ethernet cables. IP address 192.168....
0
votes
0answers
190 views

systemd macchanger start job hanging

I am running Arch Linux and I have set up systemd to change my MAC address on startup with macchanger # /etc/systemd/system/macspoof@.service [Unit] Description=macchanger on %I Wants=network-pre....
6
votes
3answers
630 views

Replace MAC address with UUID

I am looking for a way to mask the client MAC address every time it appears in a logfile before using the logfile to present data to a customer (GDPR rules). I can identify the MAC string using regex,...
1
vote
0answers
273 views

Identifying physical network devices using /sys/class/net/<iface>

I wanted to know if there is a way to differentiate physical and virtual network devices. ip a doesn't have an option. So I am trying /sys/class/net/<iface>. There are 2 attributes ...
1
vote
0answers
195 views

Why do kernel updates on Manjaro change my network MAC address?

I've configured NAS access based on client IP address. It's now the third time that I've updated the kernel on my Manjaro installation, and each time I get booted off the NAS. Why? Because my ...
0
votes
1answer
647 views

Macchanger not working automatically

So I installed macchanger and it works manually, but I also set it up in the installation to automatically change the MAC address when a network change is detected in a device and it does not work at ...
0
votes
1answer
740 views

DHCPD with two different ranges

I have set up a DHCPD service on a Linux server, which shall provide fixed public IP addresses for cable modem devices based on MAC addresses. Here is the configuration file of the DHCPD. The server'...
1
vote
1answer
218 views

How do I add this field?

I'm trying to print the signal strength of two wifi devices connected to a hotspot. I manage to do this script that prints the ip, hostname, mac and signal. In the script below the macs are stored in $...
2
votes
2answers
1k views

Hetzner reported not allowed MAC addresses in subnet

We had email from Hetzner network team asking us not to use MAC addresses belonging to the Virtual Machines belonging to the subnet. We configured Xen server host as a router using this guide. After ...
1
vote
2answers
6k views

Does `ifconfig` show the MAC address of a network interface following `ether`?

Does ifconfig show the MAC address of a network interface following ether? Does ether mean ethernet? How does it mean Mac address? virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ...
1
vote
1answer
2k views

Does `lo` have no MAC address?

From https://networkengineering.stackexchange.com/questions/57935/is-a-network-interface-supposed-to-have-no-more-than-one-mac-address/57937?noredirect=1#comment100988_57937 A network interface in ...
1
vote
2answers
3k views

Systemd - Set MAC address and IP address

I am trying to use systemd to set the MAC address and IP address of eth1 on my board. MAC address To set the MAC address, have created the following service: /lib/systemd/system/eth1mac.service [...
0
votes
1answer
1k views

Altering eth1 MAC address [duplicate]

I need to alter the MAC address for eth1 ethernet device on my embedded system permanently so it retains this MAC address on every boot. The OS I'm using: VERSION_ID="v2015.12" NAME="Angstrom" ID="...
2
votes
0answers
1k views

NetworkManager fails to connect with a cloned MAC address

I need to spoof a specific MAC address to be able to connect to the local ethernet. So I filled in the "Cloned MAC address" field in nm-connection-editor. After this, nm-applet shows a spinning icon ...
0
votes
1answer
380 views

Perl script for generating MAC addresses

This perl line very useful to change mac address but retain the first three pair. perl -e 'for ($i=00;$i<6;$i++){@m[$i]=int(rand(256));} printf "00:16:3E:%X:%X:%X\n",@m;' Generate some good ...