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
To configure a static ARP entry for the MAC address AAAA.BBBB.DDDD towards the IP address 10.41.82.11, you would use the command: arp 10.41.82.11 AAAA.BBBB.DDDD. This command is typically executed in the command-line interface of a router or switch. Make sure to have the necessary privileges to modify the ARP table.
Configure the VTP mode of the switch to transparent. Configure the switch with the same VTP domain name as other switches in the network.
When you want to configure a switch and/or a router.
When you want to configure a switch and/or a router.