[ 스위치 모드 변경하기 ]
① Switch>enable ☞ 유저모드(User Mode) ② Switch#config terminal ☞ 프리빌리지 모드(관리자모드)
③ Switch(config)#interface fastethernet 0/1 ☞ 구성모드(configuration mode)
④ Switch(config-if)# ☞ 인터페이스 구성모드
⑤ Switch(config-if)#exit -> 빠져나가기
⑥ Switch(config)#exit ⑦ Switch# exit ⑧ Switch> enable
⑨ Switch# show interface status -> 포트별 상태를 알아보기 ( 명령어는 반드시 관리자모드에서
입력해야한다.)
⑩ Switch# show ? -> show 다음 입력할 수 있는 명령어 모음 표시
⑪ Switch# show interface ?
⑫ Switch# show interfaces -> 각 포트의 설정보기 ⑬ Switch# show interface -> 각 포트의 설정보기
[ 포트설정 바꾸기 ]
① Switch>enable ② Switch# configure terminal
③ Switch(config)# interface fastethernet 0/1
④ Switch(config-if)# speed 100 -> 속도를 100M 로 설정
⑤ Switch(config-if)# duplex full -> 전송방식을 전이중으로 설정
⑥ Switch(config-if)# exit -> 구성모드로 가기 ⑦ Switch(config)# exit -> 관리자 모드로 가기
⑧ Switch# show interface status
⑨ Switch# show interface fastethernet 0/1 (speed {auto | 100 | 10 } duplex {auto | half | full} )
1 번 포트를 속도(대역폭)은 100Mbps, 통신방식은 Full-duplex ,2 번 포트를 속도(대역폭)은 10Mbps,
통신방식은 half-duplex 로 설정하시오.
[ hostname 설정하기]
① Switch#config terminal ② Switch(config)# hostname atom 또는 hostname 노무현
노무현# //atom 은 이름이므로 다른 이름을 마음대로 사용할수 있다.
[ secret 암호설정하기]
① Switch# config terminal
② Switch(config)# enable secret atom123 //암호는 자유롭게 지정할 수 있다.(암호는 구성모드에서
지정한다)
③ Switch(config)# exit ④ Switch# exit
Switch> enable
Password: ******
Switch# // 이제는 암호를 넣어야 관리자모드로 들어갈 수 있다.
[ 스위치에 IP 주소 설정하기 ]
① Switch> enable ② Switch# config terminal
③ Switch(config)# interface vlan 1 ④ Swtitch(config-if)# ip address 192.168.100.1 255.255.255.0
⑤ Switch(config-if)# exit ⑥ Switch(config)# exit
⑦ Switch# show interface vlan1 또는 vlan 1
[ 기본 게이트웨이 설정하기 ]
① Switch# config terminal ② Switch(config)# ip default-gateway 192.168.0.1
③ Switch(config)# exit ④ Switch# show running-config // 현재 스위치에 설정된 모든 내용 보여주기
[ 암호 삭제하기 ] ① Switch(config)# no enable secret password 지정한 암호
[ 라우터 명령어 집합 ]
Router>enable (사용자모드에서 관리자모드로 전환하기)
[현재 사용하고 있는 구성파일 보기-RAM]
Router# show running-config 또는 write terminal
[NVRAM 에 저장된 구성파일 보기]
Router# show startup-config
[현재 구성을 NVRAM 에 저장하기]
Router# write memory 또는
copy running-config startup config
[ 플래시 메모리 정보보기 ]
Router# show flash
[ 라우터의 현재정보 보기 ]
Router# show version
[ 인터페이스 정보보기 ]
Router# show interface
[ 이더넷 인터페이스 0 번 보기 ]
Router# show interface ethernet 0
[ 라우터 CPU 사용률 보기 ]
Router# show processes cpu
[ 라우터 메모리 상태 보기 ]
Router# show memory
[ 구성모드로 들어가기 ]
Router# configure terminal
Router(config)# CTRL + P -> 명령어 히스토리 단축키
[ 라우터의 이름과 enable secret , enble password 설정하기 ]
Router(config)# hostname CISCO-2500
CISCO-2500(config)# enable secret cisco
CISCO-2500(config)# enable password seoul
CISCO-2500(config)# exit
CISCO-2500# exit
CISCO-2500> enable
Password: secret 암호가 설정되어있으면 secret 를 넣는다. 암호는 대소문자 구분합니다.
CISCO-2500# show running-config (현재 설정된 구성정보보기)
secret 암호와 패스워드 암호가 보인다.
[ 텔넷 접속 패스워드 설정하기 ]
CISCO-2500> enable
Router#> configure terminal
Router(config)# line vty 0 4
Router(config-line)#login ( 라인구성모드 )
Router(config-line)#password korea
Router(config-line)# exit
Router(config)#
[ 인터페이스 구성모드 들어가서 이더넷에 IP 주소 할당하기 ]
Router# configure terminal
Router(config)# interface ethernet 0
Router(config-if)# no shutdown ( 인터페이스 살리기 )
Router(config-if)#ip address 211.23.156.30 255.255.255.224
Router(config-if)# exit
Router(config)# exit
[ 시리얼 인터페이스 설정하기 ]
Router# configure terminal ( 구성모드로 들어가기 )
Router(config)# interface serial 0
Router(config-if)# no shutdown
Router(config-if)# ip address 10.123.51.41 255.255.255.252
Router(config-if)# exit
Router(config)# exit
Router# show running-config (현재 구성설정보기 )
ethernet 0 에 할당된 IP 주소를 확인한다. 텔넷에 할당된 암호를 확인한다.
Router# show interface ( 현재 인터페이스 보기 )
이더넷 0 가 up 으로 설정되어 있는지 확인한다.
[ 라우팅 프로토콜 설정하기 ]
Router> enable
Router# config terminal
Router(config)# router igrp 100
Router(conifg-router)# network 211.23.156.0
Router(conifg-router)# network 10.0.0.0
Router(conifg-router)# Ctrl+Z(exit) ( 프리빌리지모드로 나가기)
Router# show running-config ( 구성파일 보기 )
[RAM 의 구성파일을 NVRAM 에 저장하기]
Router# copy running-config startup-config
[ 플래시 메모리 내용보기 ]
Router# show flash
[IOS 이미지 파일을 TFTP 서버로 백업하기]
Router# copy flash tftp
[ TFTP 서버에서 플래시메모리 IOS 파일 복원하기 ]
Router# copy tftp flash
[ 라우터의 구성파일 백업하기 ]
Router# copy startup-config tftp
[라우터의 구성파일 복원하기]
Router# copy tftp startup-config
[ 라우팅 테이블 보기 ]
Router# show ip route
[ 스태틱 라우팅 구현하기 ]
Router# configure terminal
Router(config)# ip route 210.162.65.0 255.255.255.0 203.155.10.2 1
Router(config)# exit
Router# show ip route
[ 디폴트 라우팅 설정하기 ]
Router>enable
Router# configure terminal
Router(config)# interface ethernet 0
Router(config-if)# ip address 211.23.123.1 255.255.255.0
Router(config-if)# exit
Router(config)# interface serial 0
Router(config-if)# ip address 61.105.112.41 255.255.255.252
Router(config-if)# exit
Router(config)# ip route 0.0.0.0 0.0.0.0 61.105.112.42
Router(config)# exit
Router# write
Router#