> 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/jin-jie-zhu-ti/gong-yong-wang-lu-she-ding.md).

# 共用網路設定

{% hint style="info" %}
**附註：**&#x5171;用網路設定僅可用於 Parallels Desktop for Mac Pro/Business/Enterprise 版。
{% endhint %}

若要變更共用網路設定，請選取 Parallels Desktop 偏好設定的「**網路**」索引標籤，並且按一下「**共用**」。您可看到以下視窗：

<figure><img src="https://content.gitbook.com/content/Pp2agomXHj0RwnM8quEs/blobs/yIJWpweGNMVKfIVXHJ35/Screenshot%202024-02-01%20at%2023.54.44.png" alt="" width="528"><figcaption></figcaption></figure>

在此視窗中，您可以對 Parallels 的 IPv4 和 IPv6 DHCP 伺服器設定進行必要的變更。這些伺服器是預設開啟的，他們將自動分配 IP 位址給執行於共用網路模式下的虛擬機器。要禁用這些當中任何的伺服器，都需清除相應的選項。

如需設定共用網路的詳細資訊，請參閱[**在 macOS 和 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)。

### **埠轉發**

{% hint style="info" %}
**附註：**&#x8A72;功能僅可用於 Parallels Desktop for Mac Pro/Business/Enterprise 版。
{% endhint %}

通常，設定為在共用網路模式中操作的虛擬機器無法從外部電腦進行連線。埠轉發功能允許您本地網路與網際網路上的電腦傳輸資料到使用共用網路模式的任何虛擬機器。發送到 Mac 上指定埠的資料將會根據埠轉發規則被重導向至您虛擬機器的一個指定的埠。

要新增一個埠轉發規則：

1. 按一下「**埠轉發規則**」清單下的「**新增**」按鈕 (+)。
2. 在顯示的視窗中，進行以下操作：

   * 在「**協議存取**」欄位，指定您想要用於建立網路連線的埠類型。您可在 **TCP** 或 **UDP** 埠類型中選擇。
   * 在「**傳入埠**」欄位，輸入您 Mac 上傳入埠號。
   * 在「**IP 位址**」欄位，指定您想要連線的虛擬機器的 IP 位址。
   * 在「**目標埠**」欄位，輸入將要把資料移轉到的虛擬機器上的埠。

   <figure><img src="https://content.gitbook.com/content/Pp2agomXHj0RwnM8quEs/blobs/TMKrwHkp1YUSvcKzWr2j/Screenshot%202024-02-01%20at%2023.56.08.png" alt=""><figcaption></figcaption></figure>
3. 按一下「**確定**」來新增規則。

新增規則時，請使用下列 IP 位址組合進行虛擬機器的外部連線：`<Mac 的 IP 位址>:<Incoming port>`。

<figure><img src="https://377136166-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPp2agomXHj0RwnM8quEs%2Fuploads%2Fgit-blob-0ab11e11c1c028444dedb5482e65040c42309c28%2Fimage.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

若要編輯規則，可在「**埠轉發規則**」清單中選取該規則，按一下「**編輯**」按鈕 ，修改必要的設定，然後按一下「**確定**」以套用這些修改。

若要移除連線埠轉送規則，可在「**連線埠轉送規則**」清單中選取該規則，然後按一下「**移除**」按鈕 (-)。

要恢復預設設定，請按一下「**恢復預設**」。


---

# 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/jin-jie-zhu-ti/gong-yong-wang-lu-she-ding.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.
