Skip to content

Disabling NetBIOS over TCP/IP using DHCP

May 30, 2015

You may already know it, but I introduce in this post the way to disable NetBIOS over TCP/IP (NetBT) on Windows hosts whose IP addresses are dynamically allocated using the ISC DHCP server.

First, the following settings must be added to dhcpd.conf. You can omit the ‘MSFT.release-lease-on-shutdown’ line just for disabling NetBIOS over TCP/IP, but I write it here as it may be useful as described later.

option space MSFT;
option MSFT.disable-netbios code 1 = unsigned integer 32;
option MSFT.release-lease-on-shutdown code 2 = unsigned integer 32;

Next, the following settings must be added to the DHCP scope where you want to disable NetBIOS over TCP/IP.

class "MSFT" {
    match if option vendor-class-identifier ~= "^MSFT";
    vendor-option-space MSFT;
    option MSFT.disable-netbios 2;
}

The settings above will automatically disable NetBIOS over TCP/IP on Windows hosts whose IP addresses are assigned by DHCP.

In addition, if the following option is also included in the class setting, each Windows host will release its DHCP lease on its shutdown, and it may be useful to keep your IP address pool reasonably small on a network where many temporary Windows hosts can be connected.

    option MSFT.release-lease-on-shutdown 1;

Reference: https://msdn.microsoft.com/en-us/library/cc227275.aspx

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: