Table of Contents

Modul 1

HP ProVision ASIC

Users,Permissions,CLI modes

HP E-Series—Management users

HP E-Series—CLI structure

Switch>            // Operator
Switch#            // Manager 
Switch (config)#   // Global Configuration
Switch (vlan-1)#   // Context Configuration

Initial Configuration

Čistý switch si umí líznout IP z DHCP pro int.VLAN1

Nast.terminalu:

terminal lenght 50

Výpis běžící konfigurace:

show running-config

Smazání startovací konfigurace:

erase startup-config

Úrovně v CLI:

Switch> = Operator level
Switch> enable
Switch# = Manager level
Switch# config
Switch(config)# = Global configuration

Hostname:

Switch(config)# hostname <name>

VLAN1 IP:

Switch(config)# vlan 1
Switch(vlan-1)# ip address x.x.x.x/yy

Ulozeni konfigurace:

Switch(config)# write memory

Konfigurace portu:

Switch(config)# interface <port>
Switch(int-id)# enable
Switch(int-id)# disable
Switch(int-id)# speed-duplex [10-half|10-full|…|auto|auto-half|auto-full|…]
Switch(int-id)# mdix-mode [mdi|mdix|automdix]
Switch(int-id)# name <name>

Historie prikazu:

show history
Switch(config)# repeat <index>
Switch(config)# repeat <index> count <number>

Menu interface:

Switch(config)# menu
ProCurve Switch 3500yl-24G                                 29-Feb-2012  10:06:15
==========================- CONSOLE - MANAGER MODE -============================
                                   Main Menu

   1. Status and Counters... 
   2. Switch Configuration...
   3. Console Passwords...
   4. Event Log
   5. Command Line (CLI)
   6. Reboot Switch
   7. Download OS
   8. Run Setup
   9. Stacking...
   0. Logout



Provides the menu to display configuration, status, and counters.               
To select menu item, press item number, or highlight item and press <Enter>.

Show prikazy:

show running-config
show ip
show vlans
show lldp info remote-device
show lldp info remote-device <port>
show interface
show interface brief
show interface <port-list>
show interface display
show history

LLDP

Zobrazení všech sousedů:

show lldp info remote-device

Podrobné info i sousedech na portu:

show lldp info remote-device <int-id>

Vypnutí LLDP na portu:

lldp admin-status <int-id> disable

Modul 2

Software image architecture

Restart switche:

reload =warm boot
boot =cold boot(+diagnostics)

Boot s rucne definovanym imagem:

boot system flash <flash-image>

Nastaveni def.image pro boot:

boot set-default flash <image>
show flash
show version

Copy new image from USB Flash:

Switch# dir
Switch# copy usb flash K_14_65.swi secondary

Configuration file architecture

show running-config
show running-config status
write memory

Vymazani hesel:

no password

nebo

podrzet min.1s tlacitko Clear

Factory reset:

erase startup-config

nebo

  1. zmacknout Clear a drzet
  2. zmacknout Reset, stale drzet Clear
  3. jakmile zacne blikat “Self Test LED” pustit Clear

Kopirovani konfigurace:

Switch# copy [startup-config|running-config] usb <filename>
Switch# copy usb startup-config <filename>

Multiple config files:

show config files
copy config <config-1> config <config-2>
startup default [primary|secondary] config <filename>
erase config <filename>
show config <filename>
boot system flash [primary|secondary]

Logging

show logging
show logging -a - vypis vseho
show logging -r - vypis v opacnem poradi
show logging -w - warning
show logging -m - major
show logging -i - info
show logging -d - debug
show logging <string> - vipis obsahujici definovany string
clear log

Port status

show interfaces <int-id>
show interfaces brief

Modul 3

VLANy

Switch(config)# vlan <id>
Switch(vlan-id)# tag <port>
Switch(vlan-id)# untag <port>
show vlans
show vlans <vlan-id>
show vlans port <port-id> detail
show mac-address vlan 1
Test# show vlans 1                                                                      
                                                                                        
 Status and Counters - VLAN Information - VLAN 1                                        
                                                                                        
  VLAN ID : 1                                                                           
  Name : DEFAULT_VLAN                                                                   
  Status : Port-based                                                                   
  Voice : No                                                                            
  Jumbo : No                                                                            
                                                                                        
  Port Information Mode     Unknown VLAN Status                                         
  ---------------- -------- ------------ ----------                                     
  25               Untagged Learn        Down                                           
  26               Untagged Learn        Down                                           
  27               Untagged Learn        Down                                           
  28               Untagged Learn        Down                                           
Test# show vlans ports 26 detail                                                        
                                                                                        
 Status and Counters - VLAN Information - for ports 26                                  
                                                                                        
  VLAN ID Name                 | Status     Voice Jumbo Mode                            
  ------- -------------------- + ---------- ----- ----- --------                        
  1       DEFAULT_VLAN         | Port-based No    No    Untagged                        
  20      Testovaci            | Port-based No    No    Tagged                          
Test(vlan-1)# show mac-address vlan 1                                                   
                                                                                        
 Status and Counters - Address Table - VLAN 1                                           
                                                                                        
  MAC Address   Port                                                                    
  ------------- -----                                                                   
  00a0ba-06ea39 13                                                                      

L3 interface

