본문 바로가기
IT스터디/벤더별 자료

익스트림 스위치 - 자주 사용하는 Config 모음

by 천하무적 엔지니어 2021. 3. 9.

이번시간에는 익스트림 스위치에서 기본적으로 사용하는 명령어들에 대해서 알아보도록 하겠습니다.

 

 

1. 익스트림 스위치 config

 

1. 익스트림 스위치 콘솔접속
▶ Console을 이용한 Access
   • Baud Rate 9600
   • Data bits 8
   • Parity None
   • Stop bits 1
 
 
2. 익스트림 스위치 디폴트 접속 ID / PW
▶ Default Account
  • username : admin
  • password :
 
 
3. 익스트림 스위치 로그 설정 Enable
▶ CLI Configuration Logging 은 Switch 에서 변경되는 모든 Configuration 을 Log 에 기록을 해줌으로 특정 시간대에 어떤 Configuration 이 변경되었는지 확인 할 수 있습니다.
▶ Setting the CLI Configuration logging
  • enable cli-config-logging

 


 
 
4. 익스트림 스위치 SNMP 설정
SNMP의 Default Community값은 Delete 또는 Disable 시킨 후 새로운 값의 Community값을 생성 합니다.

▶ Setting the SNMPv2
  • disable snmp community public
  • disable snmp community private
  • configure snmp add community readonly <community-string>
  • configure snmp add community readwrite <community-sstring>
  • enable snmp access snmp-v1v2c
 
 
5. 익스트림 스위치 포트 미러링 설정
Mirroring 은 Source 로 지정한 Port 에 흐르는 Packet 을 복제하여 Analyzer 가 연결된 Monitor port 로 Forwarding 해줍니다. Monitor port 는 하나의 Port 가 될수도 있고 Port-list 로 만들 수도 있다. Monitor port 로 지정되면 User data traffic이 흐르지 않는다.
▶ Setting the Mirroring
  • enable mirroring to port <monitor-port>
  • configure mirroring add port <source-port> { vlan <vlan-name> }
 
 
6. 익스트림 스위치 포트 주석 설정
▶ Configuring Extended Port Description
  • Port Description을 활용하여 port에 주석을 달아 용도 등을 확인하는데 용이
  • 255 characther 문자열로 구성
  • config port <port_list> description-string strin

 

 

 
 
7. 익스트림 스위치 Link Aggregation
▶ Static LAG 의 Member Ports 는 최대 8개 까지 설정이 가능하며 Switch 당 최대 설정 가능한 LAG 수는 128개 
▶ Setting the LAG
  • enable sharing <master-port> grouping <master-port> <member-ports> algorithm [ port-based | addressbased
    ] [ L2 | L3 | L3_L4 ] [ LACP ]
  • configure sharing <master-port> add ports <member-port> #기존 Sharing Group에 port 추가
  • configure sharing <master-port> delete ports <member-port> #기존 Sharing Group에 port 제거
  • disable sharing <master-port>
 

익스트림LACP


 


8. 익스트림 스위치 VLAN 설정
▶ ExtremeXOS 는 Default VLAN이 생성되어 있으며, 해당 VLAN 삭제 및 VLAN Name 변경 불가
▶ VLAN 에 Tagged / Untagged 2가지 종류의 Port 를 설정 할 수 있다. Tagged port 는 제약이 없어 모든 VLAN 에 할당 하여 사용할 수 있지만 Untagged port 는 오직 1개의 VLAN 에만 할당 하여 사용
▶ Untagged port 를 다른 VLAN 에 할당하기 위해서는 먼저 현재 속해있는 VLAN 에서 제외한 후 추가 또는 할당할 VLAN에 Tagged port 선언 후 추가
▶ Enable ipforwarding이란 Unicast routing을 활성화
  • VLAN에 Unicast routing이 활성화 되지 않았을 경우 VLAN 통신이 불가하므로, VLAN에 ipforwarding을 활성화
▶ Setting the VLAN
  • create vlan <vlan-name>
  • configure vlan <vlan-name> tag <tag-value>
  • configure vlan <vlan-name> ipaddress <ip-address>/<subnet-mask>
  • configure vlan <vlan-name> add port <ports> [ tagged | untagged ]
  • configure vlan <vlan-name> name <vlan-name>
  • enable loopback-mode <vlan-name>
  • delete vlan <vlan-name>
 
 
9. 익스트림 스위치 STP 설정
▶ Setting the STP
  • create stpd <stpd-name>
  • configure stpd <stpd-name> mode [ dot1d | dot1w ]
  • configure stpd <stpd-name> add vlan <vlan-name> ports <port-list> [ dot1d | emistp | pvst-plus ]
  • configure stpd <sptd-name> port link-type [ auto | broadcast | point-to-point ] <port-list>
  • configure stpd <stpd-name> port link-type edge <port-list>
  • configure stpd <sptd-name> port edge-safeguard [ enable | disable ] <port-list>
  • configure stpd <stpd-name> tag <tag-value>
  • enable stpd <stpd-name>
  • configure stpd <stpd-name> priority <priority> # priority 값 변경
  • configure stpd "s0" ports cost <cost> # cost 값 변경
 
 
10.익스트림 스위치  VRRP 설정
▶ Setting the VRRP
  • create vrrp vlan <vlan-name> vrid <vrid-value>
  • configure vrrp vlan <vlan-name> vrid <vrid-value> add <virtual-ip-address>
  • configure vrrp vlan <vlan-name> vrid <vrid-value> priority <priority-value>
  • configure vrrp vlan <vlan-name> vrid <vrid-value> [ preempt | dont-preempt ] { delay <seconds> }
  • enable vrrp vlan <vlan-name> vrid <vrid-value>

 


 
 
11. 익스트림 스위치 static-Rouing 테이블 설정
▶ Setting the Static Route
  • configure iproute add <ip-address> <mask> <gateway-ip-address> { metric }
  • configure iproute add blackhole <ip-address> <mask>
  • configure iproute add default <gateway-ip-address> { metric }
▶ Check the Configuration
  • show iproute
  • show iproute origin static # Static routing 만 확인
 
 
12. 익스트림 스위치 운영 확인 명령어들
▶ show switch
  • Switch의 MAC, Image file, config file, Uptime 정보 확인

▶ show version
  • Swtich의 OS Version 및 Serial Number 확인

▶ show version images
  • Partition 별 상세한 OS Version 확인

▶ show power
  • Powersupply 상태 확인

▶ show fan
  • Switch 내부의 Fan 상태 확인

▶ show temperature
  • Switch 내부 온도 확인

▶ top
  • CPU 및 Memory 사용량 실시간 확인

▶ show cpu
  • Process 별 CPU 사용량 및 시간별 확인

▶ show memory
  • Process 별 memory 사용량 확인
 
▶ show management
  • Telnet 및 SNMP Access-list Enable 정보 확인
  • SNMP State 및 In/Out Packet 정보 확인
 
▶ show iparp { | include <match>}
  • ARP Table 확인

▶ show iproute { | include <match>}
  • Routing Table 확인
 
▶ show vrrp {detail}
  • vrrp의 Master / Backup 정보 및 상태 확인

 

 

저의 글을 읽어 주셔서 감사합니다. 오늘도 즐거운 하루 보내세요.

반응형

댓글