네트워크/패킷트레이서
RIP OSPF
1105
ip route [목적지네트워크주소] [SM] [인접한라우터 IP주소]
[자신의 인터페이스명]
기본 경로 설정
ip route 0.0.0.0 0.0.0.0 [인접한라우터 IP주소]
[자신의 인터페이스명]
hostname SW1
enable secret tcp
line con 0
password ip
login
line vty 0 15
password ip
login
no ip domain-lookup
service password-encryption
int vlan1
ip add 192.168.1.2 255.255.255.0
no shut
ip default-gateway 192.168.1.1
정적 라우팅
스위치에는 관리목적상 ip를 배정한다.
다른네트워크에서 접속할 경우 게이트웨이주소를 설정
정적 라우팅
다음-홉 라우터 ip를 사용
기본 거리값을 이용하여 우선순위에 의해 처리를 한다.
정적라우팅 상태 확인
show ip route
S = static(정적라우팅 상태)C = connected (연결됨)
(config)# ip route [목적지네트워크주소] [서브넷마스크] [인접한라우터주소]
20181022
스위치 - CSMA/CD -- 2계층 Datalink
Router // 3계층
Frame == Switch
Switch // --5분동안 유지
└PC
스위치 관리목적으로 IP배정 가능 (Vlan1)
enable
conf t
-- 기말고사
빠진부분을 명령어를 통해서 찾기
conf t
line con 0
password ip
login
do wr
line vty 0 15
password ip
login
en
sh run
-- Setting for hostname
Switch(config)# hostname SW2
SW2(config)#
-- Setting for password
SW2(config)# enable password [PASSWORD]
SW2(config)# enable secret [PASSWORD]
-- Setting console password
SW2(config)# line con 0
SW2(config-line)# password [PASSWORD]
SW2(config-line)# login
-- VTY Setting
SW2(config)# line vty 0 15
SW2(config-line)# password [PASSWORD]
SW2(config-line)# login
SW2(config-line)# exit
-- translaton dlsable
SW1(config)# no ip domain-lookup
-- 원격지에서 telnet 사용
SW1(config)# ip default-gateway 192.168.1.1
-- 맥주소 테이블
SW2# show mac-address-table
Switch(config)# hostname SW2
SW2(config)# enable sec
SW2(config)# enable secret tcp
SW2(config)# line con 0
SW2(config-line)# password ip
SW2(config-line)# login
SW2(config-line)# line vty 0 15
SW2(config-line)# password ip
SW2(config-line)# login
SW2(config-line)# do wr
Building configuration...
[OK]
SW2(config-line)# int vlan1
SW2(config-if)# ip add 192.168.2.2 255.255.255.0
스위치는 맥주소를 가지고 학습을 한다.
-- 초기화
erase tartup-config
delete flash:vlan.dat
reload
네트워크 구축 실습 시험문제
라우터 설정
date : 09/17/2018
0. connect to laptop (console)
// login on console
1. router > enable
2. router# configure
3. router(config)# interface FastEthernet 0/0
4. router(config-if)# ip address 192.168.1.1 255.255.255.192
5. router(config-if)# no shutdown
6. router(config-if)# exit
// End of Interface setting
7. router(config)# interface FastEthernet 0/1
8. router(config-if)# ip address 192.168.1.65 255.255.255.192
9. router(config-if)# no shutdown
10.router(config-if)# exit
아이피 설정을 잘못 했을 때
no ip 입력
------------------
> : 사용자 모드
# : 관리자 모드
router(config)# : 전역 설정모드
router(config-if)# : 인터페이스 모드
Router# copy running-config startup-config
enable password [pw]
service password-encryption
enable
enable secret [pw]
----------------1001
en
conf t
hostname net1
enable password ip
enable secret tcp
service password-encryption
int fa0/0
ip ad 192.168.2.1 255.255.255.0
no shut
int se0/0/1
ip ad 10.10.10.2 255.255.255.0
no shut
--------------1008
show interfaces fa0/0
show ip interface brief
show running-config
show startup-config
copy running-config startup-config
=> write
라우터 이름 설정 -> 전역설정 모드
관리자 암호 설정
router(config)# enable password [pw] : 평문으로 저장
router(config)# enable password [pw] : 암호화 되어서 저장
# 아이피 찾기 해제
router(config)# no ip domain-lookup
# console 비밀번호 설정
router(config)# line console 0 # console 설정
router(config-line)# password [pw] # console 비밀번호 설정
router(config-line)# login # 활성화
# 텔넷 설정하기
router(config)# line vty 0 4 # 가상 터미널(텔넷) 설정
router(config-line)# password [pw] #
router(config-line)# login # 활성화