# Aruba

A été utilisé un Aruba S2500-24p-4x10g

# Hard Reset

Au niveau de l'écran LCD

- Allez dans le menu Maintenance et sélectionnez "Factory Default"
- Effectuer via le menu le reboot du switch

**Information de login par défaut**

admin/admin123

# Perte du mot passe admin

En console

Utilisateur: mot de passe  
Mot de passe: forgetme!  
(Aruba) &gt; activer  
Mot de passe: activer  
(Aruba) #configure terminal entrez les commandes de configuration, une par ligne. Fin avec CNTL/Z  
Aruba) (config) #mgmt-User Admin mot de passe root: &lt; new admin password &gt;  
Re-tapez mot de passe: &lt; new admin password &gt;  
(Aruba) (config) #exit  
(Aruba) #exit  
(Aruba) &gt; Exit

Utilisateur: admin  
Mot de passe: &lt; new admin password &gt;  
(Aruba) &gt; activer  
Mot de passe: activer  
(Aruba) #configure terminal entrez les commandes de configuration, une par ligne. Fin avec CNTL/Z  
(Aruba) (config) #enable secret  
Mot de passe: &lt; new enable password &gt;  
Re-tapez mot de passe: &lt; new enable password &gt;  
(Aruba) (config) #write mémoire

# Initialisation & configuration basique

**Notes pré installation :**

Les câbles console de chez Cisco fonctionne très bien.

<table border="1" id="bkmrk-baud-rate-data-bits-" style="border-collapse: collapse; width: 63.3333%; height: 58px; margin-left: 40px;"><tbody><tr style="height: 29px;"><td class="align-center" style="width: 13.0259%;">**<span style="color: #000000;">Baud Rate</span>**</td><td class="align-center" style="width: 13.118%;">**<span style="color: #000000;">Data Bits</span>**</td><td class="align-center" style="width: 11.1733%;">**<span style="color: #000000;">Parity</span>**</td><td class="align-center" style="width: 11.996%;">**<span style="color: #000000;">Stop Bits</span>**</td><td class="align-center" style="width: 14.0128%;">**<span style="color: #000000;">Flow Control</span>**</td></tr><tr style="height: 29px;"><td class="align-center" style="width: 13.0259%; height: 29px;">9600</td><td class="align-center" style="width: 13.118%; height: 29px;">8</td><td class="align-center" style="width: 11.1733%; height: 29px;">None</td><td class="align-center" style="width: 11.996%; height: 29px;">1</td><td class="align-center" style="width: 14.0128%; height: 29px;">Off</td></tr></tbody></table>

