검색어 '라우팅 정적 경로 설정'에 대한 1 개의 검색 결과

  1. 2008/05/16 [CCNA] 8일 - 라우팅 & 정적 경로 설정 by dhappy

# 정적 경로 학습

[LAB 4 : Static Route 설정]

R1(config)# ip route x.x.2.0 255.255.255.0 x.x.12.2
R1(config)# ip route x.x.23.0 255.255.255.0 x.x.12.2
R1(config)# ip route x.x.3.0 255.255.255.0 x.x.12.2
R1(config)# ip route 172.16.3.0 255.255.255.0 x.x.12.2
R1# show ip route

R2(config)# ip route x.x.3.0 255.255.255.0 x.x.23.3
R2(config)# ip route 172.16.3.0 255.255.255.0 x.x.23.3
R2# show ip route

R3(config)# ip route x.x.2.0 255.255.255.0 x.x.23.2
R3(config)# ip route x.x.12.0 255.255.255.0 x.x.23.2
R3(config)# ip route x.x.1.0 255.255.255.0 x.x.23.2
R3(config)# ip route 172.16.1.0 255.255.255.0 x.x.23.2
R3# show ip route

R2(config)# ip route x.x.1.0 255.255.255.0 x.x.12.1
R2(config)# ip route 172.16.1.0 255.255.255.0 x.x.12.1
R2# show ip route

R1#show ip route
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

     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, Loopback172
S       172.16.3.0 [1/0] via 13.13.12.2
     13.0.0.0/24 is subnetted, 5 subnets
C       13.13.1.0 is directly connected, FastEthernet0/0
S       13.13.2.0 [1/0] via 13.13.12.2
S       13.13.3.0 [1/0] via 13.13.12.2
C       13.13.12.0 is directly connected, Serial1/0
S       13.13.23.0 [1/0] via 13.13.12.2

R2#show ip route
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

     172.16.0.0/24 is subnetted, 2 subnets
S       172.16.1.0 [1/0] via 13.13.12.1
S       172.16.3.0 [1/0] via 13.13.23.3
     13.0.0.0/24 is subnetted, 5 subnets
S       13.13.1.0 [1/0] via 13.13.12.1
C       13.13.2.0 is directly connected, FastEthernet0/0
S       13.13.3.0 [1/0] via 13.13.23.3
C       13.13.12.0 is directly connected, Serial1/1
C       13.13.23.0 is directly connected, Serial1/0

R3#show ip route
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

     172.16.0.0/24 is subnetted, 2 subnets
S       172.16.1.0 [1/0] via 13.13.23.2
C       172.16.3.0 is directly connected, Loopback172
     13.0.0.0/24 is subnetted, 5 subnets
S       13.13.1.0 [1/0] via 13.13.23.2
S       13.13.2.0 [1/0] via 13.13.23.2
C       13.13.3.0 is directly connected, FastEthernet0/0
S       13.13.12.0 [1/0] via 13.13.23.2
C       13.13.23.0 is directly connected, Serial1/1

R1#ping 13.13.3.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.13.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/121/192 ms
R1#ping 13.13.3.1 source fa0/0

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.13.3.1, timeout is 2 seconds:
Packet sent with a source address of 13.13.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/76/112 ms

------------------------------------------------------------------------------
# 정적 경로(Static Route) <- Page 106 ~ 112

 - 관리자에 의해서 수동적인 방법으로 경로를 학습하는 방법를 정적 경로 학습이라고 한다.

 - 관리자에 의해서 설정된 경로이므로 신뢰적이며, 대신 대규모 네트워크 환경 및
    네트워크 변화가 자주 일어나는 환경에서는 수동적인 설정을 실시하는 부분때문에
    비효율적이다.

 - 정적 경로 학습 구간 : 규모가 작은 환경 및 네트워크 변화가 별로 없는 환경

 - 설정 구문

  Router(config)# ip route [목적지 네트워크][서브넷 마스크][넥스트-홉 IP 주소][신뢰도]

  R1(config)# ip route 13.13.3.0 255.255.255.0 13.13.12.2

  S       13.13.3.0 [1/0] via 13.13.12.2

  1) S - Static 약자, 정적 경로
  2) 13.13.3.0 - 목적지 네트워크
  3) [1/ - Static 경로의 기본 신뢰도(Administrative Distance)
  4) /0] - Metric (최적 경로를 선출할때 사용하는 단위)
  5) via 13.13.12.2 - 데이터가 전달되는 넥스트-홉 IP 주소

  Router(config)# ip route [목적지 네트워크][서브넷 마스크][발신 인터페이스][신뢰도]

  R1(config)# ip route 13.13.3.0 255.255.255.0 serial 1/0

  S       13.13.3.0 is directly connected, Serial1/0

  1) S - Static 약자, 정적 경로
  2) 13.13.3.0 - 목적지 네트워크
  3) is directly connected, - Connected 정보
  4) Serial1/0 - 데이터가 나가는 발신 인터페이스

 - 신뢰도 변경

