Bloed, zweet, geen tranen en doorzettingsvermogen; het werkt!
Uiteindelijk een nieuwe VLAN interface (2) op de switch0 aangemaakt.
Het IP adres van de switch0 afgehaald en deze aan switch0.2 gegeven.
De switch0 interface
VLAN Aware gemaakt en voor ETH1, ETH2 en ETH3 vervolgens VLAN 2 als pvid ingesteld.
Op ETH1, die naar de achterliggende US switch gaat, ook VLAN 661 als vid ingesteld.
In de Unifi Controller een extra
VLAN Only netwerk aangemaakt voor VLAN 2.
De
VLAN_Only voor VLAN 661 (iTV) had ik al.
Voor de iTV routering is ook een switch port nodig, welke ik ook al had. Native Network is het VLAN 661 netwerk, verder geen Tagged Networks.
Verder is de switch port verzameling "all", met als Native Network het default LAN netwerk en alle VLANs als Tagged Networks in gebruik.
Op de eerste US-8 switch hebben alle poorten het profiel "all".
Op de tweede US-8 switch, waar de iTV ontvanger op zit, hebben bijna alle poorten ook het profiel "all". Alleen de poort waar de iTV ontvanger op zit heeft het aangemaakte profiel "iTV".
En that's it!
Het iTV verkeer gaat netjes over VLAN 661 door alleen ETH1 en niet meer door alle ETHs
Nu zou ik nog verder kunnen knutselen om van het profiel "all" af te komen en de boel verder dicht te timmeren, maar dit werkt vooralsnog en ik heb geen zin om de boel weer te vernaggelen

.
Eventueel kan ik nog redelijk veilig VLANs toevoegen en toekennen aan SSIDs
Ploaties!
Het relevante stuk JSON:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
| interfaces {
ethernet eth0 {
description FTTH
duplex auto
mtu 1512
speed auto
vif 4 {
address dhcp
description "KPN IPTV"
dhcp-options {
client-option "send vendor-class-identifier "IPTV_RG";"
client-option "request subnet-mask, routers, rfc3442-classless-static-routes;"
default-route no-update
default-route-distance 210
name-server update
}
mtu 1500
}
vif 6 {
description "KPN Internet"
mtu 1508
pppoe 0 {
default-route auto
dhcpv6-pd {
no-dns
pd 0 {
interface switch0 {
host-address ::1
prefix-id :1
service slaac
}
prefix-length /48
}
rapid-commit enable
}
firewall {
in {
ipv6-name WANv6_IN
name WAN_IN
}
local {
ipv6-name WANv6_LOCAL
name WAN_LOCAL
}
}
idle-timeout 180
ipv6 {
address {
autoconf
}
dup-addr-detect-transmits 1
enable {
}
}
mtu 1500
name-server auto
password ppp
user-id XX-XX-XX-XX-XX-XX@internet
}
}
}
ethernet eth1 {
description "Port 1 (switch)"
duplex auto
speed auto
}
ethernet eth2 {
description "Port 2 (Hass)"
duplex auto
speed auto
}
ethernet eth3 {
description "Port 3 (Hue)"
duplex auto
speed auto
}
ethernet eth4 {
address 192.168.10.2/24
description "Port 4"
duplex auto
poe {
output off
}
speed auto
}
loopback lo {
}
switch switch0 {
description "LAN - switch"
ipv6 {
dup-addr-detect-transmits 1
router-advert {
cur-hop-limit 64
link-mtu 0
managed-flag false
max-interval 600
name-server 2a02:a47f:e000::53
name-server 2a02:a47f:e000::54
other-config-flag false
prefix ::/64 {
autonomous-flag true
on-link-flag true
valid-lifetime 2592000
}
radvd-options "RDNSS 2a02:a47f:e000::53 2a02:a47f:e000::54 {};"
reachable-time 0
retrans-timer 0
send-advert true
}
}
mtu 1500
switch-port {
interface eth1 {
vlan {
pvid 2
vid 661
vid 2000
}
}
interface eth2 {
vlan {
pvid 2
vid 2000
}
}
interface eth3 {
vlan {
pvid 2
vid 2000
}
}
vlan-aware enable
}
vif 2 {
address 192.168.10.1/24
description VLAN_Local
}
vif 661 {
address 192.168.100.1/28
description VLAN_iTV
}
vif 2000 {
address 192.168.200.1/24
description test_vlan
}
}
} |