Accessing the switch 8Using the command line interfacesThe command line interface (CLI) can be accessed via local terminal connection or a remote session using Telnetor SSH. The CLI is the most direct method for collecting switch information and performing switch configuration.The switch provides two CLI modes: The menu-based AOS CLI, and the tree-based ISCLI. You can set the switchto use either CLI mode.The Main Menu of the AOS CLI, with administrator privileges, is displayed below:[Main Menu]info - Information Menustats - Statistics Menucfg - Configuration Menuoper - Operations Command Menuboot - Boot Options Menumaint - Maintenance Menudiff - Show pending config changes [global command]apply - Apply pending config changes [global command]save - Save updated config to FLASH [global command]revert - Revert pending or applied changes [global command]exit - Exit [global command, always available]For complete information about the AOS CLI, refer to the Command Reference Guide (AOS).The ISCLI provides a tree-based command structure, for users familiar with similar products.An example of a typical ISCLI command is displayed below:Switch(config)# spanning-tree stp 1 enableFor complete information about the ISCLI, refer to the Command Reference Guide (ISCLI).Configuring an IP interfaceAn IP interface address must be set on the switch to provide management access to the switch over an IP network.By default, the management interface is set up to request its IP address from a DHCP server on the EnclosureManager Card.If you configure an IP address manually, the following example shows how to manually configure an IP address onthe switch:1. Configure an IP interface for the Telnet connection, using the sample IP address of 205.21.17.3.2. The pending subnet mask address and broadcast address are automatically calculated.>> # /cfg/l3/if 256 (Select IP interface 256)>> IP Interface 256# addr 205.21.17.3 (Assign IP address for the interface)Current IP address: 0.0.0.0New pending IP address: 205.21.17.3Pending new subnet mask: 255.255.255.0. . . . . . . . . . . .>> IP Interface 256# ena (Enable IP interface 256)3. If necessary, configure default gateway.