are the other gateways in the same subnet (10.4.2.0/24)? If not you need to add the corresponding route (or the default route). Maybe you need to describe your VLAN/interface/ip address schema…
“all the VLANs are in the same subnet” - it sounds crazy for me. Either I am too tired now or you have something strange in the network schema. If we are talking about routing then IMHO you cannot have one subnet split into multiple VLANs. You can only split the bigger subnet into smaller ones and assign them to VLANs (i.e. to interface attached to a VLAN).
And if you have multiple VLANs in a bridge it is not usually good thing too.