If we on wrt3200acm make an test setup that is little extreme but it shows what is going on pretty clear.
If we first makes three interfaces with three lengths of VLAN number, 33, 222 and 1111. We also have the wan at number 2 but that won't matter here. We also make a big bridge name called br-switch10.
root@OpenWrt:~# uci export network
package network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'ip:secret6::/48'
config device
option name 'wan'
option macaddr 'mac:secret'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
config device
option type 'bridge'
option name 'br-switch10'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config bridge-vlan
option device 'br-switch10'
option vlan '1111'
list ports 'lan1:u'
list ports 'lan2:u'
config bridge-vlan
option device 'br-switch10'
option vlan '222'
list ports 'lan3:u'
config bridge-vlan
option device 'br-switch10'
option vlan '33'
list ports 'lan4:u'
config interface 'block1'
option device 'br-switch10.1111'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.5.1'
option ip6assign '64'
option ip6hint '1111'
config interface 'block2'
option device 'br-switch10.222'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.30.1'
option ip6assign '64'
option ip6hint '222'
config interface 'block3'
option device 'br-switch10.33'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.70.1'
option ip6assign '64'
option ip6hint '33'
root@OpenWrt:~#
if we now run ip address
it looks like this:
root@OpenWrt:~# ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1508 qdisc mq state UP qlen 1024
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
inet6 mac:secret3/64 scope link
valid_lft forever preferred_lft forever
3: lan4@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-switch10 state LOWERLAYERDOWN qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
4: lan3@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-switch10 state UP qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
5: lan2@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-switch10 state LOWERLAYERDOWN qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
6: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-switch10 state LOWERLAYERDOWN qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
7: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether mac:secret brd ff:ff:ff:ff:ff:ff
inet ip:secret1/24 brd ip:secret2 scope global wan
valid_lft forever preferred_lft forever
inet6 ip:secret3/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 ip:secret4/64 scope global deprecated dynamic noprefixroute
valid_lft 1779sec preferred_lft 0sec
inet6 ip:secret5/64 scope link
valid_lft forever preferred_lft forever
13: br-switch10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
inet6 mac:secret3/64 scope link
valid_lft forever preferred_lft forever
14: br-switch10.33@br-switch10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
inet 192.168.70.1/24 brd 192.168.70.255 scope global br-switch10.33
valid_lft forever preferred_lft forever
inet6 mac:secret3/64 scope link
valid_lft forever preferred_lft forever
root@OpenWrt:~#
wan works and get an upstream IP address at line 7, it is also possible to ping 8.8.8.8 with the serial port. The big bridge is also loaded at line 13.
At line 14 we se that the interface with VLAN 33 is also loaded and has its gateway IP address. But that's it, we are missing the VLAN 222 and 1111 interfaces.
'br-switch10.33' at line 14 is 14 chars.
Now we continue and remove 's' in br-switch10 so it becomes br-witch10 and reloads the network setup.
Now we get a network config that looks like this:
root@OpenWrt:~# uci export network
package network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'ip:secret6::/48'
config device
option name 'wan'
option macaddr 'mac:secret'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
config device
option type 'bridge'
option name 'br-witch10'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config bridge-vlan
option device 'br-witch10'
option vlan '1111'
list ports 'lan1:u'
list ports 'lan2:u'
config bridge-vlan
option device 'br-witch10'
option vlan '222'
list ports 'lan3:u'
config bridge-vlan
option device 'br-witch10'
option vlan '33'
list ports 'lan4:u'
config interface 'block1'
option device 'br-witch10.1111'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.5.1'
option ip6assign '64'
option ip6hint '1111'
config interface 'block2'
option device 'br-witch10.222'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.30.1'
option ip6assign '64'
option ip6hint '222'
config interface 'block3'
option device 'br-witch10.33'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.70.1'
option ip6assign '64'
option ip6hint '33'
root@OpenWrt:~#
and if we run ip address
it looks like this:
root@OpenWrt:~# ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1508 qdisc mq state UP qlen 1024
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
inet6 mac:secret3/64 scope link
valid_lft forever preferred_lft forever
3: lan4@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-witch10 state LOWERLAYERDOWN qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
4: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-witch10 state LOWERLAYERDOWN qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
5: lan2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-witch10 state UP qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
6: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-witch10 state LOWERLAYERDOWN qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
7: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether mac:secret brd ff:ff:ff:ff:ff:ff
inet ip:secret1/24 brd ip:secret2 scope global wan
valid_lft forever preferred_lft forever
inet6 ip:secret3/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 ip:secret4/64 scope global dynamic noprefixroute
valid_lft 1799sec preferred_lft 1799sec
inet6 ip:secret5/64 scope link
valid_lft forever preferred_lft forever
15: br-witch10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
inet6 mac:secret3/64 scope link
valid_lft forever preferred_lft forever
16: br-witch10.222@br-witch10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
inet 192.168.30.1/24 brd 192.168.30.255 scope global br-witch10.222
valid_lft forever preferred_lft forever
inet6 ip:secret6:222::1/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 mac:secret3/64 scope link
valid_lft forever preferred_lft forever
17: br-witch10.33@br-witch10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
inet 192.168.70.1/24 brd 192.168.70.255 scope global br-witch10.33
valid_lft forever preferred_lft forever
inet6 ip:secret6:33::1/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 mac:secret3/64 scope link
valid_lft forever preferred_lft forever
root@OpenWrt:~#
'16: br-witch10.222@br-witch10'...Look now we have another VLAN and interface fully loaded and working.
But 16: 'br-witch10.222' is still 14 char.
We move on and remove another char in the bridge, 'w' this time.
This give a new network config that looks like this:
root@OpenWrt:~# uci export network
package network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'ip:secret6::/48'
config device
option name 'wan'
option macaddr 'mac:secret'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
config device
option type 'bridge'
option name 'br-itch10'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config bridge-vlan
option device 'br-itch10'
option vlan '1111'
list ports 'lan1:u'
list ports 'lan2:u'
config bridge-vlan
option device 'br-itch10'
option vlan '222'
list ports 'lan3:u'
config bridge-vlan
option device 'br-itch10'
option vlan '33'
list ports 'lan4:u'
config interface 'block1'
option device 'br-itch10.1111'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.5.1'
option ip6assign '64'
option ip6hint '1111'
config interface 'block2'
option device 'br-itch10.222'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.30.1'
option ip6assign '64'
option ip6hint '222'
config interface 'block3'
option device 'br-itch10.33'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.70.1'
option ip6assign '64'
option ip6hint '33'
root@OpenWrt:~#
And ip address
root@OpenWrt:~# ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1508 qdisc mq state UP qlen 1024
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
inet6 mac:secret3/64 scope link
valid_lft forever preferred_lft forever
3: lan4@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-itch10 state LOWERLAYERDOWN qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
4: lan3@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-itch10 state LOWERLAYERDOWN qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
5: lan2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-itch10 state UP qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
6: lan1@eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue master br-itch10 state LOWERLAYERDOWN qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
7: wan@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether mac:secret brd ff:ff:ff:ff:ff:ff
inet ip:secret1/24 brd ip:secret2 scope global wan
valid_lft forever preferred_lft forever
inet6 ip:secret3/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 ip:secret4/64 scope global dynamic noprefixroute
valid_lft 1670sec preferred_lft 1670sec
inet6 ip:secret5/64 scope link
valid_lft forever preferred_lft forever
18: br-itch10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
inet6 mac:secret3/64 scope link
valid_lft forever preferred_lft forever
19: br-itch10.1111@br-itch10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
inet 192.168.5.1/24 brd 192.168.5.255 scope global br-itch10.1111
valid_lft forever preferred_lft forever
inet6 ip:secret6:1111::1/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 mac:secret3/64 scope link
valid_lft forever preferred_lft forever
20: br-itch10.222@br-itch10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
inet 192.168.30.1/24 brd 192.168.30.255 scope global br-itch10.222
valid_lft forever preferred_lft forever
inet6 ip:secret6:222::1/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 mac:secret3/64 scope link
valid_lft forever preferred_lft forever
21: br-itch10.33@br-itch10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether mac:secret2 brd ff:ff:ff:ff:ff:ff
inet 192.168.70.1/24 brd 192.168.70.255 scope global br-itch10.33
valid_lft forever preferred_lft forever
inet6 ip:secret6:33::1/64 scope global noprefixroute
valid_lft forever preferred_lft forever
inet6 mac:secret3/64 scope link
valid_lft forever preferred_lft forever
root@OpenWrt:~#
Look how nice, here they all are at line 19, 20 and 21. All the VLAN and working interfaces with gateway IP address fully operational.
Still we have 'br-itch10.1111' that now is 14char and therefore is now working.