도슐랭스타
라우터 명령어 정리 본문
FastEthernet
1. Router1의 FastEthernet 0/0의 IP를 192.168.0.100/24로 설정하시오.
en
conf t
interface fastethernet 0/0
ip add 192.168.0.100 255.255.255.0
exit
exit
copy r s
2. FastEthernet 0/0의 Description을 설정하시오. Description : ICQA
en
conf t
interface fastethernet 0/0
desctiption ICQA
exit
exit
copy r s
3. access-list 1이 설정되어 있을 때 FastEthernet 0/0에 적용하시오.
en
conf t
interface fastethernet 0/0
ip access-group 1 in
ip access-group 1 out
exit
exit
copy r s
Serial
1. Router1의 Serial 2/0을 사용 가능하게 IP주소를 192.168.0.101/24와 두 번째 IP 192.168.0.102/24로 설정하고 활성화하시오.
en
interface serial 2/0
ip add 192.168.0.101 255.255.255.0
ip add 192.168.0.102 255.255.255.0 secondary
no shutdown
exit
exit
copy r s
2. serial 2/0을 활성화 시키시오.
en
conf t
interface serial 2/0
no shutdown
exit
exit
copy r s
3. Router2의 Serial 2/0의 대역폭을 2048로 설정하시오.
en
conf t
interface serial 2/0
bandwidth 2048
exit
exit
copy r s
4. Router2의 Serial 2/0의 clock 속도를 72K로 설정하시오.
en
conf t
interface serial 2/0
clock rate 72000
exit
exit
copy r s
5. Serial 2/0에 frame relay 방식으로 캡슐화하시오.
en
conf t
interface serial 2/0
encapsulation frame-relay
exit
exit
copy r s
DHCP
1. Router1의 DHCP 네트워크를 192.168.100.0/24로 서버 이름은 icqa로 설정하시오.
en
conf t
ip dhcp pool icqa
network 192.168.100.0 255.255.255.0
exit
exit
copy r s
게이트웨이 (exit 한 번)
1. 기본 게이트웨이를 설정하시오. IP : 192.168.0.10
en
conf t
ip dafault-gateway 192.168.0.10
exit
copy r s
네트워크 (exit 한 번)
1. default network를 192.168.0.10으로 설정하시오.
en
conf t
ip default-network 192.168.0.10
exit
copy r s
2. 라우팅 테이블에 등록되지 않는 목적지로 향하는 패킷은 192.168.1.1 네트워크 보내도록 Router 1에 디폴트 네트워크를 설정하시오(ip route 0.0.0.0 사용 금지)
en
conf t
ip default-network 192.168.1.1
exit
copy r s
확인 show
1. 라우팅 테이블 정보를 확인하고 저장하시오.
en
show ip route
copy r s
2. 인터페이스 정보를 확인하고 저장하시오.
en
show interface
copy r s
3. host 정보를 확인하고 저장하시오.
en
show host
copy r s
4. 접속한 사용자 정보를 확인하고 저장하시오.
en
show user
copy r s
5. 소프트웨어 버전과 IOS 버전 등을 확인하고 저장하시오.
en
show version
copy r s
6. 플래시 내용을 확인하고 저장하시오.
en
show flash
copy r s
7. 프로세서 내용을 확인하고 저장하시오.
en
show process
copy r s
이름 설정 (exit 한 번)
1. Router2의 호스트 이름을 'ICQA'로 설정하시오.
en
conf t
hosetname ICQA
exit
copy r s
2. Router1의 domain-name을 다음과 같이 설정하시오. (domain-name: ICQA)
en
conf t
ip domain-name ICQA
exit
copy r s
console
1. console 0의 패스워드 ICQA로 설정하고 로그인하시오.
en
conf t
line console 0
password ICQA
login
exit
exit
copy r s
2. hostname을 network2로 변경하고 console 0의 password를 ICQA로 변경 후 로그인하시오.
en
conf t
hostname network2
line console 0
password ICQA
login
exit
exit
copy r s
3. console 0의 도메인 명을 AAA로 설정하시오.
en
conf t
line console 0
ip domain-name AAA
exit
exit
copy r s
Telnet
1. 라우터에서 Telnet 접속할 때 vty 0 4까지 ssh로 접속이 가능하도록 설정하시오.
en
conf t
line vty 0 4
transport input ssh
exit
exit
copy r s
2. Router1의 Telnet에 접근하는 Password를 ICQA로 설정하고 로그인하시오.
en
conf t
line vty 0 4
password ICQA
login
exit
exit
copy r s
3. 텔넷 연결 후 3분 50초 동안 입력이 없으면 세션이 자동 종료되도록 설정하시오.
en
conf t
line vty 0 4
exec-timeout 03 50
exit
exit
copy r s