Can't get to your web site.. WHat you want to do should work fine. Let's define some givens, first:
The SonicWall router has two interfaces - lets call them LAN-1 (L1) and WAN-1 (W1).
The WRT54G routers two interfaces - lets call them LAN-2 (L2) and WAN-2 (W2).
The first LAN subnet will be 192.168.32.0 / 24.
The second LAN subnet will be 192.168.40.0 /24.
(Change these as appropriate, but be consistent)
The SonicWall W interface is connected to the Internet and likely has a DHCP assigned address - we don't really care, so long as that interface has the default gateway.
Manually configure the SonicWall as follows:
Interface L1 should have a static address - let's use 192.168.32.1, 255.255.255.0 for the netmask, and no gateway.
Create a static route for the LAN-2 address range, forwarding to the WRT54G - ROUTE: (network) 192.168.40.0 (netmask) 255.255.255.0 (gateway) 192.168.32.2
Configure DHCP server for LAN-1 using 192.168.32.64-127, mask 255.255.255.0, and gateway 192.168.32.1. You'll neeed to configure DNS as appropriate.
Manually configure the WRT54G as follows:
Interface W2 should be physically connected to LAN 1 and assigned a static configuration. Use 192.168.32.2 for the address, 255.255.255.0 for the netmask, and 192.168.32.1 for the gateway.
Interface L2 should be assigned a static address - use 192.168.40.1, netmask of 255.255.255.0, and no gateway.
Configure DHCP server for LAN-2 using 192.168.40.64-127, mask 255.255.255.0, and gateway 192.168.40.1. You'll neeed to configure DNS as appropriate.
The addresses for DHCP provide a range of 64 addresses on each LAN segment - adjust as needed for your needs. This is just an example to illustrate the settings for each network.
The LAN layout is:
(Internet)--[W1-SonicWall-L1]--.1--192.168.32.0--.2--[W2-WRT54G-L2]--.1--192.168.40.0
Users in LAN-1 will use L1 as their gateway. Traffic to LAN-2 will hit the SonicWall and be forwarded back to W2 on the WRT54G and delivered via the L2 interface. Users on LAN-2 will use L2 as their gateway. Traffic to LAN-1 will hit the WRT54G and be delivered via the W2 interface. Traffic to the Internet will be forwarded to L1 and routed to the W1 interface on the SonicWall. You should now be able to connect to either LAN-1 or LAN-2 and ping addresses on the other network, as well as connect to the Internet.
Glenn