What does HackerNews think of iproute2mac?

CLI wrapper for basic network utilites on Mac OS X inspired with iproute2 on Linux systems - ip command.

Language: Python

There's a python script that does a passable impression of `ip`

    brew install iproute2mac
https://github.com/brona/iproute2mac
Looks like you can uses these commands if you've got iproute2mac[0] installed.

    ip link set dev en0 address 00:12:34:45:78:90
    ip link set en0 address random
    ip link set en0 address factory
[0]: https://github.com/brona/iproute2mac
It looks like iproute2mac[0] will let you change your MAC address. It can even set a random one.

Could you try if it works on your Apple device?

[0]: https://github.com/brona/iproute2mac

Your criticism is valid, but its possible to get compatibility between macOS (or another BSD) and Linux. GNU utilities are already mentioned but there's also, for example,

> What about `lsblk` or `ip`?

For a (partly compatible) equivalent to ip I can recommend iproute2mac [1]. You can also use the old utilities from BSD (ifconfig, route, etc) or the GUI.

For lsblk I found no drop-in replacement, just equivalents [2]

On top of that, Nix works on Linux and macOS.

[1] https://github.com/brona/iproute2mac

[2] https://apple.stackexchange.com/questions/107953/list-all-de...

[3] https://nixos.org