Question: why vlan need ip address?
Answer: These VLAN interfaces are virtual interfaces and can be pinged as well as provide the connection point for remote management. This IP address can only be used as the default gateway on a multilayer switch. A VLAN (Virtual Local Area Network) is its own logically segregated broadcast domain.