Hi, I'm trying to build a VLAN router with a singe NIC (tried sis and fxp). I have two subnets (192.168.1.1/24, 192.168.2.1/24) on independent VLANs. I'm stuck because the router is unable to exchange data with the VLAN clients.
I have a Netgear FS726T switch that is VLAN capable, and vlan(4) says my cards (sis, fxp) are are also VLAN ready. The cards and switch are both 100BT. I tried OpenBSD 3.9 (and FreeBSD 6.1) have the following problems: On my box, I've used: ifconfig vlan1 vlan 1 vlandev sis0 192.168.1.1 255.255.255.0 up ifconfig vlan2 vlan 2 vlandev sis0 192.168.2.1 255.255.255.0 up The switch is setup so that the router's port is tagged, while all other ports are untagged. If I use the default MTU 1500 on both the vlan interface and the parent interface, I'm unable to transfer large data between the router and clients on my LAN. Running top on the router while logged in over ssh from a client machine would kill the connection. But reducing the MTU of the vlan pseudo interface to 1492 makes things faster, but I still get repeated ping timeouts and my packet loss is ~10%. The routing between VLANs is terribly slow (~500 bytes/sec). I can't figure out what I'm doing wrong. My understanding is that everything should be handled by the switch and the router and the the whole process should be transparent to the client machines. My understanding of the packets as they leave my router are: *BSD --> VLAN frames (1504 bytes) --> switch/trunk --> switch --> untagged frames (1500 bytes) --> client ...and the entire process is reversed during replies. I can't figure out what I'm doing wrong. Can someone please help? I'm at wits end! - Raja

