[Alcatel] L2 / L3 Switch 기본 명령어 [OS6360 / OS6560 / OS6860 / OS6900 / OS9900 ]
Nowhere 와 Now here 의 차이

IT/ㄴ Alcatel-Lucent

[Alcatel] L2 / L3 Switch 기본 명령어 [OS6360 / OS6560 / OS6860 / OS6900 / OS9900 ]

TIENE 2023. 7. 12. 23:57
반응형

 

L2 / L3 Switch 기본 명령어

 

- Alcatel 스위치 엔지니어로 일하면서 자주 사용했던 것들을 모아보았다.

 

- OS6360은 OS6350의 후속 제품으로 최근에 출시되었다. L3 기능은 OS6360을 제외한 나머지는 가능하나, OS6560의 경우 OSPF Stub기능만 제공한다. 따라서, OS6560는 성능 좋고, 약간의 L3이 있는 L2라고 보아야한다.

 

- 아래의 명령어는 AOS 8버전을 기준으로 작성되었다.

 

300x250

공통 사항

Version AOS 8

L2 [OS6360 / OS6560]

L3 [OS6860 / OS6900 / OS9900] 

 

1) VLAN 생성 및 VLAN 포트 할당

vlan [NUM] 
vlan [NUM] members port [chassis/slot/port] [untagged or tagged]

show vlan / show vlan [VLAN ID] member / show vlan member port [chassis/slot/port] 으로 확인

 

2) STP 모드 설정 및 우선순위 변경

spantree mode [flat or per-vlan] 
spantree vlan [NUM] priority [NUM]

show spantree / show spantree mode로 확인

 

3) IP Interface 및 Defaulte G/W 생성

ip interface [WORD] address [IP] mask [Subnetmask] vlan [NUM] ifindex 1 
ip static-route 0.0.0.0/0 gateway [IP] metric 1 

show ip interface / show ip interface [WORD] 로 확인

 

4) LACP 그룹 생성 및 VLAN 지정

linkagg static agg [NUM1] size [NUM2] admin-state enable  
linkagg static port [chassis/slot/port] agg [NUM1]
linkagg static port [chassis/slot/port] agg [NUM1]
vlan [NUM3] members linkagg [NUM1] [untagged or tagged]

show linkagg / show linkagg port로 확인

L3 설정

L3 [OS6860 / OS6900 / OS9900] 

 

1) VRRP 생성

ip vrrp [VRRP ID] interface [WORD] priority [NUM]
ip vrrp [VRRP ID] interface [WORD] address [Virtual IP]
ip vrrp [VRRP ID] interface [WORD] admin-state enable

show vrrp / show vrrp statistics로 확인

 

2) OSPF 설정

ip load ospf
ip ospf area [0.0.0.0]
ip ospf interface [WORD]
ip ospf interface [WORD] area [0.0.0.0]
ip ospf admin-state enable

show ip ospf / show ip ospf neighbor / show ip ospf interface로 확인

공통 사항

Version AOS 8

L2 [OS6360 / OS6560]

L3 [OS6860 / OS6900 / OS9900] 

 

1) 보안 취약점 대응 서비스 Disable

ip service ftp admin-state disable 
ip service telnet admin-state disable 
ip service radius admin-state disable

no aaa authentication telnet 
no aaa authentication ftp 
no aaa authentication http 

show ip service / show aaa authentication으로 확인

 

2) system 이름 지정

system name [WORD] 

show system으로 확인

 

3) Port description 설정

interfaces port [chassis/slot/port] alias [WORD] 

 

4) Prompt 설정 및 Login Timeout 설정

session prompt default [WORD] 
session login-timeout [NUM] 

 

5) 명령어 입력 History 기능 Enable

command-log enable 

show command-log로 확인

 

6) L2 Loopback-detection Enable

loopback-detection enable 
loopback-detection port [chassis/slot/port] enable 

 

7) SNMP 설정

user [WORD1] passwor [WORD] [read-only | read-write] all no auth

show user로 확인
snmp security no-security 
snmp community-map mode enable 
snmp community-map [WORD] user [WORD1] enable 


show snmp community-map 으로 확인

 

8) NTP 서버 IP 지정

ntp server [IP] 
ntp client admin-state enable

 

9) Configuration 저장 명령어

write memory flash-synchro

 

10) 전체 Configuration 확인 명령어

show configuration snapshot

 

11) Configuration 상태 및 CMM 동기화 상태 확인

show running-directory

아래의 상태가 정상
-> show running-directory

CONFIGURATION STATUS
   Running CMM                   : MASTER-PRIMARY,
   CMM Mode.                      : VIRTUAL-CHASSIS MONO CMM,
   Current CMM Slot           : CHASSIS-1 A,
   Running configuration    : WORKING,
   Certify/Restore Status    : CERTIFIED,
SYNCHRONIZATION STATUS
   Flash Between CMMs.    : SYNCHRONIZED
   Running Configuration    : SYNCHRONIZED        

 

12) Switch의 현재 설치된 버전 확인

show microcode [working | certified]

 

13) Switch reload 명령어

reload from working no rollback-timeout

 

반응형