Sun Microsystems CP3240 manual 6 Basic CLI Commands

Models: CP3240

1 131
Download 131 pages 18.57 Kb
Page 97
Image 97
4.10.2Basic CLI Commands

4.10.2Basic CLI Commands

TABLE 4-6Basic CLI Commands

Command enable

show

port all

show

interface ethernet 0/x

clear

counters

clear

config

show

running-config

copy system:running-config nvram:startup-config

serviceport protocol dhcp

serviceport protocol none

serviceport ip <ip> <netmask> <gateway>

network parms <ip> <netmask> <gateway>

show network show serviceport serial baudrate vlan database

vlan x exit configure

Function

Mode

Switch to privilege mode. You must be in enabled

default

mode for most options.

 

Show status of the ports.

privilege

Show detailed statistics on port 0/x.

privilege

Clear all statistics.

privilege

Restore the default configuration.

privilege

Show the current configuration of the switch.

privilege

This command shows everything that is not set to

 

the default value. The output is a script that can

 

be copied to a file for later use, or for another

 

switch.

 

Save the current configuration though a reboot.

privilege

Use DHCP on the out-of band port. Only one of

privilege

the serviceport and network can use DHCP. To

 

enable DHCP on one, you must disable it on the

 

other. The same command works for network.

 

Use user assigned IP NOTE: the same command

privilege

works for network.

 

Force an IP for serviceport.

privilege

Force an IP for network.

privilege

View the in-band management settings.

privilege

View the out-of-band management settings.

privilege

Change the serial baudrate.

privilege

Switch to vlan database mode. Create and delete

privilege

VLANs here.

 

Create a VLAN with number x.

vlan

Return to one mode higher.

 

Switch to configure mode. You must be in

privilege

configure mode to change most settings.

 

Chapter 4 Configuring Switch Software 4-19

Page 97
Image 97
Sun Microsystems CP3240 manual 6 Basic CLI Commands