This chapter provides information and instructions for configuring the switch. You must connect a serial console to the switch to begin configuration.
This chapter contains the following topics:
Default Settings
- The switch is configured with all ports enabled, set to auto-negotiate, mtu of 1518, and in Layer 2 MAC switching mode
- All ports are in VLAN 1
- DHCP client is enabled on the out-of-band management port
- Telnet acess enabled
- HTTP access enabled
- SNMP read-only community “public”
- SNMP read-write community “private”
Initial Configuration
By default, DHCP on OOB management port is enabled, and it’s possible to directly telnet into the OOB management interface to configure the switch, if DHCP server is running. You can use a DHCP server, switch serial console, or SNMP discovery to determine which IP address it reports, and use that address to telnet.
The initial configuration procedure is based on the following assumptions:
- The switch was not configured before and is in the same state as when you received it.
- The switch booted successfully.
- The console connection was established, and the console prompt appeared on the screen of a VT100 terminal or terminal equivalent.
The initial switch configuration is performed through the console port. After the initial configuration, you can manage the switch either from the already-connected console port or remotely through an interface defined during the initial configuration.
Note - The switch is not configured with a default user name and password.
|
Note - All of the settings that follow are necessary to allow remote management of the switch through Telnet (Telnet client) or HTTP (Web browser).
|
Obtain Configuration Information
|
Before setting up the initial configuration of the switch, obtain the following information from your network administrator:
- The IP address to be assigned to the management interface through which the switch is managed.
- The IP subnet mask for the network.
- The IP address of the default gateway.
In-band and Out-of-band Connectivity
Ask the system administrator to determine whether you will configure the switch for in-band or out-of-band connectivity.
Initial Access Configuration
Initial configuration of the Netra CP3240 switch must be done either through the serial console port or though the out-of-band Ethernet management port.
MGMT Serial Configuration
You can use a locally or remotely attached terminal to configure in-band and out-of-band management through the MGMT serial port.
1. To use a locally attached terminal, attach one end of a null-modem serial cable to the MGMT serial port of the switch and the other end to the COM port of the terminal or workstation.
2. For remote attachment, attach one end of the serial cable to the MGMT serial port of the switch and the other end to the modem.
3. Set up the terminal for VT100 terminal emulation.
a. Set the terminal ON.
b. Launch the VT100 application.
c. Configure the COM port as follows:
i. Set the data rate to 9600 baud.
ii. Set the data format to 8 data bits, 1 stop bit, and no parity.
iii. Set the flow control to none.
iv. Select the proper mode under Properties.
v. Select Terminal keys.
The Log-in User prompt displays when the terminal interface initializes.
4. Enter an approved user name and password.
The default is admin for the user name and the password is blank.
The switch is installed and loaded with the default configuration.
Configuring for In-band Connectivity
In-band connectivity allows you to access the switch from a remote workstation. To use in-band connectivity, you must configure the switch with IP information (IP address, subnet mask, and default gateway).
Using DHCP
|
1. Enter the following command over the MGMT serial port to enable DHCP client:
You can assign IP information over the network through BootP or DHCP. Check with your system administrator to determine whether BootP or DHCP is enabled.
You need to configure the BootP or DHCP server with information about the switch --obtain this information through the serial port connection using the show network command. Set up the server with the following values.
Value
|
Description
|
IP address
|
Unique IP address for the switch. Each IP parameter is made up of four decimal numbers, ranging from 0 to 255. The default for all IP parameters is zeroes (0.0.0.0).
|
Subnet
|
Subnet mask for the LAN
|
Gateway
|
IP address of the default router, if the switch is a node outside the IP range of the LAN
|
MAC address
|
MAC address of the switch
|
When you connect the switch to the network for the first time after setting up the BootP or DHCP server, it is configured with the information supplied above. The switch is ready for in-band connectivity over the switched network.
If you do not use BootP or DHCP, access the switch through the EIA-232 port, and configure the network information as described below.
Using a Static IP
|
1. Enter the following command to allow a static IP:
2. Set the IP address, subnet mask, and gateway address by issuing the following command:
network IP <ipaddress> <netmask> [<gateway>]
|
Value
|
Description
|
IP address
|
Unique IP address for the switch. Each IP parameter is made up of four decimal numbers, ranging from 0 to 255. The default for all IP parameters is zeroes (0.0.0.0).
|
Subnet
|
Subnet mask for the LAN
|
Gateway
|
IP address of the default router, if the switch is a node outside the IP range of the LAN
|
Configuring for Out-Of-Band Connectivity
Out-of-band connectivity allows you to access the switch from a remote workstation using the Ethernet network over a private network. To use Out-of-band connectivity, you must configure the switch with IP information (IP address, subnet mask, and default gateway).
Using DHCP
|
DHCP is enabled by default on the Netra CP3240 switch.
You need to configure the BootP or DHCP server with information about the switch --obtain this information through the serial port connection using the show serviceport command. Set up the server with the following values:
Value
|
Description
|
IP address
|
Unique IP address for the switch. Each IP parameter is made up of four decimal numbers, ranging from 0 to 255. The default for all IP parameters is zeroes (0.0.0.0).
|
Subnet
|
Subnet mask for the LAN
|
Gateway
|
IP address of the default router, if the switch is a node outside the IP range of the LAN
|
MAC address
|
MAC address of the switch
|
When you connect the switch to the network for the first time after setting up the BootP or DHCP server, it is configured with the information supplied above. The switch is ready for out-of-band connectivity over the front panel Ethernet Management port.
If you do not use BootP or DHCP, access the switch through the MGMT Serial port, and configure the network information as described below.
Using a Static IP
|
1. Enter the following command to allow a static IP:
serviceport protocol none
|
2. Set the IP address, subnet mask, and gateway address by issue the following command:I
serviceport IP <ipaddress> <netmask> [<gateway>]
|
Value
|
Description
|
IP address
|
Unique IP address for the switch. Each IP parameter is made up of four decimal numbers, ranging from 0 to 255. The default for all IP parameters is zeroes (0.0.0.0).
|
Subnet
|
Subnet mask for the LAN
|
Gateway
|
IP address of the default router, if the switch is a node outside the IP range of the LAN
|
MAC address
|
MAC address of the switch
|
Saving Settings
1. To enable these changes to be retained during a reset of the switch, type CTRL+Z to return to the main prompt, type save config at the main menu prompt, and type y to confirm the changes.
2. To view the changes and verify out-of-band information, issue the command: show network.
3. The switch is configured for out-of-band connectivity and ready for Web-based and remote console management.
Quick Start
1. Turn the Power ON.
2. Allow the device to load the software until the login prompt appears. The device initial state is called the default mode.
3. When the prompt asks for operator login, do the following steps:
a. Type admin at the login prompt.
Because a number of the Quick Setup commands require administrator account rights, log into an administrator account.
Do not enter a password because the default mode does not use a password - after typing admin, press Enter two times.
b. The CLI User EXEC prompt is displayed.
i. Type enable to switch to the Privileged EXEC mode from User EXEC.
ii. Type configure to switch to the Global Config mode from Privileged EXEC.
iii. Type exit to return to the previous mode.
iv. Enter ? to show a list of commands that are available in the current mode.
4. If you want to access the switch remotely, configure the switch for In-band or Out-of-Band connectivity.
You must configure the device with IP information (IP address, subnet mask, and default gateway).
System Information and System Setup
This section describes the commands you use to view system information and to setup the network device. The tables below contain the Quick Start commands that allow you to view or configure the following information:
- Software versions
- Physical port data
- User account management
- IP address configuration
- Uploading from Networking Device to Out-of-Band PC
- Downloading from Out-of-Band PC to Networking Device
- Downloading from TFTP Server
- Restoring factory defaults
For each of these tasks, a table shows the command syntax, the mode you must be in to execute the command, and the purpose and output of the command. If you configure any network parameters, you should execute the following command:
copy system:running-config nvram:startup-config
|
This command saves the changes to the configuration file. You must be in the correct mode to execute the command. If you do not save the configuration, all changes are lost when you power down or reset the networking device. In a stacking environment, the running configuration is saved in all units of the stack.
Quick Startup Software Version Information
TABLE 1-1 Quick Startup Software Version Information
Command
|
Details
|
show hardware
(Privileged EXEC Mode)
|
Display System Information
System Description
Serial Number
MAC Address
Software Version
|
Quick Startup Physical Port Data
TABLE 1-2 Quick Startup Physical Port Data
Command
|
Details
|
show port all
(Privileged EXEC Mode)
|
Displays the ports
Interface - slot/port, See the FASTPATH 2000 Command Reference for more information about naming conventions.
Type - Indicates if the port is a special type of port.
Admin Mode - Selects the Port Control Administration State.
Physical Mode - Selects the desired port speed and duplex mode.
Physical Status - Indicates the port speed and duplex mode.
Link Status - Indicates whether the link is up or down.
Link Trap - Determines whether or not to send a trap when link status changes.
LACP Mode - Displays whether LACP is enabled or disabled on this port.
|
Quick Startup User Account Management
TABLE 1-3 Quick Startup User Account Management
Command
|
Details
|
show users
(Privileged EXEC Mode)
|
Displays all of the users who are allowed to access the networking device
Access Mode - Shows whether the user is able to change parameters on the networking device(Read/Write) or is only able to view them (Read Only).
As a factory default, the admin user has Read/Write access and the guest user has Read Only access. There can only be one Read/Write user and up to five Read Only users.
|
show loginsession
(User EXEC Mode)
|
Displays all of the login session information.
|
users passwd <username>
(Global Config Mode)
|
Allows the user to set passwords or change passwords needed to login
A prompt appears after the command is entered requesting the user’s old password. In the absence of an old password, leave the area blank. The user must press Enter to execute the command.
The system then prompts the user for a new password; then a prompt to confirm the new password. If the new password and the confirmed password match, a confirmation message is displayed.
A user password should not be more than eight characters in length.
|
copy system:running-config nvram:startup-config
(Privileged EXEC Mode)
|
This command saves passwords and all other changes to the device.
If you do not save the configuration by entering this command, all configurations are lost when a power cycle is performed on the networking device or when the networking device is reset.
In a stacking environment, the running configuration is saved in all units of the stack.
|
logout
(User EXEC and Privileged EXEC Modes)
|
Logs the user out of the networking device.
|
Quick Startup IP Address
To view the network parameters the operator can access the device by the following three methods.
- Simple Network Management Protocol - SNMP
- Telnet
- Web Browser
Note - Helpful Hint: The user should do a ‘copy system:running-config nvram:startup-config’ after configuring the network parameters so that the configurations are not lost.
|
TABLE 1-4 Quick Startup IP Address
Command
|
Details
|
show network
(User EXEC Mode)
|
Displays the Network Configurations
IP Address - IP Address of the interface
Default IP is 0.0.0.0
Subnet Mask - IP Subnet Mask for the interface
Default is 0.0.0.0
Default Gateway - The default Gateway for this interface
Default value is 0.0.0.0
Burned in MAC Address - The Burned in MAC Address used for in-band connectivity
Locally Administered MAC Address - Can be configured to allow a locally administered MAC address
MAC Address Type - Specifies which MAC address should be used for in-band connectivity
Network Configurations Protocol Current - Indicates which network protocol is being used
Default is none
Management VLAN Id - Specifies VLAN id
Web Mode - Indicates whether HTTP/Web is enabled
Java Mode - Indicates whether java mode is enabled.
|
network parms <ipaddr> <netmask> [gateway]
(Privileged EXEC Mode)
|
Sets the IP Address, subnet mask, and gateway of the router. The IP Address and the gateway must be on the same subnet.
IP Address range from 0.0.0.0 to 255.255.255.255
Subnet Mask range from 0.0.0.0 to 255.255.255.255
Gateway Address range from 0.0.0.0 to 255.255.255.255
|
Quick Startup Uploading from Networking Device to TFTP Server
TABLE 1-5 Quick Startup Uploading from Networking Device to TFTP Server
Command
|
Details
|
copy nvram:startup-config <tftp://<ipaddress>/<filepath>/<filename>>
(Privileged EXEC Mode)
copy nvram:errorlog <tftp://<ipaddress>/<filepath>/<filename>>
(Privileged EXEC Mode)
copy nvram:msglog <tftp://<ipaddress>/<filepath>/<filename>>
(Privileged EXEC Mode)
copy nvram:traplog <tftp://<ipaddress>/<filepath>/<filename>>
(Privileged EXEC Mode)
|
Starts the upload, displays the mode and type of upload, and confirms the upload is progressing.
The types are:
config - configuration file
errorlog - error log
msglog- message log
traplog - trap log
The URL must be specified as:
xmodem:<filepath>/<filename>
For example:
If you are using HyperTerminal, you must specify where the file is to be received by the PC.
|
Quick Startup Downloading from TFTP Server
Before starting a TFTP server download, the operator must complete the Quick Start up for the IP Address
TABLE 1-6 Quick Startup Downloading from TFTP Server
Command
|
Details
|
copy <tftp://<ipaddress>/<filepath>/<filename>> nvram:startup-config
(Privileged EXEC Mode)
copy <tftp://<ipaddress>/<filepath>/<filename>> system:image
(Privileged EXEC Mode)
|
Sets the destination (download) datatype to be an image (system:image) or a configuration file (nvram:startup-config).
The URL must be specified as:
tftp://<ipaddress>/<filepath>/<filename>.
The nvram:startup-config option downloads the configuration file using tftp and system:image option downloads the code file.
|
Quick Startup Factory Defaults
TABLE 1-7 Quick Startup Factory Defaults
Command
|
Details
|
clear config
(Privileged EXEC Mode)
|
Enter yes when the prompt pops up to clear all the configurations made to the networking device.
|
copy system:running-config nvram:startup-config
|
Enter yes when the prompt pops up that asks if you want to save the configurations made to the networking device.
|
reload (or cold boot the networking device)
(Privileged EXEC Mode)
|
Enter yes when the prompt pops up that asks if you want to reset the system.
You can reset the networking device or cold start the networking device. Both work effectively.
|
Sun Netra CP3240 Switch User’s Guide
|
820-3252-11
|
|
© 2007 Diversified Technology, Inc. All Rights Reserved. © 2009 Sun Microsystems, Inc. All rights reserved.