"Static Routing ¼³Á¤ ¿¹Á¦"

¡¡

¡Ü Default Routing ¼³Á¤ (Access Nework)

<Example Network>

SR2501> admin
Password:
sr2501
SR2501#
ip
SR2501/IP#
enable
IP instance is enabled.
SR2501/IP#
int cr 210.10.2.2 255.255.255.252 1 bc<-- WAN 1 ÀÇ IP Address ¼³Á¤
SR2501/IP#
int en 210.10.2.2 1
SR2501/IP#
int cr 203.255.240.1 255.255.255.192 0 bc<-- Ehternet IP Address ¼³Á¤
SR2501/IP#
int en 203.255.240.1 0
SR2501/IP#
st add 0.0.0.0 0.0.0.0 128 1 210.10.2.1 <-- Default route ¼³Á¤
SR2501/IP# saveall
SR2501/IP# write

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
----------------------------------------------------------------------------
REM 0.0.0.0       0.0.0.0      [   1/ 2]   323980   210.10.2.1
LOC 210.10.2.2      255.255.255.252 [    0/ 0]   323980   1 210.10.2.0
LOC 203.255.240.1   255.255.255.192 [    0/ 0]   323980   0 203.255.240.0
SPE 255.255.255.255 255.255.255.255 [    0/ 2]   323980
SR2501/IP#

¡¡

¡Ü Static Routing º¹ÇÕ ±¸¼º

<Example Network>

[ Router A ¼³Á¤ ]
SR2501> admin
Password:
sr2501
SR2501#
ip
SR2501/IP#
enable
IP instance is enabled.
SR2501/IP#
int cr 203.255.240.1 255.255.255.224 0 bc
SR2501/IP#
int en 203.255.240.1 0
SR2501/IP#
int cr 210.10.2.2 255.255.255.252 1 bc
SR2501/IP#
int en 210.10.2.2 1
SR2501/IP#
int en 203.255.240.61 255.255.255.252 2 bc
SR2501/IP#
int en 203.255.240.61 2
SR2501/IP#
sh int


  Flag IP¡¡¡¡address ¡¡ IP mask Port Type P2P-Neighbor Status
  --------------------------------------------------------------
  Enabled¡¡ 203.255.240.1 ¡¡255.255.255.224 0 BC 0.0.0.0 UP(40) 
  Enabled ¡¡200.1.2.1 ¡¡    255.255.255.252 1 BC 0.0.0.0 UP(40)
  Enabled   203.255.240.61  255.255.255.252 2 BC 0.0.0.0 UP(40)
  SR2501/IP# 

SR2501/IP#
st add 0.0.0.0 0.0.0.0 128 1 210.10.2.1
....................<-- Internet Á¢¼ÓÀ» À§ÇÑ Default Route ¼³Á¤
SR2501/IP#
st add 203.255.240.32 255.255.255.240 0 1 203.255.240.62
....................<-- Áö»ç Network ¸¦ ã¾Æ°¡±â À§ÇÑ Static ¼³Á¤
SR2501/IP# saveall
SR2501/IP# write

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
----------------------------------------------------------------------------
REM 0.0.0.0          0.0.0.0        [    1/ 2]   323980     210.10.2.1
REM 203.255.240.32  255.255.255.252 [    1/ 0]   323980   2 203.255.240.62
LOC 210.10.2.2      255.255.255.252 [    0/ 0]   323980   1 210.10.2.0
LOC 203.255.240.0   255.255.255.192 [    0/ 0]   323980   0 203.255.240.0
LOC 203.255.240.60  255.255.255.252 [    0/ 0]   323980   2 203.255.240.60
SPE 255.255.255.255 255.255.255.255 [    0/ 2]   323980
SR2501/IP#

[ Router B ¼³Á¤ ]
SR2501> admin
Password:
sr2501
SR2501#
ip
SR2501/IP#
enable
IP instance is enabled.
SR2501/IP#
int cr 203.255.240.62 255.255.255.252 1 bc
SR2501/IP#
int en 203.255.240.62 1
SR2501/IP#
int cr 203.255.240.33 255.255.255.240 0 bc
SR2501/IP#
int en 203.255.240.33 0
SR2501/IP#
st add 0.0.0.0 0.0.0.0 128 1 203.255.240.61
SR2501/IP# saveall
SR2501/IP# write


* À§¿¡¼­ ºÎ¿©¹ÞÀº °øÀÎ IP Network´Â 203.255.240.0 255.255.255.192 (°¡¿ë IP Address 1~62) À̸ç IP Subnet Rule¿¡ µû¶ó ÀûÀýÈ÷ SubnetÀ» ÇÏ¿© IP Address¸¦ ÇÒ´çÇÑ °ÍÀÔ´Ï´Ù.