R1(config)# ip route x.x.3.0 255.255.255.0 x.x.12.2 130
R1# show ip route static

S       13.13.3.0 [130/0] via 13.13.12.2

 - 정적 경로 삭제 (Copy & Paste 실시)

R1(config)#no ip route 13.13.2.0 255.255.255.0 13.13.12.2
R1(config)#no ip route 13.13.3.0 255.255.255.0 13.13.12.2 130
R1(config)#no ip route 13.13.23.0 255.255.255.0 13.13.12.2
R1(config)#no ip route 172.16.3.0 255.255.255.0 13.13.12.2

# 정적 기본 경로(Static Default Route)

 - 기본 경로란 목적지로 데이터를 전송할 수 있는 경로가 없다면, 가장 마지막에
    참조하는 경로를 의미한다.

  R1(config)# ip route 0.0.0.0 0.0.0.0 x.x.12.2

  R1# show ip route

Gateway of last resort is 13.13.12.2 to network 0.0.0.0

     172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Loopback172
     13.0.0.0/24 is subnetted, 2 subnets
C       13.13.1.0 is directly connected, FastEthernet0/0
C       13.13.12.0 is directly connected, Serial1/0
S*   0.0.0.0/0 [1/0] via 13.13.12.2

  1) S - Static 경로
  2) * - 기본 경로(Default Route)
  3) 0.0.0.0/0 - 네트워크 전체 (0.0.0.0 ~ 255.255.255.255)
  4) [1/ - Static 경로의 기본 신뢰도(Administrative Distance)
  5) /0] - Metric (최적 경로를 선출할때 사용하는 단위)
  6) via 13.13.12.2 - 데이터가 전달되는 넥스트-홉 IP 주소

Ex)

Gateway of last resort is 150.13.1.3 to network 0.0.0.0

     1.0.0.0/24 is subnetted, 1 subnets
①C       1.1.1.0 is directly connected, Loopback0
     2.0.0.0/24 is subnetted, 1 subnets
②R       2.2.2.0 [120/1] via 13.13.0.2, 00:00:00, Serial0/1
     13.0.0.0/24 is subnetted, 5 subnets
③C       13.13.0.0 is directly connected, Serial0/1
④R       13.13.1.0 [120/2] via 13.13.0.2, 00:00:00, Serial0/1
⑤R       13.13.12.0 [120/1] via 13.13.0.2, 00:00:00, Serial0/1
⑥C       13.13.111.0 is directly connected, Ethernet1/0
⑦R       13.13.112.0 [120/3] via 13.13.0.2, 00:00:01, Serial0/1
     150.13.0.0/24 is subnetted, 1 subnets
⑧C       150.13.1.0 is directly connected, Serial0/0
⑨S*   0.0.0.0/0 [1/0] via 150.13.1.3

1. 목적지가 13.13.1.100인 패켓은 어떤 경로 정보를 사용하는가?  4
2. 목적지가 1.1.1.1인 패켓은 어떤 경로 정보를 사용하는가? 1
3. 목적지가 13.13.112.100인 패켓은 어떤 경로 정보를 사용하는가? 7
4. 목적지가 128.28.1.1인 패켓은 어떤 경로 정보를 사용하는가? 9
5. 목적지가 13.13.111.1인 패켓은 어떤 경로 정보를 사용하는가? 6
6. 목적지가 197.97.5.1인 패켓은 어떤 경로 정보를 사용하는가? 9
7. 목적지가 150.13.1.3인 패켓은 어떤 경로 정보를 사용하는가? 8


2008/05/16 20:14 2008/05/16 20:14
dhappy 이 작성.