|

[ACSA Training #17] Basic Settings Commands

⏱️ Estimated reading time: Approx. 8 minutes (8 min read)

After purchasing a switch, there are a few things you need to do before connecting it to your network, such as naming the switch and configuring its interfaces.

So today we're going to look at some very basic configuration commands for the AOS-CX switch.

Hostname settings

Unless you have only one switch, you should name each switch so they can be easily identified in a large network environment. In a production environment, this would be the first step.

Many companies have their own standardized naming conventions, and they often document and maintain them.
For example, some naming conventions are Building-Floor-Rack_Name It may be designated as . Then the name of switch 4 on rack 4 on the 2nd floor of building 9 is 9-2-4_SWA, 9-2-4_SWB, 9-2-4_SWC You can specify it as follows.

The following command will allow you to name the device:.

  • Command Context: Config
  • Syntax: hostname <HOSTNAME>

Example:

Switch(config)# hostname Access-1
Access-1(config)#

Interface Settings

By default, all ports on the AOS-CX switch are disabled. So, if you want to use a specific interface, you need to “no shutdown”You can update the status using the " command.

  • Command Context: config-if (interface level)
  • Syntax: shutdown / no shutdown

Example: Activating an interface

Switch(config)# interface 1/1/1 Switch(config-if)# no shutdown

Example: Disabling an interface

Switch(config)# interface 1/1/1 Switch(config-if)# shutdown

Additionally, you can create a Description for each interface, which can also be used for management purposes.

  • Command Context: config-if (interface level)
  • Syntax: description <Description>

Example:

Switch(config)# interface 1/1/1 Switch(config-if)# description To-Core-switch

Check interface status

“show interface”" command allows you to check the status and configuration information of all interfaces on the switch. However, "“show interface” If you add a specific interface name after the command, only information for that interface will be displayed.

  • Command context: Manager (#)
  • Syntax: show interface <Interface-ID>
Access-1# show interface 1/1/1 Interface 1/1/1 is down (Administratively down)
 Admin state is down

 State information: Group speed mismatch Link transition: 0 Description: To-Core-switch
 Hardware: Ethernet, MAC Address: 90:20:c2:bc:3f:00 MTU: 1500 Type SFP-BT

Here “Administratively down“This means that the interface is “shutdown”" means that the command has been applied. And you can see that the content you just entered in the Description field has been applied.

“no shutdown”After applying the command and reapplying the interface, you can see the changes as shown below.

Access-1# show interface 1/1/1 Interface 1/1/1 is up
 Admin state is up
 State information: Group speed mismatch Link transition: 0 Description: To-Core-switch
 Hardware: Ethernet, MAC Address: 90:20:c2:bc:3f:00 MTU: 1500 Type SFP-BT

Network Discovery (LLDP – Link Layer Discovery Protocol)

Imagine you're remotely configuring an AOS-CX switch in a real-world operating environment. The switch is connected to multiple network devices, and you need to configure only the interfaces connected to the Aruba Controller. Since your IT team isn't on-site, you can't verify this yourself. You must find the correct interface remotely.

In this case, the problem can be easily solved by using LLDP.

LLDP is a vendor-neutral link layer protocol (Layer 2 IEEE standard protocol), not a protocol exclusive to a specific manufacturer. It is used to announce identity and capabilities over wired Ethernet connections. This protocol can be used to discover and document interconnections between network devices.

LLDP-MED, known as an enhanced feature of LLDP, stands for Media Endpoint Discovery. LLDP-MED enables automatic discovery of LAN policies, such as VLAN ID, Layer 2 priority, and differentiated services like QoS. Each device periodically transmits LLDP information in Ethernet frames. Directly connected devices receive these frames and store the information in a table in their local memory.

Okay, let's take a look at the picture below.

1/1/21 Access-I 1/1/22 Core-I 1/1/16 1/1/16 Core-2

This is a situation where the Access-1 switch is connected to the Core-1 and Core-2 switches on top.

Port 1/1/21 on Access-1 is connected to port 1/1/16 on the Core-1 switch, and port 1/1/22 on Access-1 is connected to port 1/1/16 on the Core-2 switch. If you've already configured the switch with the diagram drawn as above, you won't need LLDP information. However, the documentation may be outdated or incorrect, or the configuration may have changed. In these cases, you can update the diagram using LLDP information.

※ Some people may feel that creating and continuously updating a configuration document is unnecessary. They question whether it's worth the time and expense of creating such documentation when the network is already functioning properly. However, when a network failure occurs, such up-to-date documentation can be invaluable in identifying and resolving the cause of the problem. Without such documentation, the entire network would have to be individually investigated, extending the downtime. What should be resolved in just 10-15 minutes can result in network outages lasting 4-5 hours or more.

AOS-CX switches have LLDP enabled by default.

As below: “show lldp neighbor-info” command displays information about neighbor devices connected to all interfaces.

  • Command Context: Manager(#)
  • Syntax: show lldp neighbor-info
  • Authority: Operator or Manager
Access-1# show lldp neighbor-info

LLDP Neighbor Information ========================= LOCAL_PORT CHASSIS-ID PORT-ID PORT-DESC TTL SYS-NAME ---------------------------------------------------------------------------- 1/1/21 90:20:c2:bc:a8:00 1/1/16 1/1/16 120 Core-1 1/1/22 90:20:c2:bb:8b:00 1/1/16 1/1/16 120 Core-2

If you want to know more information about a specific interface, just add that interface after the above command.

Access-1# show lldp neighbor-info 1/1/21
Port : 1/1/21 Neighbor Entries : 1 Neighbor Entries Deleted : 0 Neighbor Entries Dropped : 0 Neighbor Entries Aged-Out : 0 Neighbor Chassis-Name : Core-1 Neighbor Chassis-Description : Aruba JL635A GL.10.04.0001 Neighbor Chassis-ID : 90:20:c2:bc:a8:00 Neighbor Management-Address : 10.250.1.3 Chassis Capabilities Available : Bridge, Router Chassis Capabilities Enabled : Bridge, Router Neighbor Port-ID : 1/1/16 Neighbor Port-Desc : 1/1/16 Neighbor Port VLAN ID : 1107 TTL : 120

Similar Posts

  • [ACSA Education #12] Wi-Fi Frame

    ⏱️ Estimated reading time: Approx. 4 minutes (4 min read) Wi-Fi, a technology that we now take for granted and has become commonplace. Wi-Fi is a technology used at Layer 1 and Layer 2 in wireless communication. The biggest difference from the wired technology Ethernet is that Wi-Fi has two additional frames besides the data frame. This is because, smartphones and…

  • [ACSA Education #39] Stacking

    ⏱️ Estimated read time: Approx. 15 minutes (15 min read) Stacking technology is necessary to design, implement, and configure more resilient and stable high-performance networks. In this post, we will explore this stacking technology and examine Aruba switches' stacking technologies, VSF (Virtual Switching Framework) and VSX (Virtual Switching eXtension). Operation Plane – Data…

  • [ACSA Education #11] Network Services

    ⏱️ Estimated reading time: Approx. 7 minutes (7 min read) In this post, I would like to introduce a few very commonly used network services. First is DHCP (Dynamic Host Configuration Protocol). Every terminal on a TCP/IP network requires an IP address. Of course, it can be configured manually, but when manually assigning hundreds or thousands of IP addresses, the workload…

  • AOS-CX CLI Commands (1)

    ⏱️ Estimated read time: Approx. 5 minutes (5 min read) HPE Aruba Networking's wired mainstream is the AOS-CX switch. It is a product that goes beyond traditional switching capabilities and aims for cloud-native through a microservices architecture. Not only can it monitor and analyze various metrics and logs in real-time through its own internal database, but regarding all switch functions…

  • Essential infrastructure for the AI era: CX 9300 Switches

    With the advancement of artificial intelligence and machine learning, 400GbE is becoming essential infrastructure for data center networks. The HPE Aruba Networking CX 9300 Switch meets the demands of AI workloads, and its integration with HPE systems maximizes efficiency and reduces operational complexity. This is the optimal solution for the future AI era.

  • [APSC Training #1] Introduction to Aruba Central

    ⏱️ Estimated reading time: Approx. 8 minutes (8 min read) Aruba Central is a cloud-based system that allows you to upload Aruba network devices to the cloud. You can monitor your network more effectively by managing, verifying, and adding all devices in Aruba Central. This training covers not only obtaining the Aruba Central certification (APSC) but also Aruba…