명령어 정리
서버 관련 7차시 명령어 ( Server Services )
DHCP-Router
DHCP 아이피 제외 - ip dhcp excluded-address
Router(config)# ip dhcp excluded-address [DHCP에서 제외할 IP] // 여기에 적은 아이피는
DHCP에서 아이피를 할당할 때 사용되지 않는다. ex) 기본 게이트웨이, 서버 아이피
DHCP 생성 및 설정 - ip dhcp pool
Router(config)# ip dhcp pool [WORD] // DHCP 이름
Router(dhcp-config)# default-router [default gateway IP] // 호스트에 주어질 기본 게이트웨이
Router(dhcp-config)# dns-server [DNS Server IP] // 호스트에 주어질 dns 서버 아이피
Router(dhcp-config)# network [DHCP로 뿌려줄 network id] [subnet mask] // 호스트에
뿌려줄 아이피 범위 (서브네팅 가능)
NTP
ntp 상태를 보여줌 - show ntp status
기기(라우터)에 설정된 시간을 보여줌 - show clock detail
서버에서 설정한 NTP 적용하기 - ntp server
Router(config)# ntp server [Server-IP] // 서버에서 설정한 NTP를 불러와 시간 설정이 가능함
Router(config)# ntp authenticate
Router(config)# ntp trusted-key 1
Router(config)#ntp authentication-key 1 md5 [보안 키]
Syslog - logging
로그 켜주기 - logging on
로그 서버 설정 - logging host
Router(config)# logging host [Server-IP]
AAA (RADIUS)
Radius 인증 모드 - aaa new-model
Router(config)# aaa new-model
Router(config)#aaa authentication enable default group radius local
Radius 서버에서 만든 계정을 사용 - aaa authentication login
Router(config)# aaa authentication login default group radius [local]
Radius 서버 등록 - radius-server host
Router(config)# radius-server host [Radius Server-IP]