IETF 표준 -> 어떤 장비에서도 운용 가능.
표준 : RIP, OSPF(RFC 2328) . EIGRP는 cisco전용
SPF 알고리즘 사용.
Link-state Routing Protocol.
Link정보, State 정보를 준다.
Link = router interface
State = Interface, Neighbor 연결 관계.
토폴로지의 변경으로 LSDB 상태가 변경되면 즉시!(주기가 없음) LSA를 전달하여 다른 Router에게 알린다.
같은 Area 내의 Router에게 LSA를 요청한다.
Area 0 = Backborn = transit .
반드시 Backborn area에 다른 area가 붙어야 한다.
계층적 구조->CPU도 덜 쓰고(SPF 알고리즘을 사용하는 횟수가 줄어드니까.), 메모리도 덜 쓰고.
Metric->Band Width.
10^8 / bandwidth (bps)
bps 단위!
( EIGRP에서는 kbps 단위 ! )
OSPF의 5가지 패킷.
Type 번호 | 패킷 이름 | 내용 |
1 | Hello | neighbor 관계 유지 (주기 10초, down : 40 초) |
2 | DBD(DB Description) | LSA 요약 |
3 | LSR(Link State Request) | DBD를 받고 내 DB와 다를 때, 상세정보 요청 |
4 | LSU(Link State update) | LSR로 요청했던 상세 정보 |
5 | LS ACK | LSU를 받았을 때만 LS ACK로 응답. |
Configuring Single area OSPF
명령어
router ospf process-id
network address(Network IP) wildcard-mask area area-id
============================
* wildcard-mask ?
쓸 때 : subnetmask 의 0 ->1, 1->0.
subnet-mask : 255.255.255.0
wildcard-mask : 0.0.0.255
일단은 0.0.0.0 -> IP 하나를 표시.
=================================
예제
Router(config)#router ospf 1
Router(config-router)#network 192.168.1.1 ?
A.B.C.D OSPF wild card bits
Router(config-router)#network 192.168.1.1 0.0.0.0 area 0
Router(config-router)#network 192.168.12.1 0.0.0.0 area 0
연결될 시 나타나는 메시지
*Mar 1 00:15:17.067: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.1.1 on Serial1/0 from LOADING to FULL, Loading Done
ADJCHG : Neighbor가 생겼다.
Nbr : Neighbor의 IP
Show ip protocols 명령어 입력시 .
Router#sh ip protocols
Routing Protocol is "ospf 1"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 192.168.1.1 // Router 식별자.
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
192.168.1.1 0.0.0.0 area 0
192.168.12.1 0.0.0.0 area 0
Reference bandwidth unit is 100 mbps
Routing Information Sources:
Gateway Distance Last Update
192.168.3.3 110 00:14:42
192.168.2.2 110 00:14:42
Distance: (default is 110)
Router ID
1. router-id : 관리자가 직접 설정
2. loop back
3. interface IP가 높은 것
Router ID가 3번을 통해서 설정된 경우에서 loop back을 생성해서 바꿀 때는 반드시 장비를 재부팅 해줘야 적용된다.
sh ip ospf neighbor 명령어 입력시.
Router#sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
192.168.2.2 0 FULL/ - 00:00:31 192.168.12.2 Serial1/0
Dead Time : Downtime이라고 하는데, 40초가 지나는 동안 Hello 패킷을 받지 못하면 Neighbor 관계를 끊음.
Hello 의 주기가 10초이므로 30~40초 사이가 되어야 정상인 상태라고 볼 수 있다.
Router#sh ip rout
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
O 192.168.12.0/24 [110/194] via 192.168.23.2, 00:00:44, Serial1/1
C 192.168.23.0/24 is directly connected, Serial1/1
192.168.1.0/32 is subnetted, 1 subnets
O 192.168.1.1 [110/195] via 192.168.23.2, 00:00:44, Serial1/1
192.168.2.0/32 is subnetted, 1 subnets
O 192.168.2.2 [110/98] via 192.168.23.2, 00:00:44, Serial1/1
C 192.168.3.0/24 is directly connected, Loopback0
왜 32 비트로 표시 될까 ?
OSPF에서는 기본적으로 Loopback 을 32비트로 인식한다.
OSPF에서는 기본적으로 Loopback 을 32비트로 인식한다.
Network Type
point to point -> /24
BMA(Broadcast Multiple Access) -> 브로드캐스트가 가능하고 다중접속이 되는 것. : Ethernet
NBMA(Non BMA) -> BMA랑 같은데 브로드캐스트만 안되는 것. : Frame-relay
point to multipoint -> 1 대 多 . 하나의 인터페이스에 여러 장비가 물린 것(가상으로) Frame-relay .
'자격증시험 > CCNA' 카테고리의 다른 글
ACL (0) | 2010.01.27 |
---|---|
Access List , ACL (0) | 2010.01.27 |
show ip route 보는 법. (0) | 2010.01.21 |
show ip protocols (RIP 설정 후) (0) | 2010.01.21 |
RIP 실습. (0) | 2010.01.21 |