R1
Router#conf t
Router(config)#hostname R1
R1(config)#int fa 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#ex
R1(config)#int fa 0/1
R1(config-if)#ip address 192.168.2.254 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#ex
R1(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.253
R1(config)#ip route 192.168.5.0 255.255.255.0 192.168.2.253
R1(config)#ip route 192.168.7.0 255.255.255.0 192.168.2.253
R1(config)#ip route 192.168.4.0 255.255.255.0 192.168.2.253
R1(config)#ip route 192.168.6.0 255.255.255.0 192.168.2.253
R1(config)#ex
R1r#wr
-----------------------------------------------------------------------------------------
R2
Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#int fa 1/0
R2(config-if)#ip address 192.168.2.253 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#ex
R2(config)#int fa 0/0
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#ex
R2(config)#int fa 0/1
R2(config-if)#ip address 192.168.4.254 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#ex
R2(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.254
R2(config)#ip route 192.168.5.0 255.255.255.0 192.168.4.253
R2(config)#ip route 192.168.7.0 255.255.255.0 192.168.4.253
R2(config)#ip route 192.168.6.0 255.255.255.0 192.168.4.253
R2(config)#ex
R2#wr
-----------------------------------------------------------------------------------------
R3
Router>en
Router#conf t
Router(config)#hostname R3
R3(config)#int fa 1/0
R3(config-if)#ip address 192.168.4.253 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#ex
R3(config)#int fa 0/0
R3(config-if)#ip address 192.168.5.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#ex
R3(config)#int fa 0/1
R3(config-if)#ip address 192.168.6.254 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#ex
R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.4.254
R3(config)#ip route 192.168.2.0 255.255.255.0 192.168.4.254
R3(config)#ip route 192.168.3.0 255.255.255.0 192.168.4.254
R3(config)#ip route 192.168.7.0 255.255.255.0 192.168.6.253
R3(config)#ex
R3#wr
-----------------------------------------------------------------------------------------
R4
Router#conf t
Router(config)#hostname R4
R4(config)#int fa 0/1
R4(config-if)#ip address 192.168.6.253 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#ex
R4(config)#int fa 0/0
R4(config-if)#ip address 192.168.7.1 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#ex
R4(config)#ip route 192.168.1.0 255.255.255.0 192.168.6.254
R4(config)#ip route 192.168.2.0 255.255.255.0 192.168.6.254
R4(config)#ip route 192.168.3.0 255.255.255.0 192.168.6.254
R4(config)#ip route 192.168.4.0 255.255.255.0 192.168.6.254
R4(config)#ip route 192.168.5.0 255.255.255.0 192.168.6.254
R4(config)#ex
R4#wr
show running-config ( 인터페이스를 확인합니다 )
show ip route ( 라우팅 테이블을 확인합니다 )
pc0에서 pc3에 ping을 보내 확인합니다.
Static Routing(정적 라우팅)
라우팅 테이블에 네트워크주소를 직접 등록
왜 설정?? 라우팅 테이블에 네트워크 주소가 없으면 데이터를 보내지 못하고 drop 시킨다
Dynamic Routing (동적 라우팅)
라우팅 프로토콜에 의해 라우터가 자동으로 라우팅 테이블을 입력 ,트래픽 많이발생하여 보안에 취약
'네트워크' 카테고리의 다른 글
traceroute (경로 추적) (0) | 2021.04.27 |
---|---|
Routing table(라우팅 테이블) 보는 법 (0) | 2021.04.27 |
Cisco Packet Tracer (패킷 트레이서) 3 -Static Routing 설정하기 (0) | 2021.04.26 |
Cisco Packet Tracer (패킷 트레이서) 2- 라우터 3대 IP할당 (0) | 2021.04.26 |
OSI 7 Layer, Address 정리 (0) | 2021.04.26 |