packet tracer – How you can implement inter-vlan routing on this configuration on L3 swap

I wish to allow inter-vlan routing on L3 swap. I’ve achieved this by the next instructions executed on Gig1/0/16 and Gig1/0/10 and setting the respective (192.168.x.1) as gateway on the gadgets belonging to vlan x. Then inter-vlan routing works.
ip routing
interface vlan 30
ip tackle 192.168.30.1 255.255.255.0
no shutdown
exit
interface vlan 20
ip tackle 192.168.20.1 255.255.255.0
no shutdown
exit
interface vlan 10
ip tackle 192.168.10.1 255.255.255.0
no shutdown
exit
interface vlan 99
ip tackle 192.168.99.1 255.255.255.0
no shutdown
exit
Nonetheless in my script the professor makes use of an extra command
S1(config)#interface Fa0/40
S1(config-if)#no switchport
S1(config-if)#ip tackle 10.30.30.1 255.255.255.0
As I perceive it one port ought to turn out to be a routing port and this port can then be used to route visitors between vlans by way of the L3 swap. However which port ought to I take? I attempted it with Gig1/0/16 however it didn’t work.