C:\>ping 192.4.23.11
Pinging 192.4.23.11 with 32 bytes of data:
Reply from 192.4.23.11: bytes=32 time=13ms TTL=123
Reply from 192.4.23.11: bytes=32 time=10ms TTL=123
Reply from 192.4.23.11: bytes=32 time=12ms TTL=123
Reply from 192.4.23.11: bytes=32 time=29ms TTL=123
Ping statistics for 192.4.23.11:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 10ms, Maximum = 29ms, Average = 16ms
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),
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
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