OSPF 설정방법
Router(config)#router ospf <Process ID> -> OSPF Protocol Enable
Router(config-router)#router-id <Router ID> -> Router-ID 수동 선출
Router(config-router)#network <Classless Network> <Wildcardmask> <Area ID> -> Match기법을 통해 자신이 광고할 정보를 인터페이스에서 찾아서 전달한다.
Router(config-router)#passive-interface <type> <number> -> 해당 인터페이스에 OSPF 정보를 전달하지 않는다. 하지만 받는 정보에 대해선 수렴한다.
-OSPF LSAs(Link State Advertisements) 상태 확인
no Type Code 정보전달
1 Intra O(동일한 Area) Neighbor
2 Intra O(동일한 Area) Neighbor
3 Inter IA(다른 Area) ABR
4 Inter IA(다른 Area) ABR
5 External E2(다른 Protocol) ASBR
*Intra Type
R1#show ip route
172.13.0.0/24 is subnetted, 2 subnets
O 172.13.1.0 [110/49] via 192.168.1.10, 00:07:36, Serial1/1
O 172.13.0.0 [110/49] via 192.168.1.10, 00:07:36, Serial1/1
*Inter Type
!-- R2
configure terminal
router ospf 1
no network 172.12.0.0 0.0.1.255 area 0
network 172.12.0.0 0.0.1.255 area 1
end
R1,R3#show ip route
172.12.0.0/24 is subnetted, 2 subnets
O IA 172.12.0.0 [110/49] via 192.168.1.2, 00:00:02, Serial1/0
O IA 172.12.1.0 [110/49] via 192.168.1.2, 00:00:02, Serial1/0
R1,R3#show ip ospf border-router
i 172.12.1.1 [48] via 192.168.1.2, Serial1/0, ABR, Area 0, SPF 9
*External Type
!-- R1
configure terminal
interface loopback 10
ip address 10.10.0.1 255.255.255.0
interface loopback 11
ip address 10.10.1.1 255.255.255.0
exit
router rip
version 2
no auto-summary
network 10.0.0.0
exit
router ospf 1
redistribute rip subnets
end
R2,R3#show ip route
10.0.0.0/24 is subnetted, 2 subnets
O E2 10.10.0.0 [110/20] via 192.168.1.1, 00:00:09, Serial1/0
O E2 10.10.1.0 [110/20] via 192.168.1.1, 00:00:09, Serial1/0
'CCNA' 카테고리의 다른 글
핑ㅅ스 (0) | 2013.06.14 |
---|---|
프레임릴레이와 AD(autonomous Distance) (0) | 2013.05.22 |
몰라몰라 3일차. EIGRP (0) | 2013.05.10 |
몰라 2일차 RIP -- 간단 설정 (0) | 2013.05.08 |
몰라 1일차. static, default (0) | 2013.05.07 |