본문 바로가기

Network

[네트워크관리사]Router Quiz 19

반응형

Q>

Router의 DHCP를 설정하시오.

- DHCP Pool : cisco

- IP 주소 : 192.168.0.0/24

- GW 192.168.0.0과 브로드캐스트 192.168.255.255는 할당할 주소에서 제외

 

A>

Router>enable 
Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ip dhcp pool cisco
Router(dhcp-config)#network 192.168.0.0 255.255.255.0
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address 192.168.0.0
Router(config)#ip dhcp excluded-address 192.168.255.255
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#sh ip dhcp binding 
IP address       Client-ID/              Lease expiration        Type
                 Hardware address
Router#sh ip dhcp pool 

Pool cisco :
 Utilization mark (high/low)    : 100 / 0
 Subnet size (first/next)       : 0 / 0 
 Total addresses                : 254
 Leased addresses               : 0
 Excluded addresses             : 2
 Pending event                  : none

 1 subnet is currently in the pool
 Current index        IP address range                    Leased/Excluded/Total
 192.168.0.1          192.168.0.1      - 192.168.0.254     0    / 2     / 254
Router#copy running-config startup-config 
Destination filename [startup-config]? 
Building configuration...
[OK]
Router#
반응형