How can i configure ip address to cisco switch without configuring vlan. I have configured ip with vlan.
A layer-2 switch can have only one management address assigned to it (on a single VLAN.) You can have as many VLANs as you like, but only one interface vlan# can be no shutdown at a time.
A layer-3 switch can have secondary addresses on any routed interfaces. Routed interfaces are usually limited to VLANs, however, some switches do allow switched interface to be converted to non-switch mode (
Additionally, if the switch has a dedicated, out-of-band management interface, it can have an address as well. That's the only non-routed interface that supports layer-3 functions.
You can turn a layer 2 switchport into a layer 3 port and assign an IP address if you do no wish to use a vlan interface.
Note, you must have ip routing enabled and the switch must support it.
Use the following commands to do so.
Switch(config)# ip routing Switch(config)# interface gi 0/1 Switch(config-if)# no switchport Switch(config-if)# ip address 10.0.0.1 255.255.255.0 Switch(config-if)# no shutdown
For some further reading and study please refer to the cisco doc : Chapter: Configuring Layer 3 Interfaces
Hope this helps you on your quest.