즉
1. ip설정
2. 핑
3.라우팅
4.라우터접속설정
5.dns 라우터
6.tftp 라우터
192.168.1.0/24
1111 1111. 1111 1111. 1111 1111. 0000 0000
서브넷 6개 -> 2진수단위 8개
256/8=32 -> 호스트수
네트워크 쪼개기
192.168.1.0 (1~30) 맨앞은 net ip 맨뒤는 broadcast
192.168.1.32 (33~62)
192.168.1.64 (65~94)
192.168.1.96 (97~126)
192.168.1.128 (129~158)
192.168.1.160 (161~190)
192.168.1.192 (193~222)
192.168.1.224 (225~254)
->서브넷 8개
네트워크 아이디 255.255.255.224(256-32(호스트수))
해서 아이피 주고
서버 네트워크 대역에서 gw주고
1.pc-라우터 pc-서버 점선
2.라우터 라우터 실선 시계(서버쪽으로?)
3.pc랑 서버에에 ip netmask gw 넣기 no sh
4.서버에도 ip netmask gw 넣기
5. 라우터에 gw ip넣기
en
conf t
int se n/n
ip add gw nm
no sh
end
copy run sta
do show ip int bri
6.라우팅
시계쪽 피씨 연결개수만큼
en
conf t
int se n/n
ip add gw nm
ip route 피씨네트워크 네트워크아이디 피씨연결쪽gw
시계x
en
conf t
int se n/n
ip add gw nm
ip route 0.0.0.0 0.0.0.0 시계쪽 gw
확인
show run
do show ip int bri
라우터 설정
en
conf t
라우터 호스트네임 아이디비번 로그인
hostname nn
enable password nnn /username nnn passwork nnn
line vty 0 4 -> 0~4까지 5명 들어갈수있음
login (유저네임 없을때) / login local(유저네임 있을때)
라우터 telnet -> line 들어가서
transport input telnet
password nnn
로그인->pc로
login (유저네임 없을때) / login local(유저네임 있을때)
라우터 ssh -> line 들어가서
ip name-server dns 아이피
ip domain-name nn라우터이름->도메인
crypto key generate rsa
2048 -> 암호화키 길이
ip ssh version 2 -> 프로토콜 버전
transport input ssh -> line vty 에서
로그인->pc로
en conf t int se n/n
시계 DCE 연결부분 많은쪽 clock rate 128000/ bandwidth 1544/ encapsulation ppp ->프로토콜주는거
시계x DTE / bandwidth 1544/ encapsulation ppp
login (유저네임 없을때) / login local(유저네임 있을때)
확인
show run
copy run sta
6. pc에서 서버들이랑 핑때려보기
7. dns 서버
dns서버 A Record로 config에서 dns만 on
dns이름에 링크 적고 주소 ip 적고 add DNS http(웹서버) tftp ftp
pc에서 dns ip 기입후 ping 링크주소
[라우터 dns서버 설정]
en
conf t
int fa n/n
ip name-server dns의ip
ip domain-lookup
end
copy run sta
Destination filename [startup-config]
8.http
http서버 config에서 http만 on 나머지 off
file name에서 <h1>쓰고싶은것 </h1> ->글씨 커짐
pc 웹 브라우저에서 http://웹서버 주소or ip 입력
9. pc 확인
nslookup 링크들
10. tftp 설정 (라우터)
end
en
copy sta tftp:
Address or name of remote host -> tftp 링크쓰기
Destination filename [Router-confg] ? -> R0_sta
tftp 서버 config tftp에서 R0_sta 빼고 다 지움
show flash: -> 확인해서 c로 시작하는거 복사
백업
copy flash tftp:
Source filename []? -> 복붙
Address or name of remote host -> tftp 링크쓰기
Destination filename [Router-confg] ? -> R0_IOS
11. ftp 설정
ftp 서버만on
config 들어가서 username은 ftp로 password는 sevas로 설정함
밑에 체크박스 다 체크하고 +
[라우터]
en
conf t
ip ftp username ftp
ip ftp passwork secvas
exit?
end
백업
copy sta ftp:
Address or name of remote host -> ftp 링크
Destination filename [Router-confg] ? -> R0_sta