¡¡ ¡Ü OSPF-Static Protocol ÀçºÐ¹è
<Example
Network>
[SR2501 ¼³Á¤]
SR2501/IP# enable IP instance is
enabled. SR2501/IP# int
cr 203.255.240.1 255.255.255.0 1 bc<-- Ethernet IP Address ¼³Á¤ SR2501/IP# int
en 203.255.240.1 1 SR2501/IP#
int cr 200.1.1.1
255.255.255.252 1 bc<-- WAN 1 IP Address ¼³Á¤ SR2501/IP#
int en 200.1.1.1
1 SR2501/IP# int cr 200.1.1.5 255.255.255.252 2
bc<-- WAN 2 IP Address
¼³Á¤ SR2501/IP# int en 200.1.1.5 2
SR2501/IP# st add 203.255.241.0 255.255.255.192 0 1
200.1.1.2 SR2501/IP# st add 203.255.241.64 255.255.255.192 0
1 200.1.1.6 ...............<-- Static Route ¼³Á¤ SR2501/IP#
ospf SR2501/OSPF# enable SR2501/OSPF#
ar cr 0.0.0.0 transit
no SR2501/OSPF# ar en 0.0.0.0 <-- OSPF Area ¼³Á¤ SR2501/OSPF# int cr 0.0.0.0 200.1.1.1 1 SR2501/OSPF# int en 200.1.1.1 1 SR2501/OSPF# int cr 0.0.0.0 200.1.1.5 2 SR2501/OSPF# int en 200.1.1.5 2 SR2501/OSPF# int cr 0.0.0.0 203.255.240.1 0 SR2501/OSPF# int en 203.255.240.1 0 ...............<-- °¢ Network¸¦ OSPF Area¿¡ µî·Ï
SR2501/OSPF# exp static 203.255.241.0 255.255.255.192
1 SR2501/OSPF# exp static 203.255.241.64
255.255.255.192 1 SR2501/OSPF#
exp local * *
0 ...............<-- Static Route¸¦ OSPF·Î
ÀçºÐ¹è SR2501/IP# saveall SR2501/IP#
write
[Cisco Router ¼³Á¤]
!
interface Ethernet 0
ip address 203.255.240.2 255.255.255.0
!
interface Serial 0
ip address 200.1.1.9 255.255.255.252
encapsulation ppp
!
ip route 203.255.241.128 255.255.255.192 200.1.1.10
!
router ospf 100
redistribute static subnets
network 200.1.1.8 0.0.0.3 area 0.0.0.0
newtork 203.255.240.0 0.0.0.255 area 0.0.0.0
[SR2505 ¼³Á¤ : Default Route ¼³Á¤]
SR2501 ÀÇ Routing Table
È®ÀÎ
SR2501/IP# sh ro
Codes: BOG - Bogus, LOC - Local, REM - Remote,
SPE - Special, OSP - OSPF, OEX - OSPF External,
O3D - OSPF Type3 Discard, O7D - OSPF Type7 Discard,
RIP - RIP, RID - RIP Discard, EGP - EGP,
BGE - BGP External, BGI - BGP Internal, BAD - BGP Aggregate Discard,
RED - Server Redistribution
Own IP Address IP Mask [Met./cls] Time Int Next
----------------------------------------------------------------------------
SPE 0.0.0.0 0.0.0.0 [ 8/ 2] 561
LOC 200.1.1.0 255.255.255.252 [ 0/ 0] 469 1 200.1.1.0
LOC 200.1.1.4 255.255.255.252 [ 0/ 0] 460 2 200.1.1.4
OSP 200.1.1.8 255.255.255.252 [ 65/ 0] 387 0 203.255.240.2
LOC 203.255.240.0 255.255.255.0 [ 0/ 0] 454 0 203.255.240.0
REM 203.255.241.0 255.255.255.192 [ 1/ 0] 371 1 200.1.1.2
REM 203.255.241.64 255.255.255.192 [ 1/ 0] 360 2 200.1.1.6
OEX 203.255.241.128 255.255.255.192 [ 20/ 2] 21 0 203.255.240.2
SPE 255.255.255.255 255.255.255.255 [ 0/ 2] 561
SR2505/IP#
Cisco ÀÇ Routing Table È®ÀÎ
Router# sh ip ro
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route, o - ODR
Gateway of last resort is not set
C 203.255.240.0/24 is directly connected, Ethernet0
203.255.241.0/26 is subnetted, 3 subnets
S 203.255.241.128 [1/0] via 200.1.1.10
O E1 203.255.241.64 [110/10] via 203.255.240.1, 00:00:22, Ethernet0
O E1 203.255.241.0 [110/10] via 203.255.240.1, 00:00:22, Ethernet0
200.1.1.0/30 is subnetted, 3 subnets
C 200.1.1.8 is directly connected, Serial1
O E1 200.1.1.0 [110/11] via 203.255.240.1, 00:00:15, Ethernet0
O E1 200.1.1.4 [110/11] via 203.255.240.1, 00:00:15, Ethernet0
Router#
* SR2501¿¡¼ Static Route·Î ¼³Á¤ÇÑ
NetworkÁ¤º¸°¡ OSPF·Î ÀçºÐ¹è µÇ¾î(º¯È¯µÇ¾î) Cisco·Î Àü¼ÛµÊ * ¸¶Âù°¡Áö·Î, Cisco¿¡¼ Static
Route·Î ¼³Á¤ÇÑ Network Á¤º¸°¡ OSPF·Î º¯È¯µÇ¾î SR2501·Î Àü¼ÛµÊ.
|