1) Configure port-based vlans; ex. vlan 1 has ports ex 0/1-4; vlan2 has ports ex 0/5-8;
2) Configure IP interface on vlan 1 and vlan 2; ex: IP(vlan1) = 192.168.1.1; IP (vlan2) = 192.168.2.1 – both 24 bit mask;
3) For all hosts on vlan1 and vlan 2, set their gw's to the respective switch IP interface address;
4) Now you can route between the two vlans.