Switch(vlan-id)# ip address x.x.x.x/yy
Switch(config)# ip routing
show ip
show ip route
Test# show ip                                                                           
                                                                                        
 Internet (IP) Service                                                                  
                                                                                        
  IP Routing : Disabled                                                                 
                                                                                        
  Default Gateway : 192.168.100.1                                                         
  Default TTL     : 64                                                                  
  Arp Age         : 20                                                                  
  Domain Suffix   :                                                                     
  DNS server      :                                                                     
                                                                                        
  VLAN                 | IP Config  IP Address      Subnet Mask     Proxy ARP           
  -------------------- + ---------- --------------- --------------- ---------           
  DEFAULT_VLAN         | Manual     192.168.100.100 255.255.255.0    No                 
  Testovaci            | Disabled                                                       

DHCP Relay / Helper

Switch(vlan-id)# ip helper-address x.x.x.x

Gateway

Switch(config)# ip default-gateway x.x.x.x

Syslog

Switch(config)# logging x.x.x.x

SNTP

Switch(config)# timesync sntp
Switch(config)# sntp *[*unicast|broadcast]
Switch(config)# sntp server priority 1 x.x.x.x
Switch(config)# time timezone <+/→

DNS

Switch(config)# ip dns server-address priority 1 x.x.x.x
Switch(config)# ip dns domain-name domain.tld

Using TFTP

Switch# write memory
Switch# copy startup-config tftp x.x.x.x <filename>
Switch# copy tftp startup-config tftp x.x.x.x <filename>
Switch# copy command-output 'show tech' tftp x.x.x.x <filename>
show tech - totalni debugovaci vypis

Troubleshooting tools

ping x.x.x.x
traceroute x.x.x.x
show arp
show mac

Modul 4

Local authentication

Switch(config)# password manger
Switch(config)# no password manager
Switch(config)# password operator
Switch(config)# no password operator
Switch(config)# no password all
Switch(config)# password [ manager | operator | port-access ] user-name <username> [ plaintext | sha1 ] <password>

Remote authentication

Switch(config)# aaa authentication [telnet|console|web|ssh] [enable|login <privilege-mode>] [radius|tacacs|local]
Switch(config)# radius-server host <radius-ip-address> key <string>
Switch(config)# tacacs host <tacacs-ip-address> key <string>

Disable the Clear and Reset buttons

Switch(config)# no front-panel-security password-clear
Switch(config)# no front-panel-security factory-reset
Switch(config)# no usb-port
Switch# show front-panel-security

Security settings in config file

Switch(config)# include-credentials

Limit managers by IP

Switch(config)# ip authorized-managers x.x.x.x y.y.y.y access [manager|operator]

Management VLAN

> Switch(config)# management-vlan <vlan-id>

SSH

Switch(config)# crypto key generate ssh rsa bits <size>
Switch(config)# ip ssh
Switch(config)# no telnet-server
Switch(config)# show ip ssh
Switch(config)# show crypto host-public-key

Vymazani klice:

Switch(config)# crypto key zeroize ssh

SSL

Switch(config)# crypto key generate cert [rsa] <512|768|1024>
Switch(config)# crypto host-cert generate self-signed
Switch(config)# web-management ssl
Switch(config)# no web-management plaintext

Vymazani certifikatu:

Switch(config)# crypto key zeroize cert
Switch(config)# crypto host-cert zeroize

STFP

> Switch(config)# ip ssh filetransfer

SNMPv2

Read-only:

Switch(config)# snmp-server community <community-string> [operator|manager] restricted

Read-write:

Switch(config)# snmp-server community <community-string> [operator|manager] unrestricted

Trap:

Switch(config)# snmp-server host x.x.x.x <community-name>

SNMPv3

Switch(config)# snmpv3 enable
Switch(config)# snmpv3 user <username> auth [md5|sha] <auth-password> priv [des|aes] <priv-password>
Switch(config)# snmpv3 group <group-name> user <username> secmodel ver3

Group-name:

Agregace linek - Port Trunking

Staticka agregace linek

Switch(config)# trunk <port-list> trk1 [lacp]
Switch(config)# vlan <vlan-id> [tagged|untaged] trk1
show trunk
show interface display

Dynamicka agregace linek

Porty

Switch(config)# interface <port numbers> lacp [active|passive]
Switch(config)# interface a1,b7 lacp active

Spanning Tree protocols

STP

Switch(config)# spanning-tree priority <0-15>
Switch(config)# spanning-tree
Switch(config)# show spanning-tree

MSTP

Tyto údaje musí být na všech SW v MST doméně stejné:

Switch(config)# spanning-tree config-name <name>
Switch(config)# spanning-tree config-revision <number>
Switch(config)# spanning-tree instance 1 priority 1
Switch(config)# spanning-tree instance 1 vlan 10 20
show spanning-tree mst-config
show spanning-tree instance 1

IP Routing

Static routing

Switch(config)# ip route x.x.x.x/xx y.y.y.y
# Default route
Switch(config)# ip route 0.0.0.0/0 y.y.y.y
nebo
Switch(config)# ip defaut-gateway y.y.y.y
show ip route

RIP

# Redistribuce(connected se def.redistribuji)
Switch(rip)# redistribute [static|ospf]
Switch(rip)# no redistribute connected
Switch(config)# router rip
Switch(rip)# vlan <id> ip rip
show ip rip
show ip rip general
show ip route

Port mirroring

Switch(config)# mirror <sessionID> port <port-id>
Switch(config)# interface <port-list> monitor all [in|out|both] mirror <sessionID>

PCM ProCurve Manager

PCM+ Plug-ins

Licencni politika:

Discovery metody:

Zjistene subnety deli na:

Uzivatelske role:

PoE

# Zap./Vyp. PoE - defaultně zapnuto
Switch(config)# [no] interface <port-list> power-over-ethernet
# Port PoE Priority
Switch(config)# interface <port-list> power-over-ethernet [critical|high|low]