< Home

display dhcp option template

Function

The display dhcp option template command displays the configuration of a DHCP Option template.

Format

display dhcp option template [ name template-name ]

Parameters

Parameter

Description

Value

name template-name

Displays the configuration of a specified DHCP Option template.

The template must be an existing DHCP Option template.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After configuring a DHCP Option template, you can run the display dhcp option template command to view the configuration of the DHCP Option template, including the template name, number, IP address of a server configured for the client after the client automatically obtains the IP address, domain name, and values of customized options.

Example

# Display the configuration of the DHCP Option template named test.

<HUAWEI> display dhcp option template name test
 -----------------------------------------------------------------------------  
  Template-Name  : test                                                    
  Template-No    : 1                                                            
  Next-server    : 192.168.1.5                                                     
  Domain-name    : huawei.com                                                   
  DNS-server0    : 192.168.2.7                                                     
  DNS-server1    : 192.168.2.8                                                     
  NBNS-server0   : 192.168.1.7                                                     
  NBNS-server1   : 192.168.1.8                                                     
  Netbios-type   : b-node                                                       
  Gateway-0      : 192.168.1.10                                                    
                                                                                

# Display the configurations of all DHCP Option templates.

<HUAWEI> display dhcp option template
 -----------------------------------------------------------------------------  
  Template-Name  : template1                                                    
  Template-No    : 0                                                            
  Next-server    : 10.1.1.4                                                     
  Domain-name    : -                                                            
  DNS-server0    : -                                                            
  NBNS-server0   : -                                                            
  Netbios-type   : -                                                            
  Gateway-0      : -                                                            
                                                                                
 -----------------------------------------------------------------------------  
  Template-Name  : template2                                                    
  Template-No    : 1                                                            
  Next-server    : 192.168.1.5                                                     
  Domain-name    : huawei.com                                                   
  Option-code      : 64                                                         
    Option-subcode : 3                                                          
      Option-type  : hex                                                        
      Option-value : 11                                                         
  DNS-server0    : 192.168.2.7         
  DNS-server1    : 192.168.2.8                                                     
  NBNS-server0   : 192.168.2.7                                                     
  NBNS-server1   : 192.168.2.8                                                     
  Netbios-type   : b-node                                                       
  Gateway-0      : 192.168.1.10                                                    
                                                                                
Table 1 Description of the display dhcp option template command output

Item

Description

Template-Name

Name of the DHCP Option template.

To specify the parameter, run the dhcp option template command.

Template-No

Index value of the DHCP Option template.

Next-server

IP address of a server configured for the client after the client automatically obtains the IP address.

To specify the parameter, run the next-server command in the DHCP Option template view.

Domain-name

Name of a domain.

To specify the parameter, run the domain-name command in the DHCP Option template view.

Option-code Code for a customized option.

To specify the parameter, run the option command in the DHCP Option template view.

Option-subcode Code for a customized sub-option.

To specify the parameter, run the option command in the DHCP Option template view.

Option-type Character string type for a customized option.

To specify the parameter, run the option command in the DHCP Option template view.

Option-value Character string value for a customized option.

To specify the parameter, run the option command in the DHCP Option template view.

DNS-server0

Address of the DNS server. Currently, a maximum of eight DNS server addresses can be configured. Values 0 and 1 indicate the first and second DNS server addresses respectively.

To specify the parameter, run the dns-list command in the DHCP Option template view.

NBNS-server0

Address of the NetBIOS server. Currently, a maximum of eight NetBIOS server addresses can be configured in a DHCP Option template. Values 0 and 1 indicate the first and second NetBIOS server addresses respectively.

To specify the parameter, run the nbns-list command in the DHCP Option template view.

Netbios-type

NetBIOS node type.

To specify the parameter, run the netbios-type command in the DHCP Option template view.

Gateway-0

Gateway address. Currently, a maximum of eight gateway addresses can be configured. The value 0 indicates the first gateway address.

To specify the parameter, run the gateway-list command in the DHCP Option template view.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >