Cisco 설정 저장 - Cisco seoljeong jeojang

TEST Network1

SWITCH 시작 시 'Set-up Mode'가 나오는 경우

Router와 같이 'Set-up Mode'는 실무에서 거의 사용하지 않는다.

1. 공장 출하

2. 관리자 모드에서 setup 명령어 사용 시

3. 설정 레지스터(Config Register)의 끝에서 두 번째 값0x2142처럼 4일 때

4. 설정 파일을 삭제(erase startup-config)한 후 재부팅할 때

빠져 나오는 방법 : Would you like to enter the initial configuration dialog? [yes/no] 에서 no 입력 or Ctrl+C

기본적인 Cisco SWITCH 모드 종류Switch>enable (en) // 이용자 모드 (User Mode) > Switch#configure terminal // 관리자 모드 (Privilege Mode) # Switch(config)# interface ethernet 0/0 // 전체 설정 모드 (전역 모드) (Global Configuration Mode) (config)# Switch(config-if)#exit // 인터페이스 설정 모드 (config-if)# Switch(config)#line vty 0 4 // ↑전 단계 (exit) Switch(config-line)#exit // 라인 설정모드 (config-line)# Switch# // ↑↑관리자 모드 단계 (end) (Ctrl + Z) Cisco SWITCH 기본 설정23Switch> // 이용자 모드 > Switch>enable Switch#configure terminal // 관리자 모드 # Enter configuration commands, one per line. End with CNTL/Z. // 관리자 모드 진입시 나타나는 문구 Switch(config)#hostname SW1 // 스위치 이름 설정 (인증용 ID로도 사용된다.) SW1(config)#enable secret cisco // 스위치 관리자 모드 암호 지정 (MD5) SW1(config)#no ip domain-lookup // 문자열 입력으로 인한 DNS SERVER 찾는 시간 방지 Translating "xxxx"...domain server (xxx.xxx.xxx.xxx) SW1(config)#banner motd * // 배너 추가 (임의 문자 사용 가능) Enter TEXT message. End with the character '*'. DON'T ACCESS THIS SWITCH IF YOU DON'T HAVE AUTHORIZATION!! * SW1(config)#line console 0 // 콘솔 라인 설정모드 SW1(config-line)#logging synchronous // 시스템 메세지 표시 때 줄바꿈 위한 명령어 SW1(config-line)#exec-timeout 0 // 명령어 입력 없을 때 콘솔 밖으로 빠져나오는 것 방지 SW1(config-line)#exit // ↑전 단계 SW1(config)#line vty 0 4 // 텔넷 라인 설정모드 SW1(config-line)#password cisco // 텔넷 암호 지정 SW1(config-line)#exit // ↑전 단계 SW1(config)#exit // ↑전 단계 SW1#copy running-config startup-config // DRAM(running-config)값을 NVRAM(startup-config)값으로 저장 Destination filename [startup-config]? // Enter Building configuration... // 저장 중 [OK] // 저장 완료 Cisco SWITCH 현재 설정 확인Switch>enable Switch#show running-config // DRAM(running-config) 값 확인 Building configuration... Current configuration : 3105 bytes ! ! Last configuration change at 08:55:08 UTC Fri Feb 7 2020 ! version 15.2 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption service compress-config ...Cisco SWITCH 초기화 방법Switch#erase startup-config // erase 명령어를 이용하여 NVRAM(startup-config) 값 제거 Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] [OK] Erase of nvram: complete Switch#reload // 재부팅 Cisco SWITCH 시간 확인Switch#show clock *11:08:09.476 EET Thu Feb 6 2020 // 시:분:초.밀리세컨드 표준시 요일 월 일 년 Switch#clock set 18:11:00 6 February 2020 // clock set 시:분:초 일 월 년 Switch# *Feb 6 16:11:00.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 11:14:31 EET Thu Feb 6 2020 to 18:11:00 EET Thu Feb 6 2020, configured from console by console. Cisco SWITCH 라인 상황 확인하기Switch#show line Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int * 0 CTY - - - - - 0 0 0/0 - 1 AUX 9600/9600 - - - - - 0 0 0/0 - // 현재 접속되어있는 LINE 2 VTY - - - - - 0 0 0/0 - 3 VTY - - - - - 0 0 0/0 - 4 VTY - - - - - 0 0 0/0 - 5 VTY - - - - - 0 0 0/0 - 6 VTY - - - - - 0 0 0/0 - Cisco Switch Interface 동작 상태 확인하기

show interface status 명령어를 통해서 현재 스위치의 VLAN 소속 번호, 상태, 듀플렉스등을 확인할 수 있다.

SW1#show interface status // sh int stat Port Name Status Vlan Duplex Speed Type Gi0/0 FOR SWITCH2 PORT connected 1 auto auto unknown Gi0/1 FOR SWITCH2 PORT connected 1 auto auto unknown Gi0/2 connected 1 auto auto unknown Gi0/3 FOR SWITCH3 PORT connected 1 auto auto unknown Gi1/0 connected 1 auto auto unknown Gi1/1 connected 1 auto auto unknown Gi1/2 connected 1 auto auto unknown Gi1/3 connected 1 auto auto unknownCisco SWITCH Interface 동작 상태, 입력된 IP 주소 확인Switch#show ip interface brief // sh ip int br Interface IP-Address OK? Method Status Protocol ...SW1#show ip interface brief // sh ip int br Interface IP-Address OK? Method Status Protocol GigabitEthernet0/0 unassigned YES unset up up GigabitEthernet0/1 unassigned YES unset up up GigabitEthernet0/2 unassigned YES unset up up GigabitEthernet0/3 unassigned YES unset up up GigabitEthernet1/0 unassigned YES unset up up GigabitEthernet1/1 unassigned YES unset up up GigabitEthernet1/2 unassigned YES unset up up GigabitEthernet1/3 unassigned YES unset up up Cisco SWITCH 각 Interface별 상태, 통계치 확인 Switch#show interface gigabitethernet0/0 // sh int gi0/0 GigabitEthernet0/0 is up, line protocol is up (connected) Hardware is iGbE, address is 5000.0004.0000 (bia 5000.0004.0000) ...SW1#show interface gigabitethernet0/0 // sh int gi0/0 GigabitEthernet0/0 is up, line protocol is up (connected) Hardware is iGbE, address is 5000.0004.0000 (bia 5000.0004.0000) Description: FOR SWITCH2 PORT MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Unknown, Unknown, link type is auto, media type is unknown media type output flow-control is unsupported, input flow-control is unsupported Auto-duplex, Auto-speed, link type is auto, media type is unknown input flow-control is off, output flow-control is unsupported ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:04, output 00:00:00, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/0 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 111 packets input, 14289 bytes, 0 no buffer Received 0 broadcasts (0 multicasts) 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 watchdog, 0 multicast, 0 pause input 393 packets output, 31932 bytes, 0 underruns 0 output errors, 0 collisions, 2 interface resets 0 unknown protocol drops 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier, 0 pause output 0 output buffer failures, 0 output buffers swapped out Cisco SWITCH 각 Interface별 Layer 2 상태 확인SW1#show interface gigabitethernet0/0 switchport // sh int gi0/0 switch Name: Gi0/0 Switchport: Enabled ...SW1#show interface gi0/0 switchport // sh int gi0/0 switch Name: Gi0/0 Switchport: Enabled Administrative Mode: dynamic auto Operational Mode: static access Administrative Trunking Encapsulation: negotiate Operational Trunking Encapsulation: native Negotiation of Trunking: On Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 1 (default) Administrative Native VLAN tagging: enabled Voice VLAN: none Administrative private-vlan host-association: none Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: none Administrative private-vlan trunk Native VLAN tagging: enabled Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: none Administrative private-vlan trunk associations: none Administrative private-vlan trunk mappings: none Operational private-vlan: none Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Capture Mode Disabled

Toplist

최신 우편물

태그