The dhcp server nbns-list command configures Network Basic Input Output System (NetBIOS) server addresses for an interface address pool.
The undo dhcp server nbns-list command deletes the NetBIOS server address from an interface address pool.
By default, no NetBIOS server address is configured for an interface address pool.
Parameter |
Description |
Value |
---|---|---|
ip-address |
Specifies the NetBIOS server address. |
The value is in dotted decimal notation. |
all |
Deletes all NetBIOS server addresses. |
- |
Usage Scenario
This command applies to DHCP servers. Before hosts communicate with each other, a NetBIOS server needs to resolve the accessed NetBIOS hostname to an IP address. To enable hosts to communicate with each other, run the dhcp server nbns-list command to configure NetBIOS server addresses for an interface address pool. When assigning IP addresses to clients, a DHCP server also assigns the configured NetBIOS server addresses to clients. To configure NetBIOS server addresses for a global address pool, run the nbns-list command.
Prerequisites
IP addresses in the interface address pool have been configured using the ip address command.
The DHCP server function has been enabled on the interface using the dhcp select interface command.
Precautions
Each interface can be configured with a maximum of eight NetBIOS server addresses. The first assigned address functions as the primary address, and other addresses function as secondary addresses.
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address 10.10.10.10 24 [HUAWEI-Vlanif100] dhcp select interface [HUAWEI-Vlanif100] dhcp server nbns-list 192.168.1.99
<HUAWEI> system-view [HUAWEI] dhcp enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ip address 10.10.10.10 24 [HUAWEI-GigabitEthernet0/0/1] dhcp select interface [HUAWEI-GigabitEthernet0/0/1] dhcp server nbns-list 192.168.1.99