2020. 5. 17. 00:23ㆍ네트워크/라우터
두 사람이서 R4- (클라우드)R1(클라우드) -R2-R3을 연결 할 계획이다.
명령어는 다음과 같다.
[R1]
en
conf t
hostname R1
int fastethernet 0/0
ip add 192.168.50.254 255.255.255.0
no shut
int fastethernet 1/0
ip add 192.168.69.2 255.255.255.0
no shut
int fastethernet 1/1
ip add 192.168.68.2 255.255.255.0
no shut
end
conf t
ip route 172.16.0.0 255.255.0.0 192.168.68.1
router rip
network 192.168.50.0
network 192.168.69.0
network 192.168.68.0
end
copy r s
[R4]
interface Loopback1
ip address 172.16.1.254 255.255.255.0
!
interface FastEthernet0/0
ip address 192.168.69.1 255.255.255.0
duplex half
!
[R2]
show ip route
!
interface FastEthernet0/0
ip address 192.168.68.1 255.255.255.0
duplex half
!
interface Serial2/0
ip address 192.168.23.2 255.255.255.0
serial restart-delay 0
!
router rip
network 192.168.23.0
network 192.168.68.0
[R3]
R3#conf t
R3(config)#interface serial 2/0
R3(config-if)#ip add 192.168.23.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#end
R3#conf t
R3(config)#router rip
R3(config-router)#network 192.168.23.0
R3(config-router)#end
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
C 192.168.23.0/24 is directly connected, Serial2/0
R 192.168.68.0/24 [120/1] via 192.168.23.2, 00:00:03, Serial2/0
R 192.168.50.0/24 [120/2] via 192.168.23.2, 00:00:03, Serial2/0
R 192.168.69.0/24 [120/2] via 192.168.23.2, 00:00:03, Serial2/0
'네트워크 > 라우터' 카테고리의 다른 글
RIPv2 Summary 수동서머리no auto-summary (0) | 2020.05.17 |
---|---|
no ip split-horizon (0) | 2020.05.17 |
라우팅 재분배 (0) | 2020.05.17 |
클라우드를 이용하여 라우터 연결 (0) | 2020.05.12 |
라우터 기본 상식 (0) | 2020.05.11 |