카테고리 없음

[시스코] 라우터 설정창

장동규 2017. 9. 15. 20:26

그림 [시스코 프로그램 ]


기본적인 명령어

Router>enable                        #관리자모드


[ Router# ]     : 단순 정보를 출력하는 곳

Privilege Exec Mode -- 관리자 모드

- show         : 정적 정보 확인

- debug         : 동적 정보 확인

- copy         : 저장, 복사

- erase         : 삭제

- reload         : 재부팅

- ping,traceroute : ping 테스트

- telnet,ssh         : 원격 접속



Router#show user                #접속 정보 보여주기


Router#exit                        #나가기

Router#reload                    #재부팅


Router#copy run start          #라우터 정보 저장

Router#show start               #라우터 저장된 정보

Router#erase startup-config  #라우터 정보 초기화



Router#>conf t    (configure terminal )

[ Router(config)# ] : 설정하는곳 

Global Configration Mode -- 설정 모드



Router(config)#hostname abc            #hostname 변경

>>>명령어 앞에 no만 붙이면 설정 해제 가능

ex)  no hostname test




설정 파일

 

 Running-config File

Startup-config File 

위치

RAM 

NVRAM

특징

라우터가 동작하기 위해서 사용 

라우터가 부팅시 사용할 파일 


? : 도움말



명령어 ? : 명령어 설명


명령어의 조합 : ( 옵션으로 사용하는 것이 아니라 명렁어를 조합해서 사용한다. )


오류 메세지 

% Invalid input detected at '^' marker. : 잘못 입력

% Ambiguous command: "show i" : 너무 줄여서 사용

% Incomplete command. : 결과를 내기위한 명령어 부족


단축키

ctrl + A  : 맨앞으로 가기

ctrl + E  : 맨뒤로 가기

ctrl + X : 커서 앞에 모두 지우기

strl + Z : 관리자모드로 나가기


패스워드 설정하기

Router > enable

Router#conf t

Router(config)> line ?

Router(config)#hostname R1

Router(config)#

Router(config)#enable secret cisco   // 관리자모드 비밀번호

Router(config)#


#### console

Router(config)#line con 0

Router(config-line)#password ciscocon // 라우터 비밀번호 ( console )

Router(config-line)#login

Router(config-line)#


#### aux

Router(config)#line aux 0

Router(config-line)#password ciscoaux  // 라우터 비밀번호 ( aux )

Router(config-line)#


#### telnet

Router(config)#line vty 0 4

Router(config-line)#password ciscovty  // 라우터 비밀번호 ( telnet )

Router(config-line)#login

Router(config-line)#end


#### enable ( 관리자 패스워드 설정 )

Router(config)# enable password ciscoenb1    // 관리자 비밀번호 (1)

Router(config)# enable secret ciscoenb2        // 관리자 비밀번호 (2)

>> 보통 2번을 사용

Router#

Router#show run


오타시 DNS요청 없애기

Router#conf t

Router(config)#no ip domain-lookup   << DNS 요청 X

5분 대기시간 없애기

Router(config)#line con 0

Router(config-line)#exec-timeout 0 0  << console exit X

라인 정리

Router(config-line)#logg syn        << 라인 정리(logging synchronous )


IP셋팅

Router#conf t

Router(config)#int fa0/0

Router(config-if)#ip address <router_ip> <subnet_mask>

Router(config-if)#no shutdown

Router(config-if)#end

Router#show ip int brief

Router#ping <host_ip>             << 연결된 host들 ping 보내서 arp tables setting

Router#show arp


WAN셋팅

--DTS--

int s1/1 >> 인터페이스에서

ip 셋팅은 똑같이 하고

no shutdown 으로 인터페이스를 열고


--DES--

int s1/1 >> 인터페이스에서

ip 셋팅은 똑같이 하고

no shutdown 으로 인터페이스를 열고

clock rate [num] (200000)