#### Configuration via GUI quick config

  
[![Aruba-1.png](https://doc.ataxya.net/uploads/images/gallery/2020-05/scaled-1680-/Aruba-1.png)](https://doc.ataxya.net/uploads/images/gallery/2020-05/Aruba-1.png)

[![Aruba-2.png](https://doc.ataxya.net/uploads/images/gallery/2020-05/scaled-1680-/Aruba-2.png)](https://doc.ataxya.net/uploads/images/gallery/2020-05/Aruba-2.png)

La mise en page sous IE est étrange, mais l'important est de pouvoir la valider la configuration basique.  
[![Aruba-3.png](https://doc.ataxya.net/uploads/images/gallery/2020-05/scaled-1680-/Aruba-3.png)](https://doc.ataxya.net/uploads/images/gallery/2020-05/Aruba-3.png)

#### Casser le staking présent par défaut

> (ArubaS2500-24P) (config) #**show interface brief**
> 
> Interface Admin Link Line Protocol Speed/Duplex  
> \--------- ----- ---- ------------- ------------  
> GE0/0/0 Enable Up Up 1 Gbps / Full  
> GE0/0/1 Enable Down Down N/A  
> GE0/0/2 Enable Up Up 100 Mbps / Full  
> GE0/0/3 Enable Down Down N/A  
> GE0/0/4 Enable Up Up 100 Mbps / Full  
> GE0/0/5 Enable Down Down N/A  
> GE0/0/6 Enable Up Up 100 Mbps / Full  
> GE0/0/7 Enable Down Down N/A  
> GE0/0/8 Enable Up Up 100 Mbps / Full  
> GE0/0/9 Enable Down Down N/A  
> GE0/0/10 Enable Down Down N/A  
> GE0/0/11 Enable Down Down N/A  
> GE0/0/12 Enable Down Down N/A  
> GE0/0/13 Enable Down Down N/A  
> GE0/0/14 Enable Down Down N/A  
> GE0/0/15 Enable Down Down N/A  
> GE0/0/16 Enable Down Down N/A  
> GE0/0/17 Enable Down Down N/A  
> GE0/0/18 Enable Down Down N/A  
> GE0/0/19 Enable Down Down N/A  
> GE0/0/20 Enable Down Down N/A  
> GE0/0/21 Enable Down Down N/A  
> GE0/0/22 Enable Down Down N/A  
> GE0/0/23 Enable Down Down N/A  
> GE0/1/0 Enable Down Down N/A  
> GE0/1/1 Enable Down Down N/A  
> MGMT Enable Down Down N/A
> 
> (ArubaS2500-24P) (config) # **show stacking interface**
> 
> **<span style="background-color: #ffcc00;">stack1/2</span>**  
> \--------  
> stack1/2 is administratively Enabled, link is Down, line protocol is Down  
> Speed: N/A, MTU: 9224 bytes, Link flaps: 0  
> Last update of counters: 0d 00:00:00 ago  
> Last clearing of counters: 0d 00:00:00 ago  
> Link status last changed: 0d 00:00:00 ago  
> Statistics:  
> Received 0 frames, 0 octets  
> 0 pps, 0 bps  
> 0 broadcasts, 0 runts, 0 giants, 0 throttles  
> 0 error octets, 0 CRC frames  
> 0 multicast, 0 unicast  
> Transmitted 0 frames, 0 octets  
> 0 pps, 0 bps  
> 0 broadcasts, 0 throttles  
> 0 multicast, 0 unicast  
> 0 errors octets, 0 deferred  
> 0 collisions, 0 late collisions
> 
> **<span style="background-color: #ffcc00;">stack1/3</span>**  
> \--------  
> stack1/3 is administratively Enabled, link is Down, line protocol is Down  
> Speed: N/A, MTU: 9224 bytes, Link flaps: 0  
> Last update of counters: 0d 00:00:00 ago  
> Last clearing of counters: 0d 00:00:00 ago  
> Link status last changed: 0d 08:13:09 ago  
> Statistics:  
> Received 0 frames, 0 octets  
> 0 pps, 0 bps  
> 0 broadcasts, 0 runts, 0 giants, 0 throttles  
> 0 error octets, 0 CRC frames  
> 0 multicast, 0 unicast  
> Transmitted 0 frames, 0 octets  
> 0 pps, 0 bps  
> 0 broadcasts, 0 throttles  
> 0 multicast, 0 unicast  
> 0 errors octets, 0 deferred  
> 0 collisions, 0 late collisions
> 
> (ArubaS2500-24P) (config) # delete stacking interface stack 1/2  
> (ArubaS2500-24P) (config) # delete stacking interface stack 1/3  
> (ArubaS2500-24P) (config) #show interface brief
> 
> Interface Admin Link Line Protocol Speed/Duplex  
> \--------- ----- ---- ------------- ------------  
> GE0/0/0 Enable Up Up 1 Gbps / Full  
> GE0/0/1 Enable Down Down N/A  
> GE0/0/2 Enable Up Up 100 Mbps / Full  
> GE0/0/3 Enable Down Down N/A  
> GE0/0/4 Enable Up Up 100 Mbps / Full  
> GE0/0/5 Enable Down Down N/A  
> GE0/0/6 Enable Up Up 100 Mbps / Full  
> GE0/0/7 Enable Down Down N/A  
> GE0/0/8 Enable Up Up 100 Mbps / Full  
> GE0/0/9 Enable Down Down N/A  
> GE0/0/10 Enable Down Down N/A  
> GE0/0/11 Enable Down Down N/A  
> GE0/0/12 Enable Down Down N/A  
> GE0/0/13 Enable Down Down N/A  
> GE0/0/14 Enable Down Down N/A  
> GE0/0/15 Enable Down Down N/A  
> GE0/0/16 Enable Down Down N/A  
> GE0/0/17 Enable Down Down N/A  
> GE0/0/18 Enable Down Down N/A  
> GE0/0/19 Enable Down Down N/A  
> GE0/0/20 Enable Down Down N/A  
> GE0/0/21 Enable Down Down N/A  
> GE0/0/22 Enable Down Down N/A  
> GE0/0/23 Enable Down Down N/A  
> GE0/1/0 Enable Down Down N/A  
> GE0/1/1 Enable Down Down N/A  
> <span style="background-color: #ffcc00;">**GE0/1/2 Enable Down Down N/A**</span>  
> <span style="background-color: #ffcc00;">**GE0/1/3 Enable Down Down N/A**</span>  
> MGMT Enable Down Down N/A

#### Ajout d'un utilisateur

> (ArubaS2500-24P) (config) #**mgmt-user ?**
> 
> &lt;username&gt; Name of the user (maximum 16 characters).  
> localauth-disable Disable Local authentication event if RADIUS  
> authentication timeout.  
> password-recovery-dis.. Disable recovery login  
> ssh-pubkey SSH login of management users by public key  
> authentication  
> webui-cacert CA Certificate used to sign management user's  
> certificate
> 
> (ArubaS2500-24P) (config) #**mgmt-user nida ?**
> 
> &lt;rolename&gt; Role name from one of the following:  
> root - super user role  
> guest-provisioning - guest provisioning role  
> network-operations - Network operator role  
> read-only - Read only role  
> location-api-mgmt - Location API Management Role
> 
> (ArubaS2500-24P) (config) #**mgmt-user nida root**  
> Password:\*\*\*\*\*\*\*\*\*\*\*  
> Re-Type password:\*\*\*\*\*\*\*\*\*\*
> 
> (ArubaS2500-24P) (config) #**show mgmt-user**
> 
> Management User Table  
> \---------------------  
> USER PASSWD ROLE STATUS  
> \---- ------ ---- ------  
> admin \*\*\*\*\* root ACTIVE  
> nida \*\*\*\*\* root ACTIVE

#### Jumbo Frames

> (ArubaS2500-24P) (config) #show interface gigabitethernet 0/0/0
> 
> GE0/0/0 is administratively Up, Link is Up, Line protocol is Upq  
> Hardware is Gigabit Ethernet, Interface is GE0/0/0, Address is 00:0b:86:aa:a6:c2  
> Encapsulation ARPA, Loopback not set  
> Configured: duplex (Auto), Speed (Auto), FC (Off), Autoneg (On)  
> Negotiated: duplex (Full), Speed (1 Gbps)  
> Interface index: 1  
> **<span style="background-color: #ffcc00;">MTU 1514 bytes</span>**
> 
> (ArubaS2500-24P) (config) #**interface gigabitethernet** *0/0/0*  
> (ArubaS2500-24P) (gigabitethernet "0/0/0") #**mtu ?**
> 
> &lt;mtu&gt; Set MTU on interface between 64 and 9216
> 
> (ArubaS2500-24P) (gigabitethernet "0/0/0") #**mtu 9216**
> 
> (ArubaS2500-24P) (config) #**show interface gigabitethernet** *0/0/0*
> 
> GE0/0/0 is administratively Up, Link is Up, Line protocol is Up  
> Hardware is Gigabit Ethernet, Interface is GE0/0/0, Address is 00:0b:86:aa:a6:c2  
> Encapsulation ARPA, Loopback not set  
> Configured: duplex (Auto), Speed (Auto), FC (Off), Autoneg (On)  
> Negotiated: duplex (Full), Speed (1 Gbps)  
> Interface index: 1  
> **<span style="background-color: #ffcc00;">MTU 9216 bytes</span>**

#### Configuration SNMP v2

> (ArubaS2500-24P) (config) #**show snmp community**
> 
> SNMP COMMUNITIES  
> \----------------  
> COMMUNITY ACCESS VERSION  
> \--------- ------ -------  
> Zer0t0uchpr0visi0ning READ\_ONLY V1, V2C
> 
> (ArubaS2500-24P) (config) #**hostname** *ArubaS2500-24P*  
> (ArubaS2500-24P) (config) #**syscontact** *monitoring*  
> (ArubaS2500-24P) (config) #**syslocation** *France*  
> (ArubaS2500-24P) (config) #**snmp-server community** *public*  
> (ArubaS2500-24P) (config) #**snmp-server enable trap  
> (ArubaS2500-24P) (config) #snmp-server host** *192.168.1.205* **community** *public*  
> (ArubaS2500-24P) (config) #**snmp-server engine-id ?**
> 
> &lt;engineid&gt;      Engine ID of SNMP server in HEX (10-64 chars) eg.  
>                          <span style="background-color: #ffcc00;">800039e703000b86112233</span>
> 
> (ArubaS2500-24P) (config) #**snmp-server engine-id** *800039e703000b86112233*

#### Configuration SNMP v3

# vLAN & DHCP

#### **Création d'un vLan**

(ArubaS2500-24P) (VLAN "4") #vlan 10  
(ArubaS2500-24P) (VLAN "10") #description lab  
(ArubaS2500-24P) (VLAN "10") #exit

#### **Attribution d'une IP**

(ArubaS2500-24P) (vlan "10") #ip address 172.16.255.250 255.255.0.0  
(ArubaS2500-24P) (vlan "10") #mtu 1500  
(ArubaS2500-24P) (vlan "10") #exit

#### **Configuration du switching-profile pour le vLAN**

(ArubaS2500-24P) (config) #interface-profile switching-profile vlan10-sw  
(ArubaS2500-24P) (switching profile "vlan10-sw") #switchport-mode access  
(ArubaS2500-24P) (switching profile "vlan10-sw") #access-vlan 10  
(ArubaS2500-24P) (switching profile "vlan10-sw") #native-vlan 10  
(ArubaS2500-24P) (switching profile "vlan10-sw") #exit

#### **Application du vLAN à un port**

(ArubaS2500-24P) (config) #interface gigabitethernet 0/0/0  
(ArubaS2500-24P) (gigabitethernet "0/0/8") #switching-profile vlan10-sw  
(ArubaS2500-24P) (gigabitethernet "0/0/8") #exit

#### **Application du vLAN à un groupe de ports**

(ArubaS2500-24P) (config) #interface-group gigabitethernet vlan10-grp  
(ArubaS2500-24P) (gigabitethernet "vlan10") #apply-to 0/0/0-0/0/3  
(ArubaS2500-24P) (gigabitethernet "vlan10") #trusted port  
(ArubaS2500-24P) (gigabitethernet "vlan10") #no shutdown  
(ArubaS2500-24P) (gigabitethernet "vlan10") #switching-profile vlan10  
(ArubaS2500-24P) (gigabitethernet "vlan10") #exit  
(ArubaS2500-24P) (config) #exit  
(ArubaS2500-24P) #write memory

---

#### **Ajout ou suppression d'interface à un vLAN**

(ArubaS2500-24P) (gigabitethernet "vlan10") #apply-to \[add \| remove\] &lt;interface-list&gt;

---

#### **DHCP**

<div id="bkmrk-%28arubas2500-24p%29-%28co-2"><div><svg class="svg-icon" data-icon="link" role="presentation" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"></svg><div>(ArubaS2500-24P) (config) #ip dhcp pool vlan10-pool  
(ArubaS2500-24P) (dhcp server profile "vlan10-pool") #  
(ArubaS2500-24P) (dhcp server profile "vlan10-pool") #?  
clone                              Copy data from another dhcp server profile  
default-router                DHCP default router in A.B.C.D format  
dns-server                      DNS servers in A.B.C.D format  
domain-name                Specify domain name  
exclude-address            Configure exclude address  
hardware-address         MAC address of the device  
lease                              DHCP server pool lease time (Default: 12 hours)  
netbios-name-server     Configure netbios name servers in A.B.C.D format  
network                         DHCP server network pool  
no                                  Delete Command  
option                            Configure server option  
vendor-class-identifi..    Configure vendor-class-identifier (Default: ArubaAP)</div></div></div>