본문 바로가기

반응형

Switch

시스코 스위치에서 스패닝 트리(Spanning tree protocol)를 구성하는 방법 시스코 스위치에서 스패닝 트리(Spanning tree protocol)를 구성하는 방법 스패닝 트리(이더넷 스패닝 트리 또는 Spanning Tree Protocol, STP)는 네트워크 스위치에서 루프를 방지하고 데이터 패킷의 무한 반복을 방지하기 위한 프로토콜입니다. 스패닝 트리는 네트워크 트래픽이 안정하게 흐를 수 있도록 불필요한 루프를 차단합니다. 스패닝 트리 프로토콜(STP)에서 루트 브리지 선택 과정 기준 1단계: 누가 더 작은 Root BID를 가졌는가? 모든 스위치는 루트 브리지를 선택하기 위해 루트 BID (Bridge ID) 값을 비교합니다. 루트 BID는 브리지의 우선 순위 (Priority)와 MAC 주소로 구성됩니다. Root BID 값이 낮은 스위치가 루트 브리지로 선발됩니다... 더보기
[switch] Cisco 스위치에서 VLAN 및 트렁크 설정하는 방법 Cisco 스위치에서 VLAN 및 트렁크 설정하는 방법 1. VLAN 생성 및 인터페이스 설정 enable configure terminal vlan 200 end 이 명령어는 VLAN 200을 생성합니다. 2. VLAN 인터페이스 설정 및 IP 주소 할당 configure terminal interface vlan 200 ip address 218.234.13.20 255.255.255.0 no shutdown end 이 명령어는 VLAN 200에 IP 주소를 할당하고 인터페이스를 활성화합니다. 3. Access 포트 설정 configure terminal interface fastEthernet 0/4 switchport mode access switchport access vlan 200 end 이.. 더보기
[switch] Vlan 설정 (정적 포트별 나누기) Vlan 설정 (정적 포트별 나누기) Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 100//vlan 100 생성 Switch(config-vlan)#vlan 200//vlan 200 생성 Switch(config-vlan)#end %SYS-5-CONFIG_I: Configured from console by console Switch#show vlan VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1.. 더보기
[switch] Switch 텔넷 암호 설정 Switch 텔넷 암호 설정 Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#line vty 0 4 //텔넷 Switch(config-line)#password 12345 Switch(config-line)#login Switch(config-line)#end %SYS-5-CONFIG_I: Configured from console by console Switch#show running-config Building configuration... Current configuration : 956 bytes ! version 12.1 no servic.. 더보기
[switch] 아이피 셋팅 Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface vlan 1 Switch(config-line)#ip address 192.168.20.12 255.255.255.0 //아이피주소 서브넷마스크 Switch(config-line)#no shutdown Switch(config-line)#end %SYS-5-CONFIG_I: Configured from console by console Switch#show running-config Switch#show running-config starup-config 더보기
[네트워크] L2 기능 요약 정리 L2 기능 IEEE에서 정의한 3 가지 종류의 스패닝 트리 프로토콜이 있다 802.1d 스패닝 트리 프로토콜(Spanning Tree Protocol)는 스위치 네트워크에서 이중성(redundancy)를 유지하면서 프레임 루프를 방지해주는 프로토콜이다. 복수개의 경로가 있는 경우, STP를 설정하면 다음과 같은 알고리듬에 의해 선정된 포트를 차단하여 루프를 방지하는 기능이다. STP가 사용하는 스패닝 트리 알고리듬의 내용은 다음과 같다. 1. 전체 스위치 중에서 루트(root) 스위치를 선택한다. 2. 루트 스위치가 아닌 모든 스위치에서 루트 포트를 하나씩 선택한다. 3. 한 스위치 세그먼트(segment)당 지정(designated) 포트를 하나씩 선택한다. 4. 루트 포트도 지정 포트도 아닌 포트를 .. 더보기
[switch] IP 입력하기 ;Swich interface는 하나이므로 vlan 1에 IP를 입력한다. Switch#show vlan VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/23, Fa0/24 Gig1/1, Gig1/2 1002 fddi-.. 더보기
[네트워크] switch 기본 설정 Switch 기본 설정 ◐ 스위치에 관리용 IP 주소 지정 ◑ Switch> en Switch# conf t Switch(Config)# int vlan1 Switch(Config-if)# ip addr 192.168.0.1 255.255.255.0 Switch(Config-if)# no shut Switch(Config-if)# end Switch# ◐ 스위치에 텔넷 접속 설정 ◑ Switch> en Switchc# conf t Switch(Config)# line vty 0 4 Switch(Config-line)# password 12345 Switch(Config-line)# login Switch(Config-line)# end Switch# ◐ 스위치에 가상랜 설정 ◑ Switch> show v.. 더보기

728x90
반응형