TIL 0207 in Internship

CHAN LIM·2023년 2월 7일
0

ETC

목록 보기
8/18

네트워크 구성시 고려사항

  • 성능
  • 보안
  • 확장성
  • 유연성
  • 가용성

Cisco IOS 명령어

Router>enable
Router#configure terminal
Router(config)#interface fastethernet 0/0
Router(config-if)#end
Router#disable
Router>logout

Router(config)#hostname R0
R0(config)#banner motd $

Cisco default-gateway

Router(config)#ip default-gateway 192----'

Cisco IOS 패스워드 설정

콘솔 연결시

#line console 0
#password ____
#login

가상터미널 연결

#line vty 0 4
#password ___
#login

관리자모드 연결

: 동일 암호 불가, Secret 암호 우선
1. 텍스트 암호 저장
#enable password ___
2. 암호화 함호 저장
#enable secret ___

인터페이스 설정

R0#show ip interface brief
R0#configure terminal

R0(config)#interface fastethernet 0/0
R0(config-if)#ip address 200.1.1.1 255.255.255.0
R0(config-if)#no shutdown

R0(config-if)#do show ip interface brief

Telnet 연결 설정

R0(config)#enable secret korea
R0(config)#line vty 0 4
R0(config-line)#password korea
R0(config-line)#login

PC>telnet 200.1.1.1

R0#show interface fastethernet 0/0

저장관리

R0#show running-config
R0#show startup-config

R0#copy running-config startup-config
R0#write memory

세션타임아웃 설정

R0(config)#line console 0
R0(config-line)#exec-timeout 180 30
R0(config-line)#exec-timeout 5 0
R0(config-line)#exec-timeout 0 0

명령 재표시

R0(config-line)#logging synchronous

DNS 조회 중지

R0(config)#no ip domain-lookup

스위치 관리 ip 할당

Switch>en
witch(config)#hostname ASW
ASW(config)#

Switch>en
Switch#conf t
Switch(config)#hostname DSW
DSW(config)#

ASW(config)#int vlan 1
ASW(config-if)#ip address 200.1.1.2 255.255.255.0
ASW(config-if)#no shutdown

DSW(config)#int vlan 1
DSW(config-if)#ip addr 200.1.1.3 255.255.255.0
DSW(config-if)#no shutdown

R0#ping 200.1.1.2
R0#ping 200.1.1.3

ASW(config-if)#line vty 0 4
ASW(config-line)#password korea
ASW(config-line)#login
ASW(config-line)#exit
ASW(config)#enable secret korea

R0#telnet 200.1.1.2

인접장비검색 CDP

DSW#show cdp neighbors
DSW#show cdp entry *

DSW(config)#no cdp run

통신 연결 확인

>ping 168.126.63.1
>tracert -d 168.126.63.1
R0#traceroute 200.1.1.10

라우터 초기화

R0#erase startup-config
R0#reload


UTP 케이블

  • 8개 선
  • RX 수신용
  • TX 송신용
  • 4색 (주황, 녹색, 파랑, 갈색)
  • 586Btype
  • 100Mbps (4개만 사용)
  • 1Gbps (6~8개)

Direct Cable: T568B - T568B

  • 다른 계층 기기간의 통신
  • 일반적으로 사용

Cross Cable: T568B - T568A

  • 동일 계층 기기간의 통신

P.61


Router 내부 구성

Router 부팅 순서

1. POST (power-on self test) 수행.
2. 부트스트랩코드 적재와 실행.
3. CISCO IOS 소프트웨어 찾기
(일반적으로 플래시 메모리안에 있는 첫번째 파일)
4. CISCO IOS 소프트웨어 적재(메모리에 Load) 설정(configuration)정보 찾기 (일반적으로 NVRAM의 설정내용)
-만약 NVRAM 안에 설정 내용이 없다면, setup 모드로 들어간다.
5. 설정 정보 적재(startup config를 메모리에 load.)
6. 설정 정보 CISCO IOS 소프트웨어 실행.


Switch

Switch 기본 기능 4가지

  1. Flooding
  2. Learning
  3. Forwarding
  4. Filtering

STP / RSTP

  • Loop를 방지
  • IEEE802.1d 즉, 모든 벤더의 스위치에 적용 가능

Spanning Tree Protocol

  • BridgeID
    • 8byte
    • 우선순위 (2byte) + MAC Addr (6byte)
      • 0 ~ 65535 int vlan1
        • 32768
  • portID
    • 우선순위 (1byte) + Port num (1byte)
      • 0 ~ 255
        • 128 + 11

STP Port 상태


STP의 단점

  • 느린 Convergence time
    • 52초

  • Cisco 대안
    • PortFast
    • Uplink Fast
    • Backbone Fast

  • 표준화
    • R(apid)STP
      • IEEE802.1W
      • 1초 이내

STP 종류

  1. PVST (802.1d) - per vlan STP

  2. PVRST (802.1w) - per vlan RSTP

  3. MSTP (802.1s) - per instance RSTP


VLAN

  • A Broadcast Domain
  • A Network
  • A Subnet



복습

1. 라우터 초기화 명령은 무엇인가요?

  • erase startup-config

2. 인접 장비 검색 프로토콜을 중지하는 명령은 무엇인가요?

  • no cdp run (CISCO)
  • LLDP (Link Layer Discovery Protocol) (표준)

3. 라우터 내부 구성요소중 설정 정보를 저장하는 저장소 이름은 무엇인가요?

  • NVRAM

4. 스위치의 기본 기능 4가지는 무엇인가요?

  • Flooding, Learning, Forwarding, Filtering

5. 스위치를 관리할 목적으로 IP 할당하려고 합니다. 어떤 인터페이스에 ip를 할당하나요?

  • interface vlan 1

6.스위치 이중화를 할 때 발생하는 Broadcast looping 방지 프로토콜 3종류는 무엇인가요?

  • PVST (IEEE802.1d): per vlan STP
  • PVRST (IEEE802.1w): per vlan RSTP
  • MST (IEEE802.1s): per instance RSTP

7. 802.1d 프로토콜을 적용시 알고리즘을 적으세요.
(per network)=> RB : BID 낮은값
(per NRB)=> RP : Cost 낮은값
(per segment)=> DP : RID->COST->BID->PORTID
(per NDP)=> BP

8. 802.1d 프로토콜을 적용시 토폴로지 변화에 따른 포트 상태를 쓰세요.
(Hello time 2초)
Blocking Port-MAX Aging Time( 20 초)
(Listening) Port-Forward Delay Time( 15 초)
(Learning) Port-Forward Delay Time( 15 초)
Forwarding Port

9. 802.1w로 토폴로지 변경시 1초 이내에 재계산이 빠르게 되도록 하는 프로토콜로 변경하는 명령은 무엇인가요?

  • Switch(config)#spanning-tree mode rapid-pvst

10. 스위치를 이용하여 브로드캐스트 도메인을 나누는 기술은 무엇인가요?

  • VLAN

11. STP의 최적화를 고려하여 vlan 100의 RB를 변경하려고 합니다.명령은 무엇인가요?
sw(config)#

profile
클라우드, 데이터, DevOps 엔지니어 지향 || 글보단 사진 지향

0개의 댓글