why would a layer 2 switch need an ip address