CLI Switch: Unterschied zwischen den Versionen

Aus Meine Wiki
Zur Navigation springen Zur Suche springen
 
(22 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 +
 +
== Instan On ==
 +
 +
:[https://www.youtube.com/watch?v=7ONO1G2Hf0M Instant ON]
  
  
 
== HP 2920 ==
 
== HP 2920 ==
 
: [https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-c04028664 HP 2920 Switch Series - Minimal Configuration Through the Console Port Connection]
 
: [https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-c04028664 HP 2920 Switch Series - Minimal Configuration Through the Console Port Connection]
 +
: [https://community.spiceworks.com/how_to/85991-hp-procurve-cli-cheat-sheet Cheat Sheet]
 +
: [https://znil.net/index.php/HP_ProCurve_Switche_Uplinks_Nachbar_Switche_anzeigen_mit_Port_und_Namen Nachbar Switche]
 +
 +
: Aruba JL321A 2930M-48G Stacking Switch
 +
: Aruba Stacking Module JL325A
 +
: Aruba 10 G SFP+ Module J9150D
 +
: Aruba JL355A 2540-48G-4SFP+ Switch
 +
 +
: Anschließen über COM Port USB Micro Kabel an die Console.
 +
 +
== Befehle ==
 +
Setup und Show Befehle:
 +
 +
#  setup 
  
 +
#  config
 +
#  show vlan
 +
#  show vlans ?
 +
#  show config
 +
#  show trunk
 +
#  show trunks ?
 +
#  ip routing
 +
#  show ip
 +
#  show lacp
 +
#  show interafaces
 +
#  show config  <span style="color:#d9d7d7> :: Show config file</span>
 +
#  show running-config <span style="color:#d9d7d7> :: Show running config file</span>
 +
#  sh ru <span style="color:#d9d7d7> :: Show running config file</span>
 +
#  show cdp neighbor-info
 +
#  show cdp neighbors detail  <span style="color:#d9d7d7> :: Switche Uplinks Nachbar Switche</span>
 +
#  show mac-address
  
: Anschließen über COM Port USB Micro Kabel an die Console.
 
  
 +
show interface 51
  
Setup und Show Befehle:
+
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
  
  setup
+
VLANs anlegen
 +
  SWITCH1(config)# vlan 10 name zSERVER
 +
SWITCH1(config)# vlan 20 name zCLIENT
 +
SWITCH1(config)# vlan 30 name zWLANAP
 +
SWITCH1(config)# wr mem
  
  config  
+
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
  
  show vlan
+
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
  
  show config
+
  SWITCH1(config)# vlan 20, 30 tagged 48
 +
SWITCH1(config)# wr mem
  
  show trunk
+
Trunk-Port löschen
 +
  no trunk 1/A1, 1/A2
 +
wr mem
  
  show vlan ports 20-24 detail
+
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
  
"Config" Befehle:  
+
Vlan von dem port löschen
 +
no vlan 3 untagged 37
 +
no vlan 4 tagged 37
 +
 
 +
Andere Variante "config" interface oder Gruppe:
  
  vlan 112 name zSERVER
+
  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 1 untagged 1-10
+
VLAN vom Port entfernen
  
  vlan 1 untagged 24
+
  SWITCH1(config)#interface 1
 +
SWITCH1(eth-1)# no untagged vlan 10
 +
1:These ports are moved to default VLAN.
  
vlan 203 tagged 24
+
: Test Befehle
  
  vlan 113, 606 tagged 24
+
  ping 192.168.10.100
  
vlan 113 untagged 20-23
+
== Stacking Switch Aruba Befehle ==
  
  wr mem
+
  stacking enable
 +
show flash
 +
show version
 +
boot system flash primary
 +
boot system flash secondary
 +
boot set-default flash secondary
 +
show configuration pending
 +
configuration purge-pending-config

Aktuelle Version vom 28. März 2023, 15:45 Uhr

Instan On

Instant ON


HP 2920

HP 2920 Switch Series - Minimal Configuration Through the Console Port Connection
Cheat Sheet
Nachbar Switche
Aruba JL321A 2930M-48G Stacking Switch
Aruba Stacking Module JL325A
Aruba 10 G SFP+ Module J9150D
Aruba JL355A 2540-48G-4SFP+ Switch
Anschließen über COM Port USB Micro Kabel an die Console.

Befehle

Setup und Show Befehle:

#  setup  
#  config 
#  show vlan
#  show vlans ?
#  show config
#  show trunk
#  show trunks ?
#  ip routing
#  show ip
#  show lacp
#  show interafaces
#  show config   :: Show config file
#  show running-config  :: Show running config file
#  sh ru  :: Show running config file
#  show cdp neighbor-info 
#  show cdp neighbors detail   :: Switche Uplinks Nachbar Switche
#  show mac-address


show interface 51

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

Trunk-Port löschen

no trunk 1/A1, 1/A2
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

Vlan von dem port löschen

no vlan 3 untagged 37
no vlan 4 tagged 37

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.
Test Befehle
ping 192.168.10.100

Stacking Switch Aruba Befehle

stacking enable
show flash
show version 
boot system flash primary
boot system flash secondary
boot set-default flash secondary
show configuration pending
configuration purge-pending-config