I have designed a solution where switch is acting as a layer 3 gateway and connecting directly to the ISP modem in a bridge mode. so the switch has Public IP . and there are couple internal vlans: vlan 2(192.168.2.1/24) and vlan4(192.168.4.1/24) configured on the switch. I have configured the layer3 interface with public IP from the Same subnet as Management and has configured default route pointing on the the Internet Gateway.
suppose switch has xxx.xxx.xxx.2/29
layer 3 interface :xxx.xxx.xxx.4/29
so we have default route with next hop 203.xxx.xxx.3
Ping to the internet sourced from vlan 1 and 2 is not working from Meraki Dashboard