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
0 votes
2 answers
41 views

How are USB devices uniquely distinguished?

For experimentation purposes I have bought some pairs of wifi and bluetooth devices and I plan to get some more. However when two or more of the same type are plugged in to the hub lsusb lists ...
vfclists's user avatar
  • 7,125
0 votes
0 answers
11 views

dnsmasq.leases write wrong parameter (opensuse)

I'm running platform tests on several computers. The dnsmasq.leases is writing a strange parameter when I test with Opensuse OS. Can anybody help me? 1681465068 00:04:5f:41:3a:d9 55.0.168.110 cpru201 ...
henrolos's user avatar
0 votes
0 answers
22 views

Virtual Box host Linux Lite - Guest Windows 7 - unable to browse internet, but network connectivity (ping) works

I have looked everywhere for a solution, but none of them seems to be able to solve my problem. I am using Bridged adapter, with the host adapter wlp3so (the wifi adapter), Promiscuous mode "...
ZM.Sintra's user avatar
2 votes
1 answer
455 views

USB LTE modem without MAC address?

I'm connecting a linux machine using a nowadays popular Huawei Brovi E3372-325 LTE USB Stick to the internet. The special requirement is that incoming ssh/ping/NTP/... connections must reach my linux ...
gorogm's user avatar
  • 23
0 votes
0 answers
37 views

macchanger's effect disappears when wifi connection is back up

When I installed macchanger package I set it to change mac address everytime an interface is down. However I noticed that my IP address was not changing. So I examined my mac address. When connected ...
irus25889's user avatar
0 votes
1 answer
300 views

How do I set a static MAC address for the default gateway on startup?

I need to set the default gateway's MAC address statically. I used the command: arp -s <ip> <mac> That works, but on reboot the entry is back to being dynamic. I have tried: Writing the ...
randmon's user avatar
0 votes
1 answer
854 views

How to tell qemu to randomly assign MAC addresses

I'm starting three Qemu VMs, each with several network interfaces. The network interface config looks like this: -nic user,hostfwd=tcp::"${ssh_ports[$machine]}"-:22,model=virtio-net-pci \ -...
jan's user avatar
  • 841
5 votes
3 answers
2k views

How can I make Linux generate different MAC addresses for different bridge devices which are on different PCs?

I have just upgraded two servers from Debian 10 (Buster) to Debian 11 (Bullseye). Afterwards, I could not reach either of them via the network any more. After some investigation, the following problem ...
Binarus's user avatar
  • 2,583
1 vote
1 answer
837 views

Find out what keeps changing my MAC address on reboot

Some time ago I installed macchanger to play around with some wifi stuff. Soon after that I uninstalled it again (with giving 'purge' to apt), together with everything else I installed before around ...
Jaleks's user avatar
  • 2,459
0 votes
1 answer
247 views

Why did the mac address of bond changed on CentOS7 after reboot

I have two interfaces bonded together in LACP mode (mode=4 <=> 802.3ad) in bond0 : The mac address of bond0before reboot : $ cat /sys/class/net/bond0/address xx:xx:xx:xx:xx:bf The mac address ...
SebMa's user avatar
  • 1,861
0 votes
1 answer
231 views

MAC based routing with nftables and ipv6

I want to match every traffic from a server but it is at the same interface. MAC 88:7e:25:d3:90:0b > ens19 > table 147 Therefore I made this nftables rule table ip filter { # handle 3 chain ...
zhihuiyuze's user avatar
0 votes
1 answer
461 views

Unique Mac address for Secondary IP address?

Using one Ubuntu machine with one physical NIC, I want to make it seem that there are two or more additional machines on my real network, all controlled by this one Ubuntu machine. For example, I have ...
Andrew Campi's user avatar
1 vote
1 answer
362 views

maching source MAC address in nftables

I want to match all data from ens19 with the mac address 88:7e:25:d3:90:0b use table 147. My idea is to mark the data from 88:7e:25:d3:90:0b and give it a fwmark 14. Then use ip rule to the specified ...
zhihuiyuze's user avatar
1 vote
1 answer
116 views

Why is this MAC address iptables whitelisting not working?

This is on a router. I have $mac as the MAC of one client and $set is an ipset of type hash:net. My intention is to deny access to all networks in $set, except for $mac who can access the networks. -A ...
user536142's user avatar
1 vote
1 answer
254 views

Get MAC address before network is ready

I created a script to set a bunch of computer hostnames to the last 8 digits of the MAC address. The MAC address is a unique number baked into every computer, so it works well. I created a systemd ...
run_the_race's user avatar
1 vote
0 answers
256 views

What caused the ethernet mac address to change after an update of my linux system?

I recently updated my machine and after a reboot I discovered that my ethernet mac address had changed. The router settings for that machine were no longer implemented as it was viewed as a different ...
ram's user avatar
  • 111
1 vote
2 answers
838 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 ...
AlexD's user avatar
  • 78
0 votes
1 answer
229 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 ...
SteepAtticStairs's user avatar
0 votes
1 answer
168 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 ...
Tina's user avatar
  • 74
1 vote
1 answer
780 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:...
acgbox's user avatar
  • 871
-1 votes
1 answer
338 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 ...
tesiman's user avatar
  • 27
1 vote
0 answers
834 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 ...
Binarus's user avatar
  • 2,583
0 votes
1 answer
1k 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: ...
Turhan Ergene's user avatar
0 votes
0 answers
51 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 ...
Jim Baker's user avatar
0 votes
0 answers
217 views

Detecting IP/MAC spoofing using iptables

Is there any way to detect IP or MAC address spoofing with iptables?
Meysam's user avatar
  • 113
0 votes
0 answers
282 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, ...
JStroop's user avatar
  • 101
0 votes
1 answer
686 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:...
Geoff's user avatar
  • 196
18 votes
7 answers
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 ...
pitosalas's user avatar
  • 637
1 vote
1 answer
167 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 ...
john doe's user avatar
  • 696
0 votes
1 answer
2k 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[...
nemi's user avatar
  • 1
1 vote
1 answer
816 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 ...
ciekawy's user avatar
  • 261
0 votes
1 answer
3k 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 ...
Stewart Bovis's user avatar
0 votes
1 answer
344 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:...
Febian Shah's user avatar
1 vote
1 answer
1k 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 ...
ztaylor's user avatar
  • 11
4 votes
1 answer
2k 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 ...
Ferit's user avatar
  • 143
0 votes
2 answers
26 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 ...
sai's user avatar
  • 77
0 votes
1 answer
1k 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 ...
Fco Javier Balón's user avatar
0 votes
0 answers
50 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 ...
Bartosz Sochacki's user avatar
0 votes
1 answer
35 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 ...
atapaka's user avatar
  • 481
0 votes
1 answer
1k 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.
Sir Muffington's user avatar
1 vote
2 answers
861 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 ...
saleph's user avatar
  • 13
-1 votes
1 answer
241 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 ...
CodeWritten's user avatar
0 votes
3 answers
4k 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 ...
Parajd's user avatar
  • 1
0 votes
1 answer
1k 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 ...
ron's user avatar
  • 5,385
1 vote
1 answer
855 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 ...
Migwell's user avatar
  • 367
0 votes
1 answer
4k 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", ...
M. Rostami's user avatar
0 votes
0 answers
591 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 ...
ron's user avatar
  • 5,385
-1 votes
1 answer
255 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....
Paulo Mendes's user avatar
0 votes
0 answers
313 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....
Pink Panther's user avatar
6 votes
3 answers
956 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,...
Rob Davie's user avatar