HP Aruba Lan Switches – How to configure ports 

 

Requirements

Before starting, ensure that you have the following:


Step 1. Connect the Switch to the Computer

  1. Connect one end of the console cable to the console port on the switch. This port is often labeled “Console” or “Mgmt.”
  2. Connect the other end of the cable to your computer’s serial or USB port.
  3. If you are using a USB-to-Serial adapter, wait for Windows to install the necessary drivers. If it does not install automatically, download them from the adapter manufacturer’s website.

Step 2. Verify the COM Port

  1. Open Device Manager on the computer.
    • Right-click the Start menu and select Device Manager.
  2. Expand the section labeled “Ports (COM & LPT).”
  3. Identify the connected port. It will appear as something like “USB Serial Port (COM3)” or “Prolific USB-to-Serial Comm Port (COM5).”
  4. Note down the COM port number. You will need it when configuring Putty.

If the COM port does not appear, try reconnecting the cable, using another USB port, or reinstalling the adapter driver.


Step 3. Configure the Console Session in Putty

  1. Open Putty.
  2. Under “Connection Type,” select “Serial.”
  3. In the “Serial line” field, enter the COM port number (for example, COM3).
  4. Set the “Speed” (baud rate) to 9600. This is the standard default, though some switches may require 115200.
  5. Click “Open” to start the session.

Alternative terminal programs include:


Step 4. Access the Switch Console

Once the session window opens, press Enter once or twice. The switch console prompt should appear, for example Switch> or Switch#.
If credentials are required, enter the administrator username and password.


Step 5. View the Running Configuration

To display the current configuration, enter one of the following commands:

show running-config

or

sh run

This will list configuration details, including VLANs and their assigned ports.

Example output:

vlan 3060
 name Data_LAN
 untagged ethernet 1/0/5
 tagged ethernet 1/0/10

In this example, VLAN 3060 (named “Data_LAN”) is the client VLAN.


Step 6. Enter Configuration Mode

To make configuration changes, enter:

configure terminal

or simply

config t

The prompt will change to Switch(config)#, indicating that you are in configuration mode.


Step 7. Edit VLAN Configuration

To modify or create a VLAN, enter:

vlan 3060

You are now working within the VLAN configuration context.


Step 8. Modify Port Tagging

To remove an untagged port from a VLAN, enter:

no untagged ethernet 1/0/5

Replace 1/0/5 with the correct port number.

Explanation:

Alternative command syntax varies by switch brand:


Step 9. Save Configuration Changes

To ensure that configuration changes are retained after a reboot, save the running configuration to memory:

write memory

or

wr mem

Alternatively, on some Cisco switches:

copy running-config startup-config


Step 10. Exit and Verify

  1. Exit configuration mode by typing: end
  2. Verify the configuration changes with: show vlan
  3. Confirm that the modified ports are correctly assigned.

Troubleshooting

IssuePossible CauseResolution
No console outputIncorrect COM port or baud rateCheck Device Manager and ensure settings match
Garbled textIncorrect baud rateTry 9600, 19200, or 115200
Commands not recognizedWrong switch OS or syntaxVerify switch brand and operating system
Configuration lost after rebootChanges not savedRun write memory or copy running-config startup-config

Summary

By following this procedure, you can successfully connect to a switch through a serial console, verify the correct COM port, access and modify VLAN configurations, and save your changes permanently. This method applies broadly to most managed switches, with minor command variations depending on the manufacturer.

ProblemLikely CauseFix
No console outputWrong COM port or baud rateCheck Device Manager and settings
Garbled textIncorrect baud rateTry 9600, 19200, or 115200
Commands not recognizedWrong switch OS or syntaxCheck brand (Cisco, HP, Aruba, Dell, etc.)
Changes lost after rebootForgot to saveRun wr mem or copy run start
ruisousa08 avatar

Posted by

Leave a comment