Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
68 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 $...
0
votes
2answers
181 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 ...
0
votes
0answers
47 views

Policy Based Routing with multiple outbound gateways based on source MAC

I'm implementing a central pool of servers to handle "over capacity" error messages in a legacy network, and I'm under the impression that I need to do some tricky policy based routing with ...
-4
votes
2answers
103 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
votes
1answer
45 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 ...
0
votes
1answer
197 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
140 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
110 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
74 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 ...
2
votes
0answers
138 views

automatic mac address randomization on up-to-date Debian 9.5 with 4.18-amd64, Intel wifi 7260, NetworkManager, KDE/Networks fails?

I am trying to have a random mac address by default before I connect to any network. My results are ambiguous. 1. My approach 1.1) updated my box to the latest backported Debian 9.5 (as of 23 Oct, ...
0
votes
2answers
30 views

link MAC adresses and port IDs

I have text file which include MAC address and its relevant ports, these were ordered in a way where the MAC address matches the single number of the same line numbers, in other words MAC address on ...
1
vote
0answers
29 views

MAC/IP binding doesn't work

I use Centos-7 server for assigning MAC/IP. But some times users get other IP addresses. My dhcpd.conf authoritative; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.10 192.168.1.254;...
0
votes
1answer
33 views

Virtual Machine MAC Address or Host Operating System MAC Address?

Let's say I'm browsing from Ubuntu Virtual Machine using Firefox. IF the website I am visiting can see the MAC Address, which MAC address will it see? Is MAC Address of Ubuntu VM or MAC Address of ...
1
vote
3answers
405 views

NMAP network scan shows IP-addresses and MAC addresses of items that are then missing from a subsequent arp-cache dump?

The logic I have is this get the definition of the subnet use nmap to scan every item in the subnet to populate the arp cache use the /usr/sbin/arp tool to dump the arp cache parse the arp-cache to ...
0
votes
0answers
288 views

How many mac addresses for a bridge?

I have a bridge set up on a Ubuntu box using two ethernet devices. It seems to work, but I am trying to understand some network traffic, and why these show up in my dhcp client list (/var/lib/dhcp/ is ...
0
votes
1answer
159 views

how to show only mac address on virtualbox

I'm trying to know a way to show only MAC address from every NIC I have on any running virtual machine: So far I have this: ipcopv2 ----------------------------------------------- Groups: /...
5
votes
1answer
717 views

FreeBSD static ARP entry when link cycles

we are trying to add a static ARP entry to a FreeBSD system. This works well with, for example, arp -S 172.16.16.9 11:54:33:A8:B2:6B . We have added this to a startup script to survive a reboot. ...
1
vote
8answers
383 views

How to pipe & convert the first field from decimal to hex

I've got the following onscreen output 170.170.170.0.156.96 24 that I would like to pipe & convert to the following format b8:27:eb:ef:3b:4a 24 in essence it is a decimal to hex conversion of ...
0
votes
2answers
460 views

How to assign static ip to devices connecting over wifi using Network Manager?

I have several devices connected to my wifi, and I need to assign them a static ip address, but NetworkManager gives them sometimes different ip addresses. I tried adding a file in /etc/network/if-up....
0
votes
0answers
333 views

Can I use WPA_Supplicant to hardcode a specific MAC address?

I'm trying to use a raspberry pi as an HTTP server from my home network. I have to do this via a USB wireless adapter instead of CAT5 for a number of reasons that I won't get into. Problem is, I can'...
1
vote
1answer
102 views

How to find the MAC address of devices in network path when I do a tracerout?

Scenario: I am doing traceroute (or any path trace program) from sydney-server1 to london-server2. I can see the route its going with device name and IP address. Is there anyway, I can get those ...
1
vote
0answers
50 views

Are virtual devices in Linux ever assigned duplicate MACs (actually duplicate IPv6 link-local addresses)?

I'm creating a completely virtual network between different network namespaces on the same host. I'm going to be telling programs to use IPv6 link-local addresses for networking. One problem I ...
1
vote
0answers
76 views

Reception of Frames with Destination MAC ALL ZERO

We are trying to implement GOOSE message (a multicast message, Generic Object Oriented Substation Event, part of IEC61850 protocol standard) subscription Module. In almost all cases, we are able to ...
8
votes
2answers
8k views

How to stop MAC address from changing after disconnecting?

so i change my MAC address with macchanger -A wlp68s0b1 at boot with crontab, here is what happens when i disconnect and reconnect : while connecting after boot : rahman@debian:~$ macchanger -s ...
0
votes
2answers
633 views

How to avoid mac-adress spoofing auto reset on connecting

Everytime I spoof my mac-adress on Ubuntu using different approaches including macchanger it auto resets as soon as I actually try to reconnect to the network. This is what my problem looks like: ...
1
vote
2answers
277 views

Configure Broadcast domain in Linux

In Linux, how can I see all MAC addresses present in a broadcast domain, and how can I configure a broadcast domain?
-2
votes
1answer
394 views

How to check mac address of the cable? [closed]

For example I have a cable with an Internet connection, but I don't know the mac address of this connection. When I plug it to my laptop, it doesn't work. How could I get it from a command-line? UPD: ...
1
vote
0answers
38 views

How can I find the chipset of my Arduino board?

I've recently purchased an Arduino Pro Micro, which I am using as a BadUSB for experimental purposes. On Hak5, they spoofed the MAC Address of a USB Rubber Ducky to look like an Apple device (Hak5 ...
7
votes
3answers
23k views

Change Mac Address permanently inside /etc/network/interfaces

QUESTION: How might I be able to specifically change the Mac Address of the enp3s0 and wlp2s0 interfaces through the /etc/network/interfaces file? What code would I have to include inside? I have ...
0
votes
1answer
103 views

macchanger working then stopping

When I run the following code: sudo ifconfig xxxx down sudo macchanger -r xxxx sudo ifconfig xxxx up I do see a change in the mac address when doing the command ifconfig. However after a certain ...
2
votes
2answers
971 views

Cannot connect to internet after changing MAC Address

I've been making a BASh script that changes your MAC Address to that of any manufacturer of your choice from a list. At the last part of the script that is run, it stops before finishing. Here is the ...
2
votes
2answers
58 views

Why is my IP address changing every time I flash a new rootfs?

I'm working on a Raspberry Pi 3 system and building my own rootfs using Buildroot. At first, I was using BusyBox as the init system and when configuring the on-board wifi card using wpa_supplicant, ...
3
votes
2answers
1k views

samsung S7 android fails to tether and not setting up network configuration

Connect your Samsung S7 via usb to your favorite linux machine. Goto 'Settings -> Connections -> mobile hotspot and Tethering' and enable "USB tethering". Android will now enable tethering with the ...
0
votes
1answer
381 views

Samba share security changes: read-only and IP/MAC restrictions

I have a samba share and I want to make some changes for security. Today everybody can read and write my files. It's not safe. I'd like to do the these things: 1- set up for everybody just read files ...
2
votes
0answers
337 views

Why do I get a random MAC address every boot in a linux embedded system?

I started messing around with my raspberry pi and I build a simple linux embedded system using buildroot and I found my IP address was different to what I was expecting (I had DHCP configured) then I ...
0
votes
1answer
2k views

No internet after using macchanger - Linux Mint 18

I am trying to change my MAC address via macchanger in linux mint 18. I use : ifconfig wlp3s0 down //must use, to avoid error "interface up" macchanger -rb wlp3s0 ifconfig wlp3s0 up The MAC ...
0
votes
1answer
17k views

How to find MAC address on RHEL 7.3?

How do I find my MAC address on RHEL 7.3? When I ran ifconfig -a | grep HWaddr, nothing showed. It's an EC2 instance, if that means any deviation from the norm.
2
votes
0answers
499 views

How to assign multiple different interface names on the same NIC card (hardware MAC address)

I am using an Ubuntu Linux system. For my task I have to run some modules by executing the respective scripts. All the modules must run at the same time in the background but all have different ...
2
votes
1answer
2k views

dnsmasq as dns only, map mac-address to hostname for dynamic ip

I'm using dnsmasq as a DNS server only (no dhcp), mapping Lan's hostnames to relative ip using /etc/hosts, but in the same Lan there's some ip assigned dynamically by a router (and I'd like to keep so,...
4
votes
3answers
39k views

How to view your computer's MAC address using 'ifconfig'?

After substantial research I still haven't found an answer to this query, how can I modify the command 'ifconfig' to show my computer's MAC address?
0
votes
3answers
181 views

How to improve performance in generating MAC addresses with od?

In my script I need to randomly generate MAC addresses. The code below is from a larger script extracted, that's why the MAC address calculation is in a separate function. This works fine with the ...
3
votes
1answer
12k views

Forcing HWADDR to correct itself in ifcfg-eth0 network script on boot CentOS 7

Question: I would like to find a way to have the HWADDR line in the ifcfg-eth0 script verify/update itself on-boot in case it changes when a clone or copy of the VM occurs. Is there a way to do so? ...
15
votes
2answers
7k views

Why assign MAC and IP addresses on Bridge interface

Say I create a bridge interface on linux (br0) and add to it some interfaces (eth0, tap0, etc.). My understanding is that this interface act like a virtual switch with all its interfaces/ports that I ...
1
vote
1answer
80 views

MAC address through ad hoc wifi

When I create ad hoc wifi network with shared Ethernet connection to router, does the router register only the ad hoc host MAC address or all MACs of devices connected to router via the ad hoc network?...
2
votes
0answers
352 views

ERROR Conterface Interface up or insufficient permissions: Too many open files in system

What does this mean 'Too many open files in system'. I have set ulimit -n 70000 so there isn't a limitation... [ERROR] Could not change MAC: interface up or insufficient permissions: Too many open ...
2
votes
1answer
9k views

Why can't I change my MAC address?

I'm trying to change my MAC address using macchanger but it seems as if my device is not able to spoof a different address? I don't know but it seems as if no where has a solution to this. root@...
1
vote
0answers
408 views

ddwrt to openwrt; blocking a host name or domain based on mac address

I'm a recent convert from ddwrt to openwrt. On ddwrt, I could use the lines below to block the amz address for my firetv. I tried doing this on openwrt, but I can still access the address. insmod ...
1
vote
1answer
618 views

How to print all MAC addresses of devices interacting with wifis in my area to stdout

How do I configure a tool like wireshark, kismet, tcpdump to passively listen to wifi traffic? How do I get one of these tools to print these MAC addresses to stdout? I want just one MAC address per ...
3
votes
2answers
4k views

Change MAC address of network interface on lower level

I know that I can change a network interface's MAC address by bringing the interface down, using a command like ifconfig eth0 hw ether 00:11:22:33:44:55 or ip link set eth0 address 00:11:22:33:44:55 ...
4
votes
1answer
637 views

Mac randomisation with systemd?

Is it possible to randomise the mac address with systemd itself? I have heard that it is possible in newer versions of systemd. This is my systemd version: systemd --version systemd 229 +PAM +AUDIT +...