> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/pdfm-ug/v27-zh-tw/parallels-desktop-for-mac-27-shi-yong-zhi-nan/zai-mac-shang-shi-yong-windows/cong-windows-lie-yin/she-ding-wang-lu-yin-biao-ji.md).

# 設定網路印表機

您可以直接安裝網路印表機到 Windows。

在 Windows 安裝網路印表機之前，需確定：

* 您的 Mac 可以連接網際網路。
* Windows 已設為在[共用網路模式](/landing/pdfm-ug/v27-zh-tw/parallels-desktop-for-mac-27-shi-yong-zhi-nan/zai-mac-shang-shi-yong-windows/lian-jie-wang-ji-wang-lu-huo-wang-lu/zai-macos-yu-windows-zhi-jian-gong-yong-wang-lu.md)或[橋接網路模式](/landing/pdfm-ug/v27-zh-tw/parallels-desktop-for-mac-27-shi-yong-zhi-nan/zai-mac-shang-shi-yong-windows/lian-jie-wang-ji-wang-lu-huo-wang-lu/jiang-ge-bie-wang-lu-she-ding-tao-yong-zhi-windows.md)運作，也可以存取網際網路。
* Windows 中的使用者帳戶有許可權連接網路印表機。
* 您知道印表機 IP 地址。

之後，您可以登入 Windows 並安裝網路印表機。

### **在 Windows 中**

在 Windows 中新增網路印表機之前，需下載並安裝合適的印表機驅動程式。欲瞭解安裝印表機驅動程式的詳情，請參閱印表機生產商文檔。

若要在 Windows 11 中新增網路印表機：

1. 確保您的網路印表機已開啟並透過乙太網路線或 Wi-Fi 連線到網路。
2. 開啟 Windows 的「**開始**」功能表並選取「**設定**」>「**藍牙與裝置**」。
3. 選取「**印表機與掃描器**」>「**新增印表機或掃描器**」，並按一下「**新增裝置**」。
4. Windows 會掃描可用網路中的印表機。在大多數情況下，Windows 會自動發現您的印表機。選取「**新增裝置**」。
5. 如果 Windows 無法自動完成流程，請執行下列動作：
   1. 選擇「**手動新增**」選項。
   2. 選取「**使用 IP 位址或主機名稱新增印表機**」選項，並按一下「**下一步**」。
   3. 在「**裝置類型**」下，選取「**IPP 裝置**」選項，其涵蓋大部份 TCP/IP 的網路印表機。在「**主機名稱或 IP 位址**」欄位輸入 IP 位址。按「**下一步**」。
   4. 準備好後，請按「**下一步**」。

您的印表機現已安裝並準備好列印。

{% hint style="info" %}
**附註**：如果您使用的是較舊版本的 Windows，請查看 Microsoft [支援中心](https://support.microsoft.com/zh-TW)以獲得與 Windows 版本相關的特定資訊。
{% endhint %}

### **在 Linux 中**

在 Linux 或 FreeBSD 虛擬機器作業系統中設定網路印表機取決於 Linux 或 FreeBSD 的版本與印表機。在該示例中我們描述如何在執行 RHEL 5.4 伺服器的虛擬機器中設定網路印表機。但是您也可以把這些說明用於在 Linux 或 FreeBSD 虛擬機器中設定網路印表機。

{% hint style="info" %}
**附註：**&#x6B32;瞭解更多詳情，請參閱 CUPS 文檔。
{% endhint %}

要設定網路印表機：

1. 啟動虛擬機器。
2. 確定在虛擬機器作業系統中已安裝以下元件：
   * 通用 UNIX 列印系統 (CUPS)。可以在 [CUPS 網站](http://cups.org/documentation.php)找到安裝指示；
   * Samba 服務。可以在 [Samba 網站](http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html)找到安裝指示；以及
   * 一個 Web 瀏覽器，因為我們考慮透過 Web 介面來控制 CUPS。\
     \
     **附註：**&#x8981;設定網路印表機，您應該有 `root` 許可權。
3. 下載並安裝合適的印表機驅動程式。欲瞭解安裝印表機驅動程式的詳情，請參閱印表機生產商文件。
4. 啟動 通用 UNIX 列印系統。在終端中，輸入以下命令：

   /etc/init.d/cups start
5. 啟動 Web 瀏覽器並輸入您虛擬機器的 IP 位址或 `http://127.0.0.1:631`。
6. 按一下「**新增印表機**」按鈕。
7. 在「**新增新的印表機**」視窗中，指定一個印表機名稱。在這個名稱下印表機將會在虛擬機器作業系統中顯示。您還可以輸入印表機描述與位址。準備好後，請按一下「**轉發**」。
8. 在「**\<Printer Name> 的裝置**」視窗選取「**AppSocket/HP JetDirect**」並按一下「**繼續**」。
9. 在「**\<Printer Name> 的裝置 URI**」視窗中用以下格式指定印表機 IP 位址：

   `socket://<printer IP address>`

   準備好後，按一下「**繼續**」。
10. 在「**\<Printer Name> 的生產商**」視窗選取您印表機的生產商並按一下「**繼續**」。
11. 在「**\<Printer Name> 的型號/驅動程式**」視窗選取您印表機的型號並按一下「**新增印表機**」。
12. 收到提示時輸入 `root` 密碼。

CUPS 執行安裝。如果安裝成功會顯示「`印表機 <name> 已經成功設定`」。現在您可以使用印表機從虛擬機器列印文檔。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/pdfm-ug/v27-zh-tw/parallels-desktop-for-mac-27-shi-yong-zhi-nan/zai-mac-shang-shi-yong-windows/cong-windows-lie-yin/she-ding-wang-lu-yin-biao-ji.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
