socallinuxexpo / scale-network

SCaLE's on-site expo network configurations, wifi, tooling, and scripts
https://www.socallinuxexpo.org/
BSD 3-Clause "New" or "Revised" License
46 stars 19 forks source link

Create vlan bridge validation on netgear ar71xx #381

Open sarcasticadmin opened 3 years ago

sarcasticadmin commented 3 years ago

Description

Was unable to ping mgmt interface from anything other than the default gateway with the following configuration on the management interface for the AP:

config switch_vlan                                                                                                                                                          
        option device 'rtl8366s'                                                                                                                                            
        option ports '0t 3t 5t'                                                                                                                                             
        option vlan '44'
config switch_vlan                                                                                                                                                          
        option device 'rtl8366s'                                                                                                                                            
        option ports '0t 3t 5t'                                                                                                                                             
        option vlan '503'
...
config interface 'mgmt'                                                                                                                                                     
        option ifname 'eth0.44 eth0.503 eth1.44 eth1.503'                                                                                                                                     
        option proto 'dhcp'                                                                                                                                                 
        option reqopts '224 225'                                                                                                                                            
        option type 'bridge'

NOTE: It seems to give me weird behavior at times when mixing vlans

I think it might be a good idea to do a little bit of validation on switch_vlan config for netgear ar71xx to confirm that all interfaces in a bridge do in fact exist. But whats also not clear is that whether or not its ok to mix vlans like above. We have had some success in doing this in the past years but Im not sure if theres some kind of regression.

Acceptance Criteria

sarcasticadmin commented 1 year ago

Scenario could be fixed via #367 but will remain open since could be outstanding even after upgrade