1. default route 설정 없이 구성

 - R2 인터넷 연결

R1, R2, R3, PC1, PC2의 ip 세팅은 위와 같이 끝낸다.

 

라우터 인터페이스 설정 확인

R1

R1(config)#int s0/0/0
R1(config-if)#ip address 3.3.3.1 255.255.255.252
R1(config-if)#no shutdown 
R1#show ip int brief
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     1.1.1.1         YES manual up                    up 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
Serial0/0/0            3.3.3.1         YES manual up                    up 
Serial0/0/1            unassigned      YES unset  administratively down down 
Vlan1                  unassigned      YES unset  administratively down down

R2

R2(config)#int s0/0/0
R2(config-if)#ip address 3.3.3.2 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#int s0/0/1
R2(config-if)#ip address 3.3.3.5 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#do show ip int brief
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES unset  administratively down down 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
Serial0/0/0            3.3.3.2         YES manual up                    up 
Serial0/0/1            3.3.3.5         YES manual up                    up 
Vlan1                  unassigned      YES unset  administratively down down

R3

R3(config)#int s0/0/0
R3(config-if)#ip address 3.3.3.6 255.255.255.252
R3(config-if)#no shutdown
R3(config-if)#do show ip int brief
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     2.2.2.1         YES manual up                    up 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
Serial0/0/0            3.3.3.6         YES manual up                    up 
Serial0/0/1            unassigned      YES unset  administratively down down 
Vlan1                  unassigned      YES unset  administratively down down

 

라우팅 설정 전 PC1 > PC2 테스트

핑이 되지 않는다.

C:\>ping 2.2.2.11

Pinging 2.2.2.11 with 32 bytes of data:

Reply from 1.1.1.1: Destination host unreachable.
Reply from 1.1.1.1: Destination host unreachable.
Reply from 1.1.1.1: Destination host unreachable.
Reply from 1.1.1.1: Destination host unreachable.

Ping statistics for 2.2.2.11:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

 

라우터 RIP 설정

R1

 

R1(config)#router rip
R1(config-router)#network 1.1.1.0
R1(config-router)#network 3.3.3.0
R1(config-router)#passive-interface g0/0

R2

R2(config)#router rip
R2(config-router)#network 3.3.3.0
R2(config-router)#network 3.3.3.4

R3

R3(config)#router rip
R3(config-router)#network 2.2.2.0
R3(config-router)#network 3.3.3.4
R3(config-router)#passive-interface g0/0

 

저장 필수

R1#copy running-config startup-config 
Destination filename [startup-config]? 
Building configuration...
[OK]

 

라우터 RIP 설정 확인

running-config와 startup-config 를 모두 확인한다.

R1

R1#show running-config
...
router rip
 passive-interface GigabitEthernet0/0
 network 1.0.0.0
 network 3.0.0.0
...

R2

R2#show running-config
...
router rip
 network 3.0.0.0
...

R3

R3#show running-config
...
router rip
 passive-interface GigabitEthernet0/0
 network 2.0.0.0
 network 3.0.0.0
...

 

라우팅 정보 확인

R1

R1#show ip route
Codes: L - local, 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, E - EGP
       i - IS-IS, 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

     1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       1.1.1.0/24 is directly connected, GigabitEthernet0/0
L       1.1.1.1/32 is directly connected, GigabitEthernet0/0
R    2.0.0.0/8 [120/2] via 3.3.3.2, 00:00:12, Serial0/0/0
     3.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C       3.3.3.0/30 is directly connected, Serial0/0/0
L       3.3.3.1/32 is directly connected, Serial0/0/0
R       3.3.3.4/30 [120/1] via 3.3.3.2, 00:00:12, Serial0/0/0

R2

R2#show ip route
Codes: L - local, 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, E - EGP
       i - IS-IS, 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

R    1.0.0.0/8 [120/1] via 3.3.3.1, 00:00:20, Serial0/0/0
R    2.0.0.0/8 [120/1] via 3.3.3.6, 00:00:23, Serial0/0/1
     3.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C       3.3.3.0/30 is directly connected, Serial0/0/0
L       3.3.3.2/32 is directly connected, Serial0/0/0
C       3.3.3.4/30 is directly connected, Serial0/0/1
L       3.3.3.5/32 is directly connected, Serial0/0/1

R3

R3#show ip route
Codes: L - local, 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, E - EGP
       i - IS-IS, 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

R    1.0.0.0/8 [120/2] via 3.3.3.5, 00:00:05, Serial0/0/0
     2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       2.2.2.0/24 is directly connected, GigabitEthernet0/0
