[HP] HP 스위치 기본 설정 / 확인 명령어 [VLAN / STP / LACP / VRRP / HP 가상 시뮬레이션 / comware lab 다운받기]
Nowhere 와 Now here 의 차이

IT/ㄴ HP

[HP] HP 스위치 기본 설정 / 확인 명령어 [VLAN / STP / LACP / VRRP / HP 가상 시뮬레이션 / comware lab 다운받기]

TIENE 2024. 2. 21. 11:15
반응형

 

 

HP Comware Lab 다운받기

 

 

- Cisco에 Packet Tracer라는 교육 프로그램이 있다면 HP는 HP Comware Lab이 있다.

- HP Router와 HP Switch를 사용할 수 있으며, 좋은 점은 HP의 IRF도 해볼 수 있다.

 


system-view

- configuration 모드 접속

 

hostname [WORD]

- 호스트 이름 변경

 

 

display cpu-usage

- CPU 사용량 확인 가능

 

display power

- Power 사용량 확인 가능

 

 

display memory

- memory 사용량 확인 가능

 

 

display device
display device manuinfo

- 장치 / 모듈 확인

 

 

display version

- 사용 중인 Boot Image / Version 확인 가능

 

display current-configuration

-  현재 구동 중인 설정 확인

 

display interface brief

- Interface 상태 요약 확인

 

display interface | include CRC

- Interface 별 CRC 확인

display vlan

- 생성된 VLAN 확인

 

 

display logbuffer reverse

- 최신순 log 출력

 


VLAN / STP / LACP


Access Mode

BB#1

vlan 20
#
 stp instance 0 priority 0
 stp global enable
#
interface Bridge-Aggregation1
 port access vlan 20
 link-aggregation mode dynamic
#
interface Ten-GigabitEthernet1/0/49
 port link-mode bridge
 port access vlan 20
 combo enable fiber
 port link-aggregation group 1
#
interface Ten-GigabitEthernet1/0/50
 port link-mode bridge
 port access vlan 20
 combo enable fiber
 port link-aggregation group 1
#
interface Ten-GigabitEthernet1/0/51
 port link-mode bridge
 port access vlan 20
 combo enable fiber
#

 

 

BB#2

vlan 20
#
 stp instance 0 priority 4096
 stp global enable
#
interface Bridge-Aggregation1
 port access vlan 20
 link-aggregation mode dynamic
#
interface Ten-GigabitEthernet1/0/49
 port link-mode bridge
 port access vlan 20
 combo enable fiber
 port link-aggregation group 1
#
interface Ten-GigabitEthernet1/0/50
 port link-mode bridge
 port access vlan 20
 combo enable fiber
 port link-aggregation group 1
#
interface Ten-GigabitEthernet1/0/51
 port link-mode bridge
 port access vlan 20
 combo enable fiber
#

 

L2#1

vlan 20
#
 stp global enable
#
interface Ten-GigabitEthernet1/0/49
 port link-mode bridge
 port access vlan 20
 combo enable fiber
#
interface Ten-GigabitEthernet1/0/50
 port link-mode bridge
 port access vlan 20
 combo enable fiber
#

 

display link-aggregation verbose

- LACP 상태 확인

 

 

Trunk Mode



BB#1

vlan 10
#
vlan 20
#
 stp instance 0 priority 0
 stp global enable
#
interface Bridge-Aggregation1
 port link-type trunk
 port trunk permit vlan 1 10 20
 link-aggregation mode dynamic
#
interface Ten-GigabitEthernet1/0/49
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 10 20
 combo enable fiber
 port link-aggregation group 1
#
interface Ten-GigabitEthernet1/0/50
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 10 20
 combo enable fiber
 port link-aggregation group 1
#
interface Ten-GigabitEthernet1/0/51
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 10 20
 combo enable fiber
#

 

BB#2

vlan 10
#
vlan 20
#
 stp instance 0 priority 4096
 stp global enable
#
interface Bridge-Aggregation1
 port link-type trunk
 port trunk permit vlan 1 10 20
 link-aggregation mode dynamic
#
interface Ten-GigabitEthernet1/0/49
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 10 20
 combo enable fiber
 port link-aggregation group 1
#
interface Ten-GigabitEthernet1/0/50
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 10 20
 combo enable fiber
 port link-aggregation group 1
#
interface Ten-GigabitEthernet1/0/51
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 10 20
 combo enable fiber
#

 

 

L2#1

vlan 10
#
vlan 20
#
 stp global enable
#
interface Ten-GigabitEthernet1/0/49
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 10 20
 combo enable fiber
#
interface Ten-GigabitEthernet1/0/50
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 10 20
 combo enable fiber
#

IP Inteface

 

BB#1
interface Vlan-interface20
 ip address 1.1.1.1 255.255.255.0
#

BB#2
interface Vlan-interface20
 ip address 1.1.1.2 255.255.255.0
#

L#1
interface Vlan-interface20
 ip address 1.1.1.1 255.255.255.0
#

 

 

display interface vlan20

- VLAN Interface 확인 가능

 

 

 

display arp

- ARP Table 확인 가능


VRRP

 


BB#1
interface Vlan-interface20
 ip address 1.1.1.1 255.255.255.0
 vrrp vrid 20 virtual-ip 1.1.1.254
 vrrp vrid 20 priority 150
#

BB#2
interface Vlan-interface20
 ip address 1.1.1.2 255.255.255.0
 vrrp vrid 20 virtual-ip 1.1.1.254
#
display vrrp

- VRRP 확인 가능

 

 

 


SSH Server

[BB#1]ssh server enable
[BB#1]
[BB#1]user-interface vty 0 4
[BB#1-line-vty0-4]authentication-mode scheme
[BB#1-line-vty0-4]exit
[BB#1]
[BB#1]local-user admin
[BB#1-luser-manage-admin]service-type ssh
[BB#1-luser-manage-admin]password
Password: 1
confirm : 1
[BB#1-luser-manage-admin]exit
[BB#1]

 


save

- 설정 저장 명령어

반응형

'IT > ㄴ HP' 카테고리의 다른 글

[HP] HP IRF 구성 해보기 [IRF 설정방법 / Loop-Free Topology]  (0) 2024.02.23