SonicWall switches are L2 switches with the added functionality of static routing. The switch has a default route added by default once it is provisioned to point all traffic towards the gateway IP through which it is provisioned.Based on the devices connected to various interfaces of the switch, the connected routes get updated and cannot be deleted/modified.
This article explains the steps to add static routes on SonicWall switch.
EXAMPLE: Let us consider the following scenario where firewall 1 has two switches connected to it, Switch 1 and Switch 2. The VLAN network associated with port 11 is VLAN 11 with the network being 192.168.11.0/24. The X4:V11 IP for firewall 2 is 192.168.11.1. In this scenario, all traffic passing through Switch 1 for destination network 192.168.200.0/24 needs to use 192.168.11.1 as the gateway.
Adding Static Route