L       2.2.2.1/32 is directly connected, GigabitEthernet0/0
     3.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R       3.3.3.0/30 [120/1] via 3.3.3.5, 00:00:05, Serial0/0/0
C       3.3.3.4/30 is directly connected, Serial0/0/0
L       3.3.3.6/32 is directly connected, Serial0/0/0

 

PC1 테스트

C:\>ping 2.2.2.11

Pinging 2.2.2.11 with 32 bytes of data:

Request timed out.
Reply from 2.2.2.11: bytes=32 time=7ms TTL=125
Reply from 2.2.2.11: bytes=32 time=9ms TTL=125
Reply from 2.2.2.11: bytes=32 time=9ms TTL=125

Ping statistics for 2.2.2.11:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 7ms, Maximum = 9ms, Average = 8ms
    
C:\>ping 3.3.3.5

Pinging 3.3.3.5 with 32 bytes of data:

Reply from 3.3.3.5: bytes=32 time=6ms TTL=254
Reply from 3.3.3.5: bytes=32 time=6ms TTL=254
Reply from 3.3.3.5: bytes=32 time=6ms TTL=254
Reply from 3.3.3.5: bytes=32 time=4ms TTL=254

Ping statistics for 3.3.3.5:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 4ms, Maximum = 6ms, Average = 5ms

 

PC2 테스트

C:\>ping 1.1.1.11

Pinging 1.1.1.11 with 32 bytes of data:

Reply from 1.1.1.11: bytes=32 time=10ms TTL=125
Reply from 1.1.1.11: bytes=32 time=8ms TTL=125
Reply from 1.1.1.11: bytes=32 time=8ms TTL=125
Reply from 1.1.1.11: bytes=32 time=9ms TTL=125

Ping statistics for 1.1.1.11:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 8ms, Maximum = 10ms, Average = 8ms
    
C:\>ping 3.3.3.1

Pinging 3.3.3.1 with 32 bytes of data:

Reply from 3.3.3.1: bytes=32 time=8ms TTL=253
Reply from 3.3.3.1: bytes=32 time=7ms TTL=253
Reply from 3.3.3.1: bytes=32 time=6ms TTL=253
Reply from 3.3.3.1: bytes=32 time=8ms TTL=253

Ping statistics for 3.3.3.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 6ms, Maximum = 8ms, Average = 7ms

실습04_RIP_routing_default_X.pkt
0.05MB


2. default route 설정을 이용

1번 파일에서 설정한다.

loopback 인터페이스를 활성화

R2(config)#int loopback0

R2(config-if)#
%LINK-5-CHANGED: Interface Loopback0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

R2(config-if)#ip add 10.10.10.1 255.255.255.0
R2(config-if)#do show ip int brief
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     unassigned      YES unset  administratively down down 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
Serial0/0/0            3.3.3.2         YES manual up                    up 
Serial0/0/1            3.3.3.5         YES manual up                    up 
Loopback0              10.10.10.1      YES manual up                    up 
Vlan1                  unassigned      YES unset  administratively down down

 

default route 인터페이스를 지정하고 이를 rip이 광고하도록 설정

R2(config-if)#ip route 0.0.0.0 0.0.0.0 loopback0
%Default route without gateway, if not a point-to-point interface, may impact performance
R2(config)#router rip
R2(config-router)#default-information originate
R2(config-router)#do show ip route
Codes: L - local, 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, E - EGP
       i - IS-IS, 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 0.0.0.0 to network 0.0.0.0

R    1.0.0.0/8 [120/1] via 3.3.3.1, 00:00:18, Serial0/0/0
R    2.0.0.0/8 [120/1] via 3.3.3.6, 00:00:20, Serial0/0/1
     3.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C       3.3.3.0/30 is directly connected, Serial0/0/0
L       3.3.3.2/32 is directly connected, Serial0/0/0
C       3.3.3.4/30 is directly connected, Serial0/0/1
L       3.3.3.5/32 is directly connected, Serial0/0/1
     10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       10.10.10.0/24 is directly connected, Loopback0
L       10.10.10.1/32 is directly connected, Loopback0
S*   0.0.0.0/0 is directly connected, Loopback0

 

default route 정보가 갱신되었는지 확인

R1

R1#show ip route
Codes: L - local, 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, E - EGP
       i - IS-IS, 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 3.3.3.2 to network 0.0.0.0

     1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       1.1.1.0/24 is directly connected, GigabitEthernet0/0
