Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problems load balancing printing

Ryan_110872
Nimbostratus
Nimbostratus

Followed this guide to configure load balancing MS printing with npath routing:

 

http://blog.loadbalancer.org/load-balancing-microsoft-print-server/

 

The problem is when I try to connect to the printer with the FQDN of virtual server (eg. \\virtualserver.mydomain.com) I get the error "Operation could not be completed (error 0x00000709). Double check the printer name and make sure that the printer is connected to the network.".

 

If I connect to the VIP (eg. \\192.168.0.10) it works fine.

 

If I connect to the host directly (by hostname or IP) it works fine.

 

Any ideas?

 

3 REPLIES 3

Anthony_Graber
F5 Employee
F5 Employee

Here is the configuration I used for a customer to load balance windows print servers. There are additional steps to configure on the windows server, included below. The customers servers default gateway was the F5 in this example.

Let me know if you have additional questions.

profile persist printserver_wpt_wildcard_srcaddr {
defaults from source_addr
mode source addr
mask 255.255.255.255
across services enable
}
profile fastL4 printserver_wpt_wildcard_fastl4 {
defaults from fastL4
tcp close timeout 51
loose close enable
}
monitor printserver_wpt_wildcard_tcp_monitor {
defaults from tcp
interval 10
timeout 31
dest *:printer
}
pool es_printserver_wpt_wildcard_pool {
action on svcdown reselect
monitor all printserver_wpt_wildcard_tcp_monitor
members {
x.x.217.33:any {}
x.x.217.34:any {}
}
}
virtual es_printserver_wpt_wildcard_vs {
translate address disable
translate service disable
pool es_printserver_wpt_wildcard_pool
destination x.x.216.53:any
ip protocol tcp
persist printserver_wpt_wildcard_srcaddr
profiles printserver_wpt_wildcard_fastl4 {}
}

Create loopback interface with IP address of the load balanced virtual server.

Installing the Microsoft Loopback Adapter 1.Click Start, select Run and enter hdwwiz to start the Hardware Installation Wizard 2.When the Wizard has started, click Next 3.Select 'Install the hardware that I manually select from a list (Advanced)', click Next 4.Select 'Network adapters', click Next 5.Select 'Microsoft' & 'Microsoft Loopback Adapter', click Next 6.Click Next to start the installation, when complete click Finish

Configuring the Loopback Adapter 1.Click Start, select Run and enter ncpa.cpl to open the Network Control Panel 2.Right-click the new loopback adapter and select Properties 3.Select Internet Protocol Version (TCP/IPv4), click Properties and configure the IP address to be the same as the Virtual Server (VIP) 4.Go into the advanced menu and uncheck Register name in DNS 5.Click OK on the TCP/IP popup window, then click Close on the Local Area Connection window to 6.Now repeat the above process for all other Windows 2008 real servers

Run the following commands from an administrator command prompt

netsh interface ipv4 set interface "Local Area Connection" weakhostreceive=enabled

•This is your normal interface

netsh interface ipv4 set interface "loopback" weakhostreceive=enabled

netsh interface ipv4 set interface "loopback" weakhostsend=enabled

•This is your loopback interface

Create the following registry keys and values:

Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa Value: DisableLoopbackCheck Type: REG_DWORD Data: 1

Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters Value: DisableStrictNameChecking Type: REG_DWORD Data: 1

Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters Value: OptionalNames Type: REG_MULTI_SZ Data: servername.domain

Hi  

I have 2 Server on Azure and ine load balancer in same VNet.

Users are unable to add printers through load balancer , getting error 

"Operation could not be completed (error 0x00000709). Double check the printer name and make sure that the printer is connected to the network.".

While if we are accessing real servers , working fine and users able to add printer on server..

Windows print management servies are working on it .

Set up : 2 print Servers  Azure ( Server OS 2019)

Load balancer : Azure ( betwwen these 2 Print Servers)

Can you suggest on it what settng need to apply on Real server and Load balancer and which ports need to open on load balancer to communicate with Servers?

It will a great help if you can suggest or share some documents for Print Server load balancer setup in Azure.

Sunilkumar678
Nimbostratus
Nimbostratus

I am waiting for your response