9일차

gns3 preferens로 가서 virtualbox확인
rockylinux 다운로드
ios router 접속 d드라이브에 받은2개 추가
7200은 슬롯1번에 4t +설정 후 next
80은 웹이기 때문에 거의 항상 열려있다
다른 포트들도 열어둘 수는 있지만
다른사람들이 함부로 들어오지 못하게 막아두어야 한다
포트들은 서버에 열어야한다
192.168.0.254 여기서 192.168.1.254로 갈려면 통로가 필요한데
router이 출입구 역할을 한다
switch까지는 같은 대역대를 사용한다
예시
cpu switch router ㅣ router2 switch2 cpu2

router과 pc 연결법
컴퓨터에는 ip 자기 주소 입력 후 #R1실행
이전에는 ping을 쳐도 작동하지 않는다

#은 관리자 모드
>은 일반 사용자 모드

#R1
config t
hostname HACKER
exit
show interface stats
config t
interface FasthEthernet0/0
ip address 192.168.0.254 255.255.255.0
no shutdown
exit
config t
interface Serial1/0
ip address 1.1.1.1 255.255.255.252
no shutdown
exit
ip route 192.168.1.0 255.255.255.0 1.1.1.2

우클릭 하면 자동 복붙 후 실행
컴퓨터에서 ping 자기 주소를 입력하면 핑이 제대로 작동되는걸 볼 수 있다

#R2
config t
hostname Target
exit
show interface stats
config t
interface FasthEthernet0/0
ip address 192.168.1.254 255.255.255.0
no shutdown
exit
config t
interface Serial1/0
ip address 1.1.1.2 255.255.255.252
no shutdown
exit
ip route 192.168.0.0 255.255.255.0 1.1.1.1