Now I got your problem. Layer 3 switch has routed ports require ip address and can't be added in vlan.
if you want to add ports into vlan then it should be swtiched port not a routed port. to make routed port as switch port use "switchport" command under interface and use switchport acess vlan to add a port in vlan.
Further more it can communicate with VLAN1 and VLAN2 through the SVI interfaces of the VLANs (int vlan1 and int vlan2).
I hope the above info will solve your problem.