Hardware - Install a Printer as a Local Port Device
Applies to: Windows 10, 8.1, 8, 7, Vista and XP

How do I install a printer as a Local Port device?

On switchdev driver initialization, the driver will allocate and register a struct netdevice (using registernetdev) for each enumerated physical switch port, called the port netdev. A port netdev is the software representation of the physical port and provides a conduit for control traffic to/from the controller (the kernel) and the network. On Windows 10, a device driver is an essential piece of code, which allows the system to interact with a specific hardware (such as graphics card, storage driver, network adapter, Bluetooth, etc.


Solution:
Use the instructions below to install the printer using a Local Port on the given operating system.
NOTE: These instructions assume the following:
  • The printer is already shared from the computer that is hosting it. See How to Share a Printer- FAQ 38545 for more information.
  • That you have downloaded the proper drivers for the printer model you are installing.
  • That you are able to access the shared resources on that computer without being prompted for login credentials. If you cannot access the hosting PC without providing credentials, correct that issue before proceeding.
  • You have ensured the printer is shared and security is set to Everyone with Full Control.
Drivers Sharp Port DevicesIf these steps have not been performed, please do so before attempting installation of a Local Port device. Failure to do so will result in failure errors when trying to create the port.
Click the + or the header to expand the section.

To install a printer locally on Windows 10, follow these steps:

  1. Right-click on the Windows logo in the bottom left of the screen. Select Search.
  2. Search for Control Panel. Select it from the search results.
  3. Find Devices and Printers in the Control Panel and open it.
  4. Click Add a Printer (on the top).
  5. A window will come up that is searching for printers on the network. Click Stop, then click The printer I want isn't listed.

  6. Click Add a local printer or network printer with manual settings. Click Next.

  7. Click Create a new port. Select Local Port for Type of port.
  8. In the Port Name box, type the path to the printer in the following format, where server is the name of the print server and printer is the share name of the printer (e.g. serverprinter). Click OK.
  9. Select the printer model and driver. Click Next. If the exact model isn't listed, click Have Disk and browse to the location where you earlier extracted the drivers.
  10. Follow the rest of the wizard. When prompted to share the printer, select Do not share this printer.
    NOTE: Printers should only be shared from ONE computer, preferably the computer it is connected to via USB.

To install a printer locally on Windows 8.1, follow these steps:

  1. Right-click on the Windows logo in the bottom left of the screen. Select Control Panel.
  2. Find Devices and Printers in the Control Panel and open it.
  3. Click Add a Printer (on the top).
  4. A window will come up that is searching for printers on the network. Click Stop, then click The printer I want isn't listed.
  5. Click Add a local printer or network printer with manual settings. Click Next.
  6. Click Create a new port. Select Local Port for Type of port.
  7. In the Port Name box, type the path to the printer in the following format, where server is the name of the print server and printer is the share name of the printer (e.g. serverprinter). Click OK.
  8. Select the printer model and driver. Click Next. If the exact model isn't listed, click Have Disk and browse to the location where you earlier extracted the drivers.
  9. Follow the rest of the wizard. When prompted to share the printer, select Do not share this printer.
    NOTE: Printers should only be shared from ONE computer, preferably the computer it is connected to via USB.

To install a printer locally on Windows 8, follow these steps:

  1. Move your mouse to the lower-right to bring up the Charms bar, or press Windows key + C.
  2. Click on the Settings gear, then click Control Panel.
  3. In Control Panel, open Devices and Printers.
  4. Click Add a Printer (on the top).
  5. A window will come up that is searching for printers on the network. Click Stop, then click The printer I want isn't listed.
  6. Click Add a local printer or network printer with manual settings. Click Next.
  7. Click Create a new port. Select Local Port for Type of port.
  8. In the Port Name box, type the path to the printer in the following format, where server is the name of the print server and printer is the share name of the printer (e.g. serverprinter). Click OK.
  9. Select the printer model and driver. Click Next. If the exact model isn't listed, click Have Disk and browse to the location where you earlier extracted the drivers.
  10. Follow the rest of the wizard. When prompted to share the printer, select Do not share this printer.
    NOTE: Printers should only be shared from ONE computer, preferably the computer it is connected to via USB.

To install a printer locally on Windows Vista and 7, follow these steps:

  1. Click Start Devices and Printers.
  2. Click Add a Printer (on the top).
  3. Select Add a local printer.
  4. Select Create a new port. Select Local Port for the Port Type. Click Next.
  5. In the Port Name box, type the path to the printer in the following format, where server is the name of the print server and printer is the share name of the printer (e.g. serverprinter). Click OK
  6. Select the printer model and driver. Click Next. If the exact model isn't listed, click Have Disk and browse to the location where you earlier extracted the drivers.
  7. Follow the rest of the wizard. When prompted to share the printer, select Do not share this printer.
    NOTE: Printers should only be shared from ONE computer, preferably the computer it is connected to via USB.

To install a printer locally on a Windows XP-based computer, follow these steps:

  1. Go to Start Control Panel Printers and Other Hardware Printers and Faxes.
  2. Double-click Add Printer to start the Add Printer Wizard. Click Next.
  3. Click Local printer. Clear the Automatically detect and install check box. Click Next.
  4. Click Create a new port. Click Local Port in the Port type section.
  5. In the Port Name box, type the path to the printer in the following format, where server is the name of the print server and printer is the share name of the printer: serverprinter.
  6. Click Next. Select the driver for your printer. If the driver is not listed, click Have Disk and browse to the location where you earlier extracted the drivers.
  7. Click Next, and then follow the instructions to finish the wizard. When prompted to share the printer, select Do not share this printer.
    NOTE: Printers should only be shared from ONE computer, preferably the computer it is connected to via USB.

Printed copies of this document are considered uncontrolled.
21672.Rev006 01.06.2021

Copyright © 2014 Jiri Pirko <jiri@resnulli.us>

Copyright © 2014-2015 Scott Feldman <sfeldma@gmail.com>

The Ethernet switch device driver model (switchdev) is an in-kernel drivermodel for switch devices which offload the forwarding (data) plane from thekernel.

Figure 1 is a block diagram showing the components of the switchdev model foran example setup using a>FIB_EVENT_ENTRY_ADDused for both adding a new FIB entry to the device,or modifying an existing entry on the device.FIB_EVENT_ENTRY_DELused for removing a FIB entryFIB_EVENT_RULE_ADD,FIB_EVENT_RULE_DELused to propagate FIB rule changes

FIB_EVENT_ENTRY_ADD and FIB_EVENT_ENTRY_DEL events pass:

Drivers Sharp Port Devices Replacement

to add/modify/delete IPv4 dst/dest_len prefix on table tb_id. The *fistructure holds details on the route and route’s nexthops. *dev is oneof the port netdevs mentioned in the route’s next hop list.

Routes offloaded to the device are labeled with “offload” in the ip routelisting:

The “offload” flag is set in case at least one device offloads the FIB entry.

Drivers Sharp Port Devices Download

XXX: add/mod/del IPv6 FIB API

Nexthop Resolution¶

Drivers Sharp Port Devices Replacement

The FIB entry’s nexthop list contains the nexthop tuple (gateway, dev), but forthe switch device to forward the packet with the correct dst mac address, thenexthop gateways must be resolved to the neighbor’s mac address. Neighbor macaddress discovery comes via the ARP (or ND) process and is available via thearp_tbl neighbor table. To resolve the routes nexthop gateways, the drivershould trigger the kernel’s neighbor resolution process. See the rockerdriver’s rocker_port_ipv4_resolve() for an example.

Drivers Sharp Port Devices Gigabit

The driver can monitor for updates to arp_tbl using the netevent notifierNETEVENT_NEIGH_UPDATE. The device can be programmed with resolved nexthopsfor the routes as arp_tbl updates. The driver implements ndo_neigh_destroyto know when arp_tbl neighbor entries are purged from the port.