you plan to use the virtual switch manager
you plan to connect to the switch via telnet
you plan to use SNMP on the switch
vty 0
If you do not configure a vty pass you will not be able to telnet to the switch
A layer 2 switch may need an IP address if the operator wishes to be able to access it without a serial cable. With an IP address, the switch can be access from anywhere with a connection to the network or an Internet connection.
If you've got a new switch, all basic settings must be configured using a console cable. SSHing or telnetting to a switch is imposible without an IP address. Therefore you must first configure all the basic settings via console.
ALSwitch(config)# interface vlan1 ALSwitch(config-if)# ip address 192.168.10.2 255.255.255.0
If a switch is connected to a router then the MAC address of the router is known to the switch through that port. A host takes advantage of this by using the default gateway address (the address of the router) which the switch "knows" by its lookup table. Therefore, the switch can learn the address automatically and no configuration is necessary.
== ==
VLAN
When you want to configure a switch and/or a router.
When you want to configure a switch and/or a router.
Configure the VTP mode of the switch to transparent. Configure the switch with the same VTP domain name as other switches in the network.
Yes. Some switches have, in any case - I know that the Cisco switches do. A switch needs both a MAC address and an IP address, if it is to be the endpoint of data communication; for example, if you want to test whether you can access the switch with the "ping" command, or if you want to configure it remotely.