This is how I got my vlans to work. Don't know if all settings are necessary but here they are.
Hope this helps somebody.
Router settings
Linksys BEFVP41 Settings:
LAN IP Address: 192.168.2.254
Subnet Mask: 255.255.255.0
DHCP: Enabled
Starting IP Address: 192.168.2.2
DNS:
#1: 192.168.2.254
#2: 4.2.2.1
Static Routing:
#1
Destination LAN IP: 192.168.3.0
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.2.1
Hop Count:1
Interface: LAN
#2
Destination LAN IP: 192.168.4.0
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.2.1
Hop Count:1
Interface: LAN
_____________________________________
Switch Settings
D-link DES-3326SR Settings:
Basic setup
Basic Switch Setup:
Get IP From: Manual
IP Address: 192.168.1.1
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.2.254
VLAN Name: default
VLAN Configurations:
802.1Q VLANs
VLAN ID: 1
VLAN Name: default
Advertisment: Enabled
Members: 1 untagged
VLAN ID: 2
Advertisment: Enabled
Members: 2-8 untagged
VLAN ID: 3
Advertisment: Enabled
ports: 9-16 untagged
VLAN ID: 4
Advertisment: Enabled
prots: 17-26 untagged
Layer 3 IP Networking:
Setup IP Interfaces:
Interface Name: System
IP Address: 192.168.1.1
Subnet Mask: 255.255.255.0
VLAN Name: default
Active: Yes
Interface Name: 192.168.2.1
IP Address: 192.168.2.1
Subnet Mask: 255.255.255.0
VLAN Name: vlan2
Active: Yes
Interface Name: 192.168.3.1
IP Address: 192.168.3.1
Subnet Mask: 255.255.255.0
VLAN Name: vlan3
Active: Yes
Interface Name: 192.168.4.1
IP Address: 192.168.4.1
Subnet Mask: 255.255.255.0
VLAN Name: vlan4
Active: Yes
RIP Settings:
RIP State:
RIP Status: Enabled
Setup RIP:
Interface Name: System
IP Address: 192.168.1.1
Tx Mode: Disabled
Rx Mode: Disabled
Auth: Diabled
State: Disabled
Interface Name: 192.168.2.1
IP Address: 192.168.2.1
Tx Mode: V2 Only
Rx Mode: V1 or V2
Auth: Diabled
State: Enabled
Interface Name: 192.168.3.1
IP Address: 192.168.3.1
Tx Mode: V2 Only
Rx Mode: V1 or V2
Auth: Diabled
State: Enabled
Interface Name: 192.168.4.1
IP Address: 192.168.4.1
Tx Mode: V2 Only
Rx Mode: V1 or V2
Auth: Diabled
State: Enabled
Forwarding:
IP Forwarding:
Static/Default Routes:
#1
IP Address: 0.0.0.0
Subnet Mask: 0.0.0.0
Gateway IP: 192.168.2.254
Metric: 1
#2
IP Address: 192.168.2.0
Subnet Mask: 255.255.255.0
Gateway IP: 192.168.2.1
Metric: 1
#3
IP Address: 192.168.3.0
Subnet Mask: 255.255.255.0
Gateway IP: 192.168.2.254
Metric: 1
#4
IP Address: 192.168.4.0
Subnet Mask: 255.255.255.0
Gateway IP: 192.168.2.254
Metric: 1
Switch Utilities:
Others:
BOOTP/DHCP Relay:
BOOTP/DHCP Relay Status: Enabled
BOOTP/Hops count Limit: 4
BOOTP/DHCP Relay Time Threshold (sec): 0
BOOTP/DHCP Relay Interface Configurations:
Interface Name: 192.168.3.1
server 1: 192.168.3.1
Interface Name: 192.168.4.1
Server 1: 192.168.4.1
DNS Relay:
DNS Relay State: Enabled
Name Server [1]: 192.168.2.254
DNS Relay Cache Status: Disabled
DNS Relay Static Table Lookup Status: Enabled
DNS Relay - Static Table Configurations:
Domain Name: vlan2
IP Address: 192.168.2.1
Domain Name: vlan3
IP Address: 192.168.3.1
Domain Name: vlan4
IP Address: 192.168.4.1
Plug router into vlan2, plug PCs into vlan2, vlan3, or vlan4
Configure static IP settings on each PC hooked to a vlan, e.g., vlan4
IP Address: 192.168.4.105
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.4.1