Hey there guys!

I have a question.. Let's say I set up a switch with two VLANs... A VLAN 10 and VLAN 20.. I connect a host to VLAN 10, what default gateway should I enter on the host (computer) the routers ip or the VLAN 10 ip i set up using the command:
...# interface vlan 10
...# ip address xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy
Is it if I use the Vlan 10 ip as default gateway I will only have access to the VLAN 10 and not outside it?

What will happen if I assign VLANs 10 ip address as default gateway?