Discussion:
MAC filter
(too old to reply)
John Conover
2024-09-02 03:50:01 UTC
Permalink
The MAC filter needs a local filter for the two 16 X dual hex, (23
total,) digits.

The MAC is router usually aligned internally by the router, and
contains unique hex digits.

Does any anyone recall how to query the digits to the display?

Thanks,

John
--
John Conover, ***@panix.com, http://www.johncon.com/
Jeffrey Walton
2024-09-02 09:00:01 UTC
Permalink
Post by John Conover
The MAC filter needs a local filter for the two 16 X dual hex, (23
total,) digits.
The MAC is router usually aligned internally by the router, and
contains unique hex digits.
Does any anyone recall how to query the digits to the display?
Nowadays I think you [can] use the `ip` command to determine the MAC
or link address of an interface:

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s20f0u3c2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel mast
er virbr0 state UP mode DEFAULT group default qlen 1000
link/ether 20:7b:d2:8c:55:d4 brd ff:ff:ff:ff:ff:ff
3: wlo1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN m
ode DORMANT group default qlen 1000
link/ether 76:2f:01:0c:b6:98 brd ff:ff:ff:ff:ff:ff permaddr 00:41:0e:67:0e:7
b
altname wlp87s0
4: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mod
e DEFAULT group default qlen 1000
link/ether 20:7b:d2:8c:55:d4 brd ff:ff:ff:ff:ff:ff

Jeff
Timothy M Butterworth
2024-09-02 09:20:01 UTC
Permalink
Post by John Conover
The MAC filter needs a local filter for the two 16 X dual hex, (23
total,) digits.
The MAC is router usually aligned internally by the router, and
contains unique hex digits.
Does any anyone recall how to query the digits to the display?
You can use the "ip address" command to display the Ethernet MAC address.

ip address

wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group
default qlen 1000
link/ether d8:c0:a6:f4:cb:fd brd ff:ff:ff:ff:ff:ff
Post by John Conover
Thanks,
John
--
--
⢀⣎⠟⠻⢶⣊⠀
⣟⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀
Andy Smith
2024-09-02 12:30:02 UTC
Permalink
Hi,
Post by John Conover
The MAC is router usually aligned internally by the router, and
contains unique hex digits.
Does any anyone recall how to query the digits to the display?
$ ip -j link | jq '.[] | select(.address) | .ifname + ": " + .address'
"lo: 00:00:00:00:00:00"
"enp0s31f6: 10:7b:44:93:fa:c4"
"wlp3s0: 8a:48:9b:8d:09:da"
"br0: d2:1d:7d:50:18:08"

Thanks,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting
Geert Stappers
2024-09-02 20:00:01 UTC
Permalink
Post by Andy Smith
Post by John Conover
The MAC is router usually aligned internally by the router, and
contains unique hex digits.
Does any anyone recall how to query the digits to the display?
$ ip -j link | jq '.[] | select(.address) | .ifname + ": " + .address'
"lo: 00:00:00:00:00:00"
"enp0s31f6: 10:7b:44:93:fa:c4"
"wlp3s0: 8a:48:9b:8d:09:da"
"br0: d2:1d:7d:50:18:08"
Nice


For what it is worth:


$ ip --brief link
lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP>
enxe4b97a90028f DOWN e4:b9:7a:90:02:8f <NO-CARRIER,BROADCAST,MULTICAST,UP>
wlp59s0 UP 9c:b6:d0:b8:ee:53 <BROADCAST,MULTICAST,UP,LOWER_UP>
ovs-system DOWN 6e:bc:cb:93:09:25 <BROADCAST,MULTICAST>
ovsbr0 UNKNOWN f6:eb:8e:8b:03:4c <BROADCAST,MULTICAST,UP,LOWER_UP>
docker0 DOWN 02:42:e5:77:af:cb <NO-CARRIER,BROADCAST,MULTICAST,UP>
$


Groeten
Geert Stappers
Who did not understood the original request
--
Silence is hard to parse
Tom Furie
2024-09-02 21:00:01 UTC
Permalink
Post by Geert Stappers
Post by Andy Smith
$ ip -j link | jq '.[] | select(.address) | .ifname + ": " + .address'
"lo: 00:00:00:00:00:00"
$ ip --brief link
lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP>
And if you're interested in only the interface name and MAC address, pipe
that result to awk, so...

ip -br l | awk '{print $1,$3}'

Cheers,
Tom
--
Many people are unenthusiastic about their work.
Stefan Monnier
2024-09-02 22:50:01 UTC
Permalink
Post by Tom Furie
And if you're interested in only the interface name and MAC address, pipe
that result to awk, so...
ip -br l | awk '{print $1,$3}'
Note that the $3 won't always be a MAC address:

% ip --brief link
lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP>
[...]
tun0 UNKNOWN <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP>
%


- Stefan
gene heskett
2024-09-02 22:10:01 UTC
Permalink
Post by John Conover
The MAC filter needs a local filter for the two 16 X dual hex, (23
total,) digits.
The MAC is router usually aligned internally by the router, and
contains unique hex digits.
Does any anyone recall how to query the digits to the display?
Thanks,
John
Usually displayed on the routers home web page. If not there, check the
status pages. But you may have enter your user & pw to see that.

Cheers, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Tim Woodall
2024-09-05 00:00:01 UTC
Permalink
Hi,
Every reply I've seen talks about local macs.
To be honest I had trouble parsing the original post as a cohesive
English text. I mean it had words I understood, just not in that
particular combination.
Yes. I assumed the author wasn't an English soeaker.
Don't know a good way on ipv6, best I can think of is
ping ff02::1
ip neighbor
Nice. Thanks. And ip neighbour works too :-)
(is also the "new" way for IPv4)
Thanks,
Andy
Loading...