이더채널, 정적경로
GROUP 여러개의 물리 인터페이스를 1개의 논리 인터페이스 그룹핑
Ether Channel 이더채널, 정적경로
Port Channel
SW1과 SW2은 fa0/21 - 24 포트로 연결했지만, STP에 의해 1개를 제외한 나머지 모든 port가
비활성화 (Alternate port, Blocking)이다.
이 4개의 port를 모두 1개의 channel Goup 1로 묶어서 pol이라는 1개의 논리 인터페이스로 구성하여라.
SW1(config)#int range fa 0/21-24
SW1(config-if-range)#switchport trunk encapsulation dot1q
SW1(config-if-range)#switchport mode trunk
SW1(config-if-range)#channel-group 1 mode on
SW1(config-if-range)#end
SW2(config)#int range fa 0/21-24
SW2(config-if-range)#sw mo tr
SW2(config-if-range)#channel-group 1 mode on
SW2(config-if-range)#do show int po 1
SW1(config)#vtp domain csico
Changing VTP domain name from NULL to csico
SW1(config)#vlan 10
SW1(config-vlan)#vlan 20
SW1(config-vlan)#vlan 30
SW1(config-vlan)#exit
SW1(config)#int fa 0/1
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
SW1(config-if)#int fa 0/3
SW1(config-if)#sw mo ac
SW1(config-if)#sw ac vl 20SW1(config-if)#switchport access vlan 10
SW1(config-if)#int fa 0/3
SW1(config-if)#sw mo ac
SW1(config-if)#sw ac vl 20
SW1(config-if)#int fa 0/5
SW1(config-if)#sw mo ac
SW1(config-if)#sw ac vl 30
SW1(config-if)#end
STP와 RSTP의 PORT 역할
- STP : 루트포트, 지정포트, 대체포트
- RSTP : 루트포트, 지정포트, 대체포트, 백업포트
STP와 RSTP의 PORT 상태
- STP : Blocking, Listening, Learning, Forwarding
- RSTP : Discarding, Learning, Forwarding
RSTP의 링크 타입
- L2 (브릿지) Loop 발생여부(End Device 구분)
- L3 (Loop X : 라우터, PC ) , 엣지
- L2 (Loop O : 스위치, 허브 ) , Link, Peer
- 스위치(RSTP) - 스위치(RSTP) : Link
- 스위치(RSTP) - 스위치 (STP) : Peer
CSMD/CD 사용여부 (FD, HD)
- L2 이상(FD) : P2P (Point -to - Point)
- L1 (FD) : share
Dynamic Routing Protocol 구분
- 라우팅 정보의 내용을 구분
- distance vector : RIPv1, RIPv2, IGRP, EIGRP, BGP
- 장점: 자원소모가 적다
- 단점: Routing (L3) Loop 가능성
Link State : OSPF, IS- IS
- 장점: Loop X
- 단점: 자원소모가 크다
서브넷마스크를 포함 여부의 구분
- Classful(포함X) : RIPv1, IGRP 서브넷팅된 네트워크를 이해X, 축약X
- Classless(포함O) : RIPv2, EIGRP, BGP, OSPF, IS-IS
조직(AS,Autonomous System) 내/외부에 따른 분류
- IGP(Interior, 조직내부) : RIPv1, RIPv2, IGRP, EIGRP, OSPF, IS-IS
- EGP(Exterior, 조직외부) : BGP
Dynamic Routing Protocol
- RIPv1, RIPv2 : Hop Count (Router 지나가는 횟수)
- EIGRP : 복합 Metric (Bandwidth, Delay, MTU, Load, Reliabirity)
- OSFT : Cost (비용 누적값)
- BGP : Attributes (19개 이상)
서로 다른 Routing Protocol 간에 Metric 값 비교는 무의미하다.
AD (Administrative Distance)
0 | Directly conneted |
1 | Static Route |
90 | EIGRP |
110 | OSPF |
120 | RIPv1, RIP2 |
목적지 IP 가능 경로 선택 경로200.100.10.5 1,2,3,4,5,6, 4
- Longest match
- 목적지 네트워크와 prefix 값이 가장 많이 일치하는 경로
- AD
- 동일한 Longest Match경우, 신뢰도 높은 (낮은 AD) 낮은 프로토콜
- Metric
- 동이란 라우팅 프로토콜인 경우, 낮은 메트릭 값
라우팅 경로 선출 기준
- 200.100.8.5 1,2,3 2
- 서로 다른 Routing Protocol 간에 Metric 값 비교는 무의미하다.
- OSFT : Cost (비용 누적값)
- RIPv1, RIPv2 : Hop Count (Router 지나가는 횟수)
목적지 IP 가능 경로 선택 경로
200.100.8.5 1,2,3 2
200.100.10.5 1,2,3,4,5,6, 4
라우팅 경로 선출 기준
- Longest match
- 목적지 네트워크와 prefix 값이 가장 많이 일치하는 경로
- AD
- 동일한 Longest Match경우, 신뢰도 높은 (낮은 AD) 낮은 프로토콜
- Metric
- 라우팅 프로토콜인 경우, 낮은 메트릭 값
루프백(lookback)
RIPv1
- Broadcast (255.255.255.255) 광고
- Classful Routing
RIPv2
- Mulitcat(224.0.0.9) 광고
- Classless Routing Protocol
- UDP 520 포트로 전송
- Distance vector Routing 프로토콜은 기본적으로 L3(라운팅) Loop 포함.
- RIPv1, RIPv2, IGRP, EIGRP, BGP
L3 라우팅 Loop 방지기능
1. Max hop count
2. Split Horizon
3. Route Poisoning
4. Poisoing Reverse
5. Hold-Down Timer
6. Triggerd Update
Router에서 Rip 광고를 설정하는 방법
Router (config) # router rip
Router (config - router) # version 1 (or) 2 #기본값은 송신 ver1
수신 ver1,2
설정시 송신/수신을 1개로 고정
Router (config-router) #network 광고_networkID #광고는 classful 하게 설정
Router (config-router) # (no) auto -sumary #Distance vector는 모두 Major 경계에서 자동 축약
연결된 네트워크 광고하려면, network 192.168.100.0
network 192.168.200.0
network 192.168.250.0
Router - Fa 0/0 192.168.100.1/24
Fa 0/1 192.168.100.1/24
S 0/0 192.168.100.1/24
연결된 네트워크 광고하려면, network 1.0.0.0
기본적으로 RIP Classful한 광고만 가능하기 때문에 포함된 서브넷 모두 광고에 포함시켜야만 한다.