본문 바로가기

카테고리 없음

switch 기본 구성

Switch>enable

Switch#disable

Switch>enable

Switch#configure terminal 

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#hostname SW2960 // 이름변경

SW2960(config)#enable password ccna // 패스워드 설정

SW2960(config)#exit

SW2960#exit


enable password ccna //Switch(config)#

enable secret ccnp  // Switch(config)#

User M -> Pri M // 유저모드 -> 프리빌리지 모드



비번 둘 다 입력했을 때는 enable secret이 우선이다.


MS    windows 

CISCO IOS


switch, router


console

telnet

aux - modem (최근에는 잘 안 씀)


SW2960(config)#line console 0 // 다른 사람이 못씀

SW2960(config-line)#login

% Login disabled on line 0, until 'password' is set // 로그인 할때 패스워드 입력

SW2960(config-line)#password cisco

SW2960(config-line)#


conf-if)# exit

conf)# exit

#


end, ctrl+z // 한번에 나가기


SW2960(config-line)#exit

SW2960(config)#exit

SW2960#

%SYS-5-CONFIG_I: Configured from console by console


SW2960#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

SW2960(config)#line console 0 

SW2960(config-line)#end

SW2960#

%SYS-5-CONFIG_I: Configured from console by console


SW2960#configure terminal 

SW2960(config)#line vty 0 2

SW2960(config-line)#login

% Login disabled on line 1, until 'password' is set

% Login disabled on line 2, until 'password' is set

% Login disabled on line 3, until 'password' is set

SW2960(config-line)#password cisco

SW2960(config-line)#end

SW2960#

%SYS-5-CONFIG_I: Configured from console by console


SW2960#clock

% Incomplete command.

SW2960#clock set

% Incomplete command.

SW2960#clock set ?

  hh:mm:ss  Current Time

SW2960#clock set 10:50:50

% Incomplete command.

SW2960#clock set 10:51:00 ?

  <1-31>  Day of the month

  MONTH   Month of the year

SW2960#clock set 10:51:00 10 april 

% Incomplete command.

SW2960#clock set 10:51:00 10 april ?

  <1993-2035>  Year

SW2960#clock set 10:51:00 10 april 2014 // 최종 명령어


SW2960(config)#host?

hostname  

SW2960(config)#z?

% Unrecognized command

SW2960(config)#zl

               ^

% Invalid input detected at '^' marker.


SW2960#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

SW2960(config)#no ip domain-lookup // 도메인 아이피 확인 안해주게 하는것

SW2960(config)#exit

SW2960#


SW2960#

%SYS-5-CONFIG_I: Configured from console by console


SW2960#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

SW2960(config)#line console 0

SW2960(config-line)#exec-timeout 0 0 //  로그아웃을 안시켜 주는 설정, 1 0(분/초) 은 1분뒤에 로그아웃

SW2960(config-line)#logging synchronous // 

SW2960(config-line)#

SW2960(config-line)#exit


SW2960(config)#banner motd !

Enter TEXT message.  End with the character '!'.

###########################

###########################

####### This Switch #######

##########################

##########################!


SW2960(config)#exit


SW2960#exit



User Access Verification


Password: 


SW2960>enable

Password: 

SW2960#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

SW2960(config)#interface fastethernet 0/1

SW2960(config-if)#description This port is connected SW2 Fa0/1 // 해당포트 설명

SW2960#

SW2960#exit




###########################

###########################

####### This Switch #######

##########################

##########################


User Access Verification


Password: 


SW2960>enable

Password: 

SW2960#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

SW2960(config)#service password-encryption // 패스워드 암호화

SW2960(config)#exit

SW2960#

%SYS-5-CONFIG_I: Configured from console by console


SW2960#show running-config

Building configuration...


Current configuration : 1336 bytes

!

version 12.1

no service timestamps log datetime msec

no service timestamps debug datetime msec

service password-encryption

!

hostname SW2960

!

enable secret 5 $1$mERr$V3AzF/pAhvRvjIsUimrC8.

enable password 7 08224F4008

!

no ip domain-lookup

!

spanning-tree mode pvst

!

interface FastEthernet0/1

 description This port is connected SW2 Fa0/1

!

interface FastEthernet0/2

!

interface FastEthernet0/3

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!0.

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11


SW2960#