L       1.1.1.1/32 is directly connected, GigabitEthernet0/0
R    2.0.0.0/8 [120/2] via 3.3.3.2, 00:00:20, Serial0/0/0
     3.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C       3.3.3.0/30 is directly connected, Serial0/0/0
L       3.3.3.1/32 is directly connected, Serial0/0/0
R       3.3.3.4/30 [120/1] via 3.3.3.2, 00:00:20, Serial0/0/0
R*   0.0.0.0/0 [120/1] via 3.3.3.2, 00:00:20, Serial0/0/0

R2

R2#show ip route
Codes: L - local, 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, E - EGP
       i - IS-IS, 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 0.0.0.0 to network 0.0.0.0

R    1.0.0.0/8 [120/1] via 3.3.3.1, 00:00:22, Serial0/0/0
R    2.0.0.0/8 [120/1] via 3.3.3.6, 00:00:18, Serial0/0/1
     3.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C       3.3.3.0/30 is directly connected, Serial0/0/0
L       3.3.3.2/32 is directly connected, Serial0/0/0
C       3.3.3.4/30 is directly connected, Serial0/0/1
L       3.3.3.5/32 is directly connected, Serial0/0/1
     10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       10.10.10.0/24 is directly connected, Loopback0
L       10.10.10.1/32 is directly connected, Loopback0
S*   0.0.0.0/0 is directly connected, Loopback0

R3

R3#show ip route
Codes: L - local, 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, E - EGP
       i - IS-IS, 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 3.3.3.5 to network 0.0.0.0

R    1.0.0.0/8 [120/2] via 3.3.3.5, 00:00:11, Serial0/0/0
     2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       2.2.2.0/24 is directly connected, GigabitEthernet0/0
L       2.2.2.1/32 is directly connected, GigabitEthernet0/0
     3.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R       3.3.3.0/30 [120/1] via 3.3.3.5, 00:00:11, Serial0/0/0
C       3.3.3.4/30 is directly connected, Serial0/0/0
L       3.3.3.6/32 is directly connected, Serial0/0/0
R*   0.0.0.0/0 [120/1] via 3.3.3.5, 00:00:11, Serial0/0/0

 

PC1 테스트

C:\>ping 2.2.2.11

Pinging 2.2.2.11 with 32 bytes of data:

Request timed out.
Reply from 2.2.2.11: bytes=32 time=6ms TTL=125
Reply from 2.2.2.11: bytes=32 time=6ms TTL=125
Reply from 2.2.2.11: bytes=32 time=7ms TTL=125

Ping statistics for 2.2.2.11:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 6ms, Maximum = 7ms, Average = 6ms

C:\>ping 3.3.3.5

Pinging 3.3.3.5 with 32 bytes of data:

Reply from 3.3.3.5: bytes=32 time=10ms TTL=254
Reply from 3.3.3.5: bytes=32 time=5ms TTL=254
Reply from 3.3.3.5: bytes=32 time=5ms TTL=254
Reply from 3.3.3.5: bytes=32 time=7ms TTL=254

Ping statistics for 3.3.3.5:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 5ms, Maximum = 10ms, Average = 6ms

 

PC2 테스트

C:\>ping 1.1.1.11

Pinging 1.1.1.11 with 32 bytes of data:

Reply from 1.1.1.11: bytes=32 time=9ms TTL=125
Reply from 1.1.1.11: bytes=32 time=8ms TTL=125
Reply from 1.1.1.11: bytes=32 time=7ms TTL=125
Reply from 1.1.1.11: bytes=32 time=9ms TTL=125

Ping statistics for 1.1.1.11:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 7ms, Maximum = 9ms, Average = 8ms
    
C:\>ping 3.3.3.1

Pinging 3.3.3.1 with 32 bytes of data:

Reply from 3.3.3.1: bytes=32 time=6ms TTL=253
Reply from 3.3.3.1: bytes=32 time=9ms TTL=253
Reply from 3.3.3.1: bytes=32 time=13ms TTL=253
Reply from 3.3.3.1: bytes=32 time=6ms TTL=253

Ping statistics for 3.3.3.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 6ms, Maximum = 13ms, Average = 8ms

실습04_RIP_routing_default_O.pkt
0.05MB

 

'네트워크 공부 기록' 카테고리의 다른 글

OSPF 실습  (0) 2022.01.18
OSPF  (0) 2022.01.18
동적 라우팅 및 RIP  (0) 2022.01.17
정적 라우팅 구현 실습 (라우팅 정보 입력 및 Default 라우팅)  (0) 2022.01.14
Router 및 정적 라우팅  (0) 2022.01.14

+ Recent posts