위와 같이 실습 환경을 구성한다.

모든 라우터에 hostname, PW, no ip domain-lookup은 설정한다.

static_routing.pkt
0.05MB

라우터 IP 설정

R1

R1(config)#int g0/0
R1(config-if)#ip address 1.4.1.1 255.255.255.0
R1(config-if)#no shutdown

R1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up

R1(config-if)#int s0/0/0
R1(config-if)#ip address 1.4.4.1 255.255.255.0
R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
R1(config-if)#int s0/0/1
R1(config-if)#ip address 1.4.5.1 255.255.255.0
R1(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down

R1(config)#do show ip int brief
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     1.4.1.1         YES manual up                    up 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
Serial0/0/0            1.4.4.1         YES manual up                    up 
Serial0/0/1            1.4.5.1         YES manual up                    up 
Vlan1                  unassigned      YES unset  administratively down down

 

R2

R2(config)#int g0/0
R2(config-if)#ip address 1.4.2.1 255.255.255.0
R2(config-if)#no sh

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up

R2(config-if)#int s0/0/0
R2(config-if)#ip address 1.4.4.2 255.255.255.0
R2(config-if)#no sh

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

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

 

R3

R3(config)#int g0/0
R3(config-if)#ip address 1.4.3.1 255.255.255.0
R3(config-if)#no sh

R3(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up

R3(config-if)#int s0/0/0
R3(config-if)#ip address 1.4.5.2 255.255.255.0
R3(config-if)#no sh

R3(config)#do show ip int brief
Interface              IP-Address      OK? Method Status                Protocol 
GigabitEthernet0/0     1.4.3.1         YES manual up                    up 
GigabitEthernet0/1     unassigned      YES unset  administratively down down 
Serial0/0/0            1.4.5.2         YES manual up                    up 
Serial0/0/1            unassigned      YES unset  administratively down down 
Vlan1                  unassigned      YES unset  administratively down down

 

라우팅 설정

R1

R1(config)#ip route 1.4.2.0 255.255.255.0 1.4.4.2
R1(config)#ip route 1.4.3.0 255.255.255.0 1.4.5.2
R1(config)#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 not set

     1.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
C       1.4.1.0/24 is directly connected, GigabitEthernet0/0
L       1.4.1.1/32 is directly connected, GigabitEthernet0/0
S       1.4.2.0/24 [1/0] via 1.4.4.2
S       1.4.3.0/24 [1/0] via 1.4.5.2
C       1.4.4.0/24 is directly connected, Serial0/0/0
L       1.4.4.1/32 is directly connected, Serial0/0/0
C       1.4.5.0/24 is directly connected, Serial0/0/1
L       1.4.5.1/32 is directly connected, Serial0/0/1

 

R2

R2(config)#ip route 0.0.0.0 0.0.0.0 serial0/0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
R2(config)#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

     1.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C       1.4.2.0/24 is directly connected, GigabitEthernet0/0
L       1.4.2.1/32 is directly connected, GigabitEthernet0/0
C       1.4.4.0/24 is directly connected, Serial0/0/0
L       1.4.4.2/32 is directly connected, Serial0/0/0
S*   0.0.0.0/0 is directly connected, Serial0/0/0

 

R3

R3(config)#ip route 0.0.0.0 0.0.0.0 serial0/0/0
%Default route without gateway, if not a point-to-point interface, may impact performance
R3(config)#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

     1.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C       1.4.3.0/24 is directly connected, GigabitEthernet0/0
L       1.4.3.1/32 is directly connected, GigabitEthernet0/0
C       1.4.5.0/24 is directly connected, Serial0/0/0
L       1.4.5.2/32 is directly connected, Serial0/0/0
S*   0.0.0.0/0 is directly connected, Serial0/0/0

 

TEST

PC1

C:\>ping 1.4.1.12

Pinging 1.4.1.12 with 32 bytes of data:

Reply from 1.4.1.12: bytes=32 time<1ms TTL=128
Reply from 1.4.1.12: bytes=32 time<1ms TTL=128
Reply from 1.4.1.12: bytes=32 time<1ms TTL=128
Reply from 1.4.1.12: bytes=32 time=3ms TTL=128

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

C:\>ping 1.4.2.12

Pinging 1.4.2.12 with 32 bytes of data:

Request timed out.
Reply from 1.4.2.12: bytes=32 time=7ms TTL=126
Reply from 1.4.2.12: bytes=32 time=4ms TTL=126
Reply from 1.4.2.12: bytes=32 time=4ms TTL=126

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

C:\>ping 1.4.2.11

Pinging 1.4.2.11 with 32 bytes of data:

Request timed out.
Reply from 1.4.2.11: bytes=32 time=5ms TTL=126
Reply from 1.4.2.11: bytes=32 time=4ms TTL=126
Reply from 1.4.2.11: bytes=32 time=4ms TTL=126

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

C:\>ping 1.4.3.11

Pinging 1.4.3.11 with 32 bytes of data:

Request timed out.
Reply from 1.4.3.11: bytes=32 time=4ms TTL=126
Reply from 1.4.3.11: bytes=32 time=5ms TTL=126
Reply from 1.4.3.11: bytes=32 time=8ms TTL=126

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

C:\>ping 1.4.3.12

Pinging 1.4.3.12 with 32 bytes of data:

Request timed out.
Reply from 1.4.3.12: bytes=32 time=1ms TTL=126
Reply from 1.4.3.12: bytes=32 time=1ms TTL=126
Reply from 1.4.3.12: bytes=32 time=4ms TTL=126

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

 

PC2

C:\>ping 1.4.1.11

Pinging 1.4.1.11 with 32 bytes of data:

Reply from 1.4.1.11: bytes=32 time=6ms TTL=126
Reply from 1.4.1.11: bytes=32 time=4ms TTL=126
Reply from 1.4.1.11: bytes=32 time=4ms TTL=126
Reply from 1.4.1.11: bytes=32 time=4ms TTL=126

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

C:\>ping 1.4.3.11

Pinging 1.4.3.11 with 32 bytes of data:

Reply from 1.4.3.11: bytes=32 time=10ms TTL=125
Reply from 1.4.3.11: bytes=32 time=5ms TTL=125
Reply from 1.4.3.11: bytes=32 time=5ms TTL=125
Reply from 1.4.3.11: bytes=32 time=5ms TTL=125

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

 

PC3

C:\>ping 1.4.1.12

Pinging 1.4.1.12 with 32 bytes of data:

Request timed out.
Reply from 1.4.1.12: bytes=32 time=4ms TTL=126
Reply from 1.4.1.12: bytes=32 time=7ms TTL=126
Reply from 1.4.1.12: bytes=32 time=4ms TTL=126

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

C:\>ping 1.4.2.12

Pinging 1.4.2.12 with 32 bytes of data:

Reply from 1.4.2.12: bytes=32 time=10ms TTL=125
Reply from 1.4.2.12: bytes=32 time=5ms TTL=125
Reply from 1.4.2.12: bytes=32 time=9ms TTL=125
Reply from 1.4.2.12: bytes=32 time=5ms TTL=125

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

ping이 잘 가는 것을 확인할 수 있다.

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

RIP 라우팅 구현 실습  (0) 2022.01.17
동적 라우팅 및 RIP  (0) 2022.01.17
Router 및 정적 라우팅  (0) 2022.01.14
VLAN 실습  (0) 2022.01.13
VLAN  (0) 2022.01.13

+ Recent posts