HP 스위치 vlan 삭제 - HP seuwichi vlan sagje

HP 스위치에 vlan을 설정했다면 이제 vlan에 IP를 설정해야 한다. vlan에 IP를 설정하는 것은 스위치를 관리하고자 할 때 주로 사용한다. 스위치의 용도에 따라 vlan에 IP를 설정하는 이유는 다양할 수 있다.

vlan에 ip 설정

<5500-EI>system-view

[5500-EI] interface vlan 10 <----- vlan 10에 IP를 입력하고자 interface 모드로 들어간다.

[5500-EI-Vlan-interface10]ip address 10.20.30.1 255.255.255.0 <----- vlan 10에 IP를 설정한다.

vlan에 설정된 ip 삭제

[5500-EI-Vlan-interface10]undo ip address 10.20.30.1 255.255.255.0 <----- vlan 10에 IP를 설정한다.

/* HP스위치의 경우 인터페이스 모드에서 시스템 뷰 모드로 나가려면 quit 명령어를 사용한다. 시스코 스위치에서는 exit 명령어를 사용한다. */

기본게이트웨이 설정

<5500-EI>system-view

[5500-EI] ip route-static 0.0.0.0 0.0.0.0 10.20.30.2 <----- 0.0.0.0 0.0.0.0 모든 데이터를 말한다. 즉, 스위치에서 움직이는 모든 데이터들을 의미한다. 뒤에 나오는 10.20.30.2는 기본게이트웨이로서 모든 데이터가 10.20.30.2로 통신하게 된다.

ip route 설정

<5500-EI>system-view

[5500-EI] ip route-static 192.168.0.0 255.255.0.0 192.168.1.5

-> 192.168.x.x의 IP를 가진 패킷은 192.168.1.5로 이동함

ip route 삭제

[5500-EI] undo ip route 192.168.0.0 255.255.0.0 192.168.1.5

#HP스위치, #HPvlan, #3com스위치, #H3C스위치, #H3C, #vlan, #스위치vlan, #HP스위치게이트웨이

HP 스위치 기본 명령어 및 실습

기본패스워드 없음

> 설정모드 (conf t) 로 들어가기

system-view

> (show run)처럼 설정된 컨피그 보는 명령어

]

system-view

display current-configuration

vlan 설정하기

vlan 숫자

port 해당vlan 설정할 인터페이스 (dis curr로 인터페이스 확인)

exit

interface vlan 숫자

ip address 아이피 서브넷

no shutdown

exit

display vlan 숫자

내용확인

예제]

system-view

vlan 100

port GigabitEthernet 0/0

port GigabitEthernet 0/1

exit

interface vlan 100

ip address 192.168.0.1 255.255.255.0

no shutdown

exit

display vlan 100

display vlan 100

VLAN ID: 100

VLAN type: Static

Route interface: Configured

IPv4 address: 192.168.0.1

IPv4 subnet mask: 255.255.255.0

Description: VLAN 0100

Name: sadf

Tagged ports: None

Untagged ports:

GigabitEthernet0/0 GigabitEthernet0/1

> 트렁크 설정하기

interface 인터페이스명

port link-type trunk

port trunk permit vlan 넘버

port trunk permit vlan 넘버 넘버

port trunk permit vlan all

]예제 gi0/0에 트렁크 설정 vlan 전체 허용

system-view

interface GigabitEthernet0/0

port link-type trunk

port trunk permit vlan all

]예제 gi0/0에 트렁크 설정 vlan 100 허용

system-view

interface GigabitEthernet0/0

port link-type trunk

port trunk permit vlan 100

]예제 gi0/0에 트렁크 설정 vlan 1, 100, 200 허용

system-view

interface GigabitEthernet0/0

port link-type trunk

port trunk permit vlan 1 100 200

>스위치 이름변경

sysname 호스트네임

예제]

system-view

sysname L2SW_1

>텔넷,SSH 접속되게 설정하기

system-view

telnet server enable

system-view

ssh server enable

>id pw 설정하기

local-user 아이디

password simple 패스워드

service-type ssh telnet terminal

authorization-attribute user-role network-admin

]예제

system-view

local-user idsample

password simple pwsample

service-type ssh telnet terminal

authorization-attribute user-role network-admin

> 터미널 접속 설정하기

system-view

line vty 0 63

authentication-mode scheme

user-role network-admin

idle-timeout 5 0

> 로깅서버 설정하기

info-center loghost 로그서버IP

]예제

system-view

info-center loghost 192.168.101.4

>snmp 커뮤니티 이름 설정하기

snmp-agent community read 커뮤니티이름

]예제

system-view

snmp-agent community read sample12@

> 스태틱 라우팅 설정하기

ip route-static 대상 서브넷 목적지IP

]예제

ip route-static 0.0.0.0 0.0.0.0 210.210.210.1

ip route-static 192.168.100.0 255.255.255.0 172.16.1.254

-----------------------------------------------------------------

Command HP vs Cisco

-----------------------------------------------------------------

display show

undo no

quit exit

save write

sysname hostname

delete erase

rip router rip

ospf router ospf

bgp router bgp

acl access-list

-----------------------------------------------------------------

Example HP vs Cisco

-----------------------------------------------------------------

system view configure terminal

display current-config sh run

display interface brief show ip int b

display version show version

display ip routing-table show ip route

display info-center show logging

user-interface vty 0 63 line vty 0 4

port link-mode route no switchport

undo shutdown no shutdown

------------------------------------------------------------------

* Cisco는 한번에 inbound/outbound 트래픽을 볼수 있으나

HP는 개별적으로 inbound/outbound 트래픽을 볼수 있음.

display counters inbound interface

display counters outbound interface

------------------------------------------------------------------

* telnet 명령어

system view 모드에서는 telnet enable 설정만 가능함.

quit 나와서 해야함.

------------------------------------------------------------------

* Softcar 기능 적용

기본적으로 Cisco에서 확장핑을 치면 DDoS 방지용 동작을 함.

(Ping Loss 인것처럼 보임)

------------------------------------------------------------------

* Link Aggregation

- HP(구.3Com 장비) : Link-aggregation (LACP / manual)

link-aggregation mode dynamic | none

- HP : Trunk (LACP / manual)

Dynamic active | passive , static lacp | trunk

- Cisco : Etherchannel (LACP / PAgP / manual)

channel-group 1 mode active | passive | auto | desire | on

display link-aggregation summary

display link-aggregation verbose

------------------------------------------------------------------

* trunk 구성할때 인터페이스에 설정 하지 않음

(Cisco는 physicla 인터페이스에 설정함).

interface bridge-aggregation 1

port link-type trunk

port trunk permit vlan 100 200 or all

가져온 곳