Assumption of ifconfig for Linux
See original GitHub issueWasn’t able to play with this due to its reliance on ifconfig
, where I use iproute2
.
The equivalent commands to randomize your MAC using iproute2
:
ip link set dev eth0 down
ip link set dev eth0 address `hexdump -n3 -e'/3 "00:60:2F" 3/1 ":%02X"' /dev/urandom`
ip link set dev eth0 up
Up to you if this information is useful or not, just putting it out there for others.
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Where is the statement of deprecation of ifconfig (on linux)?
A lot of people is stating that the ifconfig command is deprecated in favor of the ip one (on linux at least). This...
Read more >All about Linux: Ifconfig Command - Explained in Detail
ifconfig is a command line tool used to configure a network interface in Linux.It can be used to set-up any/all the network interfaces...
Read more >ifconfig Command - IBM
The ifconfig function displays the current configuration for a network interface when no optional parameters are supplied. If a protocol family is specified, ......
Read more >Monitoring the Interface Configuration With the ifconfig ...
Use the ifconfig command to determine basic information about the interfaces of a particular system. For example, a simple ifconfig query can tell...
Read more >Linux ifconfig Command Explained With 19 Practical Examples
The ifconfig command prints an output when executed without arguments or with the interface name only. If used with arguments, there is no ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll just add a note to the readme that this package requires
ifconfig
on Linux. If someone wants to send a PR later, that’s always welcome.+1 on this point, if I get the chance in the next week or two, I will offer a PR.