while configuraing router for trunking i got this message...

trying to enable truk for vlan 2, with the following commands
Router(config)#int e0.2
Router(config-subif)#ip address 172.16.2.1 255.255.0.0
Router(config-subif)#encapsulation dot1q 2
I got this msg as soon as i entered the ip address:
Configuring IP routing on a LAN subinterface is only allowed if that
subinterface is already configured as part of an IEEE 802.10 or ISL vLAN.
what does this mean?