1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/routnerr-2: add a few IoT VLAN devices

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2021-05-10 17:14:30 -04:00
parent 413974e997
commit 6fdc0ff716
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94
3 changed files with 49 additions and 1 deletions

View file

@ -158,6 +158,24 @@ func main() {
netaddr.MustParseIP("192.168.66.10"),
mac("3c:6a:9d:12:c4:dc"),
),
newHost(
"bedroom-fan.iot",
iot0,
netaddr.MustParseIP("192.168.66.11"),
mac("c0:c9:e3:e0:8b:44"),
),
newHost(
"bedroom-air-purifier.iot",
iot0,
netaddr.MustParseIP("192.168.66.12"),
mac("c0:c9:e3:e0:a6:5c"),
),
newHost(
"living-room-receiver.iot",
iot0,
netaddr.MustParseIP("192.168.66.13"),
mac("00:06:78:55:b3:18"),
),
},
},
WireGuard: wg,

View file

@ -105,6 +105,36 @@
"lla": "fe80::3e6a:9dff:fe12:c4dc"
},
"mac": "3c:6a:9d:12:c4:dc"
},
{
"name": "bedroom-fan.iot",
"ipv4": "192.168.66.11",
"ipv6": {
"gua": "2600:6c4a:787f:5942:c2c9:e3ff:fee0:8b44",
"ula": "fd9e:1a04:f01d:66:c2c9:e3ff:fee0:8b44",
"lla": "fe80::c2c9:e3ff:fee0:8b44"
},
"mac": "c0:c9:e3:e0:8b:44"
},
{
"name": "bedroom-air-purifier.iot",
"ipv4": "192.168.66.12",
"ipv6": {
"gua": "2600:6c4a:787f:5942:c2c9:e3ff:fee0:a65c",
"ula": "fd9e:1a04:f01d:66:c2c9:e3ff:fee0:a65c",
"lla": "fe80::c2c9:e3ff:fee0:a65c"
},
"mac": "c0:c9:e3:e0:a6:5c"
},
{
"name": "living-room-receiver.iot",
"ipv4": "192.168.66.13",
"ipv6": {
"gua": "2600:6c4a:787f:5942:206:78ff:fe55:b318",
"ula": "fd9e:1a04:f01d:66:206:78ff:fe55:b318",
"lla": "fe80::206:78ff:fe55:b318"
},
"mac": "00:06:78:55:b3:18"
}
]
},

View file

@ -106,7 +106,7 @@ in {
# Google Home and Chromecast.
avahi = {
enable = true;
interfaces = with vars.interfaces; [ "${lan0.name}" "${iot0.name}" ];
interfaces = with vars.interfaces; [ "${enp2s0.name}" "${lan0.name}" "${iot0.name}" ];
ipv4 = true;
ipv6 = true;
reflector = true;