2009년 02월 26일
제 정보가 유용하지 않은가요?
제가 관심잇는 분야에 대해서 이렇게 올리고 잇는데
아무도 댓글을 안달아주시네여 ^^*
힘내게 오신분들 덧글 달아주세요 ^^*
# by | 2009/02/26 19:24 | 알림사항 | 트랙백 | 덧글(6)
# by | 2009/02/26 19:24 | 알림사항 | 트랙백 | 덧글(6)
[ 스위치 모드 변경하기 ]
① 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#
# by | 2009/02/17 11:33 | 네 트 워 크 | 트랙백 | 덧글(0)
스위치명령어 한글보기 -> swichcommand.hwp
[ 스위치 관련 명령어 ]
1) Flash에는 IOS와, Config 파일, 스위치 환경파일이 저장되어 있습니다.
2) Flash:/config.text -> NVRAM을 Emulation하는 파일.
config.text 파일은 결국 startup-config 파일로 보면 된다.
[명령 1: 스위치에서 Config 저장하기]
Switch#copy running-config startup-config // Flash:/config.text 가 생성됩니다.
[명령 2: Config를 삭제할 경우]
Switch# erase startup-config 또는
Switch# delete config.text //명령을 이용하여 스위치에 Config 정보를 삭제할 수 있습니다.
[명령 3: hostname 설정]
Switch#conf t 또는 config terminal
Switch(config)# hostname atom //atom은 이름이므로 다른 이름을 마음대로 사용할수 있다.
[명령 4: secret 암호설정하기]
Switch(config)# enable secret atom123 //암호는 자유롭게 지정할 수 있다.
[실습지식] : 스위치는 기본적으로 L2 (L3,L4~의 장비도 있음) 장치이기 때문에 관리를 위해 IP주소를 할당할 필요가 있다.
[명령 5: 외부와의 원격접속을 위한 Default-gateway를 설정]
Switch(config)# ip default-gateway 192.168.1.1 // 외부와 통신을 위한 Default-gateway
*IP주소는 네트워크 관리자 자신이 임의로 할당 (할당범위내에서 지정한다.)
[명령 6: 스위치에 관리용 IP 설정하기]
Switch(config)# interface vlan 1
Switch(config-if)# ip address 192.168.1.100 255.255.255.0
Switch(config-if)# no shutdown
[명령 7: 스위치 초기화 하기]
Switch# erase startup-config
Switch# reload
[명령 8: 스위치 포트 설정하기]
기본적으로 자동으로 구성되기 때문에 특별히 설정을 하지 않아도 되지만 인접장비가 서버이고, 수동으로 포트 설정이 되어 있다면, 연결된 스위치도 동일하게 수동 설정 되어야 합니다.
Switch(config)# interface fastethernet 0/5 // 0/5포트로 예를 들음
Switch(config-if)# description "Web Server" // 웹서버에 연결된 포트라는 설명입니다.
Switch(config-if)# speed 100
Switch(config-if)# duplex full
[ 여러 포트에 동일한 설정을 하기]
Switch(config)# int range fa0/1 - 10 % 한칸씩 띄어야 됩니다.
Switch(config-if-range)# speed 100
Switch(config-if-range)# duplex full
[ Catalyst 스위치 명령어 요약 switch ]
1. interface vlan {number} : 관리 목적으로 사용하는 vlan 인터페이스를 선택한다.
2. ip address {address} {mask} : 관리 인터페이스에 ip address 할당.
3. ip default-gateway {address}
: 관리 인터페이스가 원격 네트우크로부터 도달할 수 있도록 기본게이트 웨이를 설정.
4. show interface vlan {number} : ip address 설정 표시.
5. show ip default : switch의 기본 게이트 웨이를 표시
6. speed {auto | 100 | 10 }
7. duplex {auto | half | full}
8. spanning-tree portfast : 전달모드로 바로 진행시키기 위하여 설정
(일반적으로, dhcp 주소 할당에 문제 발생 시 설정)
9. show interfaces
10. show interfaces status
11. mac-address-table static {mac-address} vlan {number} interface {type}{slot/port}
: mac table에 정적 주소를 설정.
12. show mac-address-table
13. switchport port-security
: 포트에 대한 포트 보안을 활성화한다. 이를 위해 스위치가 switchport mode access 명령어로 설정되어야 한다. 특정포트에 특정 사용자만 사용할 수 있게 지정.
14. switchport port-security maximum 4 : 포트에서 보호될 수 있는 mac 어드레스의 최대 개수를 설정한다.
15. switchport port-security mac-address {mac-address} : 포트에 대해 지정된 주소를 보호.
16. switchport port-security violation {protect | restrict | shutdown}
: 보안 침해 발생시 포트가 다시 작동할 방법을 지정
17. show port-security [addresses]
[ 스위치 모드 변경하기 ]
① 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 지정한 암호
# by | 2009/02/16 12:13 | 네 트 워 크 | 트랙백 | 덧글(0)
# by | 2009/02/11 09:31 | 유 틸 리 티 | 트랙백 | 덧글(0)
# by | 2009/02/09 14:59 | PC 부 품 | 트랙백 | 덧글(2)
◀ 이전 페이지 다음 페이지 ▶