<9일차>

c7200=router
[연결하기 GNS]
(해커)192.168.0.1 | 255.255.255.0 | 192.168.0.254 | 192.168.1.1<-->192.168.0.0/24<-->1.1.1.0/30
<-->192.168.1.0/24<-->(target)192.168.1.1 | 255.255.255.0 | 192.168.0.254 | 192.168.1.1
서버에다가 PORT열어주기()

[열려있는 포트번호]
0~65535 | 80,443 | 21 | 22 | 23 | 25 | 80 | 110 | 143 | 443 | 445 | 3306 | 5044 | 5601 | 5900 | 9200
*라우터에 연결되어 있는 왼쪽부분 = gateway(오른쪽과 동네가 다름)

[custom consol >> ip넣기]
?
ip ?
ip 192.168.0.1 255.255.255.0 192.168.0.254(gate way)
show ip
-------------------------------------
#은 관리자 모드
>은 일반 사용자 모드
(show는 항상 나와서 치기!)

#R1
hostname HACKER
exit
show interface stats
config t
interface FastEthernet0/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

#R2
hostname TARGET
exit
show interface stats
config t
interface FastEthernet0/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