If you are using the GUI of Home Assistant for network definitions, there is a way to set up an empty gateway easily: just enter “0.0.0.0” in every gateway field in each network interface (VLAN or not) that is not the main one (the one that you open the GUI in and usually the one that is set up first)