ioc32 / openhrc

Open Household Router Contraption
Other
13 stars 4 forks source link

Template /etc/ethers #15

Closed saghul closed 5 years ago

saghul commented 6 years ago

Use the hostname we use for DNS, this should make for easier WOL since arp -W uses it.

https://man.openbsd.org/ethers.5

/cc @ioc32

ioc32 commented 6 years ago

Worthwhile addition ;-)

Quickly checked it and it does indeed work.

# cat /etc/ethers
11:11:11:0f:af:90 x.home.lan
22:22:22:55:3f:b4 y.home.lan
# arp -W x.home.lan re1

Yields:

12:11:59.300244 00:00:00:33:15:c5 ff:ff:ff:ff:ff:ff 0000 116: 1111110f.af:90:11:11:11:0f.af90 > 1111110f.af:90:11:11:11:0f.af90: ipx-#af90 65505
ioc32 commented 5 years ago

Shipped!