extreme 스위치 기초 명령어

extreme 스위치 기초 명령어

주의: 아래 환경에서의 결과로 실제 장비와 EXOS 버전에 따라 결과가 차이가 날 수 있다.
작업환경: GNS3 EXOSvm
EXOS 버전: ExtremeXOS version 22.3.1.4 22.3.1.4-patch1-4
시험환경은 아래 그림과 같이 3대의 EXOSvm을 사용했다.

1. 스위치 이름 변경
스위치의 이름을 EXswitch1로 변경한다면,

# configure snmp sysname EXswitch1

2. port up/down
먼저, 모든 포트상태 확인해 본다

* EXswitch3.5 # sh port no-refresh
Port Summary
Port  Display              VLAN Name           Port  Link  Speed  Duplex
#     String               (or # VLANs)        State State Actual Actual
========================================================================
1                          Default             E     A     100    FULL
2                          Default             E     A     100    FULL
3                          Default             E     A     100    FULL
4                          Default             E     A     100    FULL
5                          Default             E     A     100    FULL
6                          Default             E     A     100    FULL
7                          Default             E     A     100    FULL
8                          Default             E     A     100    FULL
9                          Default             E     A     100    FULL
10                         Default             E     A     100    FULL
11                         Default             E     A     100    FULL
12                         Default             E     A     100    FULL
========================================================================
   Port State: D-Disabled, E-Enabled, F-Disabled by link-flap detection,
               L-Disabled due to licensing
   Link State: A-Active, R-Ready, NP-Port not present, L-Loopback,
               D-ELSM enabled but not up
               d-Ethernet OAM enabled but not up

2번 포트 down(disable)

* EXswitch3.6 # disable port 2

2번 포트를 확인해 보면, 포트 상태가 D(Disabled)인 것을 볼 수 있다.

* EXswitch3.8 # sh port 2 no-refresh
Port Summary
Port  Display              VLAN Name           Port  Link  Speed  Duplex
#     String               (or # VLANs)        State State Actual Actual
========================================================================
2                          Default             D     R
========================================================================
   Port State: D-Disabled, E-Enabled, F-Disabled by link-flap detection,
               L-Disabled due to licensing
   Link State: A-Active, R-Ready, NP-Port not present, L-Loopback,
               D-ELSM enabled but not up
               d-Ethernet OAM enabled but not up

2번 포트 up(enable) 하고 확인해 본다.

* EXswitch3.9 # enable port 2
* EXswitch3.11 # show port 2 no-refresh
Port Summary
Port  Display              VLAN Name           Port  Link  Speed  Duplex
#     String               (or # VLANs)        State State Actual Actual
========================================================================
2                          Default             E     A     100    FULL
========================================================================
   Port State: D-Disabled, E-Enabled, F-Disabled by link-flap detection,
               L-Disabled due to licensing
   Link State: A-Active, R-Ready, NP-Port not present, L-Loopback,
               D-ELSM enabled but not up
               d-Ethernet OAM enabled but not up

3. 연결된 다른 스위치 찾기

* EXswitch1.11 # show edp port all

Port   Neighbor                       Neighbor-ID         Remote  Age    Num
                                                           Port         Vlans
=============================================================================
1      EXswitch2                 00:00:00:81:ba:99:12:00   1:1    2      1
2      EXswitch3                 00:00:00:81:ba:c6:95:00   1:1    52     1
=============================================================================
* EXswitch1.12 #

4. 사용자 계정 확인, 삭제, 생성

* EXswitch1.12 # show account
                       User Name  Access LoginOK  Failed     State
--------------------------------  ------ -------  ------  --------
                           admin     R/W       2       0   Enabled
                            user     RO        0       0   Enabled
                          swadmin     R/W       0      11   Enabled

Switch.3 # del account swadmin
* Switch.4 # sh account
                       User Name  Access LoginOK  Failed     State
--------------------------------  ------ -------  ------  --------
                           admin     R/W       4       0   Enabled
                            user     RO        0       0   Enabled

* Switch.5 # create account admin swadmin
password: 
Reenter password: 
Note: Accounts created with this version of EXOS are not compatible with EXOS 21.x and earlier.

5. 설정값 저장
설정값을 저장하면, 프롬프트 맨 앞의 * 이 사라진다. 즉, 설정하고 저장하지 않으면 프롬프트 앞에 *이 붙는다.

EXswitch1.2 # save
The configuration file primary.cfg already exists.
Do you want to save configuration to primary.cfg and overwrite it? (y/N) Yes
Saving configuration primary.cfg  on master .. done!
Configuration saved to primary.cfg successfully.

6. 스위치 정보 확인

EXswitch1.7 #
EXswitch1.7 # show switch

SysName:          EXswitch1
SysLocation:
SysContact:       support@extremenetworks.com, +1 888 257 3000
System MAC:       00:81:BA:73:D8:00
System Type:      EXOS-VM

SysHealth check:  Enabled
Recovery Mode:    All
System Watchdog:  Enabled

