CLI Switch

Aus Meine Wiki
Zur Navigation springen Zur Suche springen


HP 2920

HP 2920 Switch Series - Minimal Configuration Through the Console Port Connection
Aruba JL321A 2930M-48G Switch
Aruba JL355A 2540-48G-4SFP+ Switch
Anschließen über COM Port USB Micro Kabel an die Console.


Setup und Show Befehle:

SWITCH1#  setup
SWITCH1#  config 
SWITCH1#  show vlan
SWITCH1#  show config
SWITCH1#  show trunk

show lacp

SWITCH1#  show vlan ports 20-24 detail
SWITCH1#  show vlan ports 3 detail
SWITCH1#  show vlan ports trk2 detail
SWITCH1#  show vlan ports all detail

"Config" Befehle:

SWITCH1# config 

VLANs anlegen

SWITCH1(config)# vlan 10 name zSERVER
SWITCH1(config)# vlan 20 name zCLIENT
SWITCH1(config)# vlan 30 name zWLANAP
SWITCH1(config)# wr mem

Trunk-Port erstellen an einzelnen Port

SWITCH1(config)# vlan 1 untagged 48
SWITCH1(config)# vlan 10 tagged 48
SWITCH1(config)# vlan 20, 30 tagged 48
SWITCH1(config)# wr mem

Trunk-Port mit LACP erstellen an eine Port Gruppe und Zuweisung von Vlans:

Aruba-Stack-2930M(config)# trunk 2/47,3/47 trk6 lacp
Aruba-Stack-2930M(config)# interface trk6
Aruba-Stack-2930M(eth-Trk6)# untagged vlan 1
Aruba-Stack-2930M(eth-Trk6)# tagged vlan 10,20,30,40,50
Aruba-Stack-2930M(eth-Trk6)# wr mem
SWITCH1(config)# vlan 20, 30 tagged 48
SWITCH1(config)# wr mem

Access-Ports erstellen

SWITCH1(config)# vlan 10 untagged 1-10
SWITCH1(config)# vlan 20 untagged 11-20
SWITCH1(config)# vlan 20 untagged 21-30
SWITCH1(config)# wr mem

Andere Variante "config" interface oder Gruppe:

SWITCH1(config)# interface 31-40
SWITCH1(eth-31-40)# untagged vlan 10
SWITCH1(eth-31-40)# tagged vlan 20
SWITCH1(eth-31-40)# tagged vlan 30
SWITCH1(eth-31-40)# wr mem
SWITCH1(eth-31-40)# exit
SWITCH1(config)#

VLAN vom Port entfernen

SWITCH1(config)#interface 1
SWITCH1(eth-1)# no untagged vlan 10
1:These ports are moved to default VLAN.