Using the command line interfaces, Configuring an ip interface – NEC INTELLIGENT L2 SWITCH N8406-022A User Manual

Page 8

Advertising
background image

Accessing the switch 8


Using the command line interfaces

The command line interface (CLI) can be accessed via local terminal connection or a remote session using Telnet
or 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 switch
to use either CLI mode.

The Main Menu of the AOS CLI, with administrator privileges, is displayed below:

[Main Menu]
info - Information Menu
stats - Statistics Menu
cfg - Configuration Menu
oper - Operations Command Menu
boot - Boot Options Menu
maint - Maintenance Menu
diff - 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 enable

For complete information about the ISCLI, refer to the Command Reference Guide (ISCLI).

Configuring an IP interface

An 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 Enclosure
Manager Card.

If you configure an IP address manually, the following example shows how to manually configure an IP address on
the 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.0

New pending IP address: 205.21.17.3

Pending new subnet mask: 255.255.255.0

. . . . . . . . . . . .

>> IP Interface 256# ena

(Enable IP interface 256)

3.

If necessary, configure default gateway.

Advertising