Current Time:     Wed Dec 20 07:02:38 2017
Timezone:         [Auto DST Disabled] GMT Offset: 0 minutes, name is UTC.
Boot Time:        Wed Dec 20 04:32:14 2017
Boot Count:       0
Next Reboot:      None scheduled
System UpTime:    2 hours 30 minutes 24 seconds

Current State:    OPERATIONAL
Image Selected:   secondary
Image Booted:     secondary
Primary ver:      22.3.1.4
Secondary ver:    22.3.1.4
                  patch1-4

Config Selected:  primary.cfg
Config Booted:    Factory Default
Config Automatic: NONE

primary.cfg       Created by ExtremeXOS version 22.3.1.4
                  199292 bytes saved on Wed Dec 20 06:52:36 2017

LAA MAC:          Locally Administered MAC Address Disabled
EXswitch1.7 #

7. 스위치 초기화

EXswitch1.7 # unconfigure switch all
Restore all factory defaults and reboot? (y/N) No

8. port 속도, duplex 조정
2번 포트의 속도를 10MBPS, Half duplex로 변경한다면,

* EXswitch1.13 # configure port2 auto off speed 10 duplex half
* EXswitch1.14 # sh port 2 configuration no-refresh
Port Configuration
Port     Virtual    Port  Link  Auto   Speed      Duplex   Flow  Load   Media
         router     State State Neg  Cfg Actual Cfg Actual Cntrl Master Pri Red
================================================================================
2        VR-Default E       A   OFF    10   100 HALF FULL   NONE        UTP
================================================================================
> indicates Port Display Name truncated past 8 characters
Link State: A-Active, R-Ready, NP-Port Not Present, L-Loopback
Port State: D-Disabled, E-Enabled, L-License Disabled
Media: !-Unsupported, $-Unlicensed
Media Red: * - use "show port info detail" for redundant media type
Flow Cntrl: Shows link partner's abilities. NONE if Auto Neg is OFF

속도와 duplex를 다시 자동으로 변경하고 확인해 본다.

* EXswitch1.15 # configure port 2 auto on
* EXswitch1.16 # sh port 2 configuration no-refresh
Port Configuration
Port     Virtual    Port  Link  Auto   Speed      Duplex   Flow  Load   Media
         router     State State Neg  Cfg Actual Cfg Actual Cntrl Master Pri Red
================================================================================
2        VR-Default E       A    ON  AUTO   100 AUTO FULL   NONE        UTP
================================================================================
> indicates Port Display Name truncated past 8 characters
Link State: A-Active, R-Ready, NP-Port Not Present, L-Loopback
Port State: D-Disabled, E-Enabled, L-License Disabled
Media: !-Unsupported, $-Unlicensed
Media Red: * - use "show port info detail" for redundant media type
Flow Cntrl: Shows link partner's abilities. NONE if Auto Neg is OFF

9. Management IP 주소 설정

* EXOS-VM.1 # configure "mgmt" ipaddress 10.10.10.10/24
IP interface for VLAN Mgmt has been created.
* EXOS-VM.2 # sh vlan
Untagged ports auto-move: Off
-----------------------------------------------------------------------------------------------
Name            VID  Protocol Addr       Flags                         Proto  Ports  Virtual
                                                                              Active router
                                                                              /Total
-----------------------------------------------------------------------------------------------
Default         1    --------------------------------T---------------  ANY    12/12  VR-Default
Mgmt            4095 10.10.10.10    /24  ----------------------------  ANY    1 /1   VR-Mgmt
-----------------------------------------------------------------------------------------------
Flags : (B) BFD Enabled, (c) 802.1ad customer VLAN, (C) EAPS Control VLAN,
        (d) Dynamically created VLAN, (D) VLAN Admin Disabled,
        (e) CES Configured, (E) ESRP Enabled, (f) IP Forwarding Enabled,
        (F) Learning Disabled, (i) ISIS Enabled,
        (I) Inter-Switch Connection VLAN for MLAG, (k) PTP Configured,
        (l) MPLS Enabled, (L) Loopback Enabled, (m) IPmc Forwarding Enabled,
        (M) Translation Member VLAN or Subscriber VLAN, (n) IP Multinetting Enabled,
        (N) Network Login VLAN, (o) OSPF Enabled, (O) Virtual Network Overlay,
        (p) PIM Enabled, (P) EAPS protected VLAN, (r) RIP Enabled,
        (R) Sub-VLAN IP Range Configured, (s) Sub-VLAN, (S) Super-VLAN,
        (t) Translation VLAN or Network VLAN, (T) Member of STP Domain,
        (v) VRRP Enabled, (V) VPLS Enabled, (W) VPWS Enabled, (Z) OpenFlow Enabled

Total number of VLAN(s) : 2

10. admin 비밀번호 설정하기

* EXSwitch-1.3 # configure account admin password
Current user's password:
New password:
Reenter password:

답글 남기기

Your email address will not be published.