Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
ARM network protocols command-line interface reference guide.Ver 1.6.pdf
Скачиваний:
29
Добавлен:
23.08.2013
Размер:
1.61 Mб
Скачать

Protocol-specific Commands

4.1DHCP server commands

The commands in this section are:

help dhcpsrv on page 4-2

dhsrv on page 4-3

dhlist on page 4-4

dhentry on page 4-5

dhdelete on page 4-6

dhpools on page 4-7.

4.1.1help dhcpsrv

The help dhcpsrv command displays a list of DHCP server commands.

Syntax dhcpsrv

Example

INET> help dhcpsrv dhcpsrv commands:

dhsrv

- DHCP server statistics

dhlist

- DHCP server assigned addresses

dhentry

- list specific entry details

dhdelete

- delete a DHCP entry

dhpools

- list free address pools

INET>

 

4-2

Copyright © 2000-2001 ARM Limited. All rights reserved.

ARM DUI 0145B

Protocol-specific Commands

4.1.2dhsrv

The dhserv command displays the DHCP server statistics.

Syntax dhsrv

Example

INET> dhsrv

plain bootp requests received: 0 plain bootp replys sent: 0 discover packets received: 1 offer packets sent: 1

dhcp request packets received: 5 declines received: 0

releases received: 0 acks sent: 5

naks sent: 0

requests for other servers: 0 protocol errors; all types: 0 INET>

Usage

All of the packet types in the example are described in RFC2131. BOOTP packets are kept in separate categories.

ARM DUI 0145B

Copyright © 2000-2001 ARM Limited. All rights reserved.

4-3

Protocol-specific Commands

4.1.3dhlist

The dhlist command displays the list of IP addresses assigned by the DHCP Server.

Syntax dhlist

Example

INET> dhlist

 

 

 

 

no DHCP/BOOTP entrys in database

 

 

INET> dhlist

 

 

 

 

 

IP addr

client ID

type

status

lease

1

10.0.1.95 00:20:AF:CA:0A:AE

dbase

Unassigned N/A

2

10.0.1.98 00:60:08:4D:C3:AA dbase

Assigned via DHCP 60

2

Entries

 

 

 

 

INET>

Usage

The sample list may include clients that are defined in the database files, but that have not yet been assigned using DHCP.

The Unassigned status may indicate that:

a client MAC address has been mistyped in the database file

a client lease has expired

a client machine has been switched off.

4-4

Copyright © 2000-2001 ARM Limited. All rights reserved.

ARM DUI 0145B

Protocol-specific Commands

4.1.4dhentry

The dhentry command shows the details about a particular entry in the DHCP database. For each IP address assigned by the DHCP Server, an entry is made in the database.

Syntax

dhentry index_number

where:

 

 

 

 

index_number

Is the number that identifies the IP address in the database.

Example

 

 

 

 

INET> dhlist

 

 

 

 

 

IP addr

client ID

type

status

lease

1

10.0.1.95 00:20:AF:CA:0A:AE

dbase

Unassigned N/A

2

10.0.1.98 00:60:08:4D:C3:AA

dbase

Assigned via DHCP 60

2

Entries

 

 

 

 

INET> dhentry 1

IP:10.0.1.95 - client ID:00:20:AF:CA:0A:AE - status:Unassigned subnet:255.0.0.0 gateway:10.0.0.1 DNS:10.0.0.1

lease 367, type: dbase , name: bpc18 INET>

ARM DUI 0145B

Copyright © 2000-2001 ARM Limited. All rights reserved.

4-5