◽ L2 Switch(Cisco, …)

[Dasan] 패스워드 변경, 유저 생성, 인터페이스 설정


Dasan Network

  이 글은 단순히 시스템에 접속하여 간단한 명령어의 결과값을 좀 기록할 필요가 있어 기록하는 글이라. 개인적으로 보는 글이기 때문에 참조하는 글로는 적절하지 않을 수 있음.

 

환경 :

- Dasan

- SSH Connection

- L2 Switch


 

1. Command - ?

  command "?"을 입력했을 때 나타나는 화면이다. 대략 지원되는 명령어가 display된다. linux os에서 man이나 help정도로 생각하면 되겠다. 물음표로 거의 다 지원할 수 있는 명령어를 알 수 있다. "Tab"으로 자동완성도 지원한다. 추가적으로 "Space bar"로 "Page Down" 수행 가능하다.

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
SWITCH> ?
Exec commands:
  clear         Clear DHCP Relay status
  debug         Debugging functions
  enable        Turn on privileged mode command
  exit          End current mode and down to previous mode
  help          Description of the interactive help system
  no            Negate a command or set its defaults
  release       Release the acquired address of the interface
  renew         Re-acquire an address for the interface
  show          Show running system information
  tech-support  Technical Supporting Function for Diagnosis System
  terminal      Set terminal line parameters
 
SWITCH>
 
cs

 

 

 

 

 

 

 

 

 

 

2. Enable Mode - ?

  Enable Mode에서 지원하는 명령어

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SWITCH> enable
SWITCH# ?
Exec commands:
  clear         Clear DHCP Relay status
  clock         Manually set the system clock
  configure     Enter configuration mode
  copy          Copy from one file to another
  debug         Debugging functions
  default-os    Select default OS
  disconnect    Disconnect user connection
  enable        Turn on privileged mode command
  erase         Erase saved configuration
  exit          End current mode and down to previous mode
  halt          Halt process
  help          Description of the interactive help system
  no            Negate a command or set its defaults
  ping          Send echo messages
  quote         Execute external command
  rcommand      Management stacking node
  release       Release the acquired address of the interface
  reload        Reload the system
  renew         Re-acquire an address for the interface
  restore       Restore configurations
  show          Show running system information
  ssh           Configure secure shell
  tech-support  Technical Supporting Function for Diagnosis System
  telnet        Open a telnet connection
  terminal      Set terminal line parameters
  traceroute    Trace route to destination
  where         List active user connections
  write         Write running configuration to memory, network, or terminal
 
SWITCH#
 
cs

 

 

 

 

 

 

 

3. Configure Terminal Mode - ?

  configure terminal mode에서 지원하는 명령어들이다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
SWITCH# configure terminal
SWITCH(config)# ?
Configure commands:
  access-list    Add an access list entry
  arp            Address Resolution Protocol (ARP)
  auto-reset     Auto reset system
  banner         Set login banner
  bridge         Enable a switching process
  class          Class
  clear          Clear
  cpu            CPU process
  ddos-filter    DDOS Prevention Control
  debug          Debugging functions
  dns            Domain Name Server
  do             To run exec commands in config mode
  dos-control    DOS attack control
  dos-control-2  DOS attack control
  dot1x          IEEE 802.1X subsystem
  end            End current mode and change to EXEC mode
  erase          Erase saved configuration
  exec-timeout   Set timeout value
  exit           End current mode and down to previous mode
  fan            Fan control
  fib            FIB information
  flow           Flow profile list
  help           Description of the interactive help system
  hostname       Set system's network name
  interface      Select an interface to configure
  ip             Internet Protocol (IP)
  ipv6           Internet Protocol version 6 (IPv6)
  log            Logging control
  login          Configure login Authentication & Authorization
  module         Module
  mvr            Multicast VLAN Registration
  no             Negate a command or set its defaults
  ntp            Configure Network Time Protocols
  oam            OAM protocol
  passwd         Password change
  policer        Policer profile list
  policy         Policy map list
  pps-control    PPS Control
  privilege      Privilege Level Configuration
  protocol       Protocol configuration
  qos            QoS
  rmon-alarm     Configure rmon alarm
  rmon-event     Configure rmon event
  rmon-history   Configure rmon history
  service        Set up miscellaneous service
  show           Show running system information
  snmp           SNMP configuration
  sntp           Configure Simple Network Time Protocols
  ssh            Configure secure shell
  stack          Stacking configuration
  sw-watchdog    Software watchdog
  syslog         System logger
  threshold      Set fan threshold
  time-zone      Set time zone
  user           User management
  web-gui        Web-GUI
  write          Write running configuration to memory or terminal
 
SWITCH(config)#
 
cs

 

 

 

 

 

 

 

 

 

 

 

 

4. 사용자 생성

  configure terminal에서 사용자를 생성할 수 있는데, 다른 장비와 다르게 level을 함께 설정해야 한다. 1부터 15까지가 있으며 15가 가장 높은 권한이다.  
"The account of level 0 to level 14 without any configuring authority only can use exit andhelp in Privileged EXEC View mode and cannot access to Privileged EXEC Enable mode.The account with the highest level 15 has a read-write authority."

하지만, 15 권한을 주더라도 슈퍼 관리자 권한은 없다. 쉽게 말하면 장비 설정에 접근 할 수가 없다.

1
2
3
4
5
6
7
8
9
10
11
12
13
SWITCH(config)# user add white 15
 
Changing password for white
Enter the new password (maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.
 
Enter new password:
 
Re-enter new password:
 
Password changed.
 
SWITCH(config)#
cs

 

 

 

 

 

 

 

 

 

 

 

5. 패스워드 변경

아래에는 정리 안했지만, 타 계정은 passwd {id}로 변경 할 수 있다.

1

2
3
4

5

6

7

8
 
SWITCH(config)# passwd

Changing password for admin
Enter the new password (maximum of 8 characters)
Please use a combination of upper and lower case letters and numbers.

Enter new password:

Re-enter new password:

Password changed.

SWITCH(config)#
 
cs

 

 

 

 

 

 

 

 

 

 

 

 

6. Interface 설정

IP를 할당하기 위해서는 동일하게 Configure Mode에서 진행한다.

1
2
3
4
SWITCH(config)# interface mgmt
SWITCH(config-if)# no shutdown
SWITCH(config-if)# ip address 192.168.3.111/22
 
cs

 

 

 


 

푸터바