> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man4/urndis.4.md).

# urndis.4

`urndis` — USB Remote NDIS 以太网设备

## 名称

`urndis`

## 概要

要将此驱动编译进内核，请将以下行加入你的内核配置文件：

> device ehci device uhci device ohci device xhci device usb device miibus device uether device urndis

或者，要在引导时以模块方式加载该驱动，请将以下行加入 loader.conf(5)：

```sh
if_urndis_load="YES"
```

## 描述

`urndis` 驱动通过 Remote NDIS (RNDIS) 提供以太网访问，允许手机和平板电脑等移动设备提供网络接入。这通常被称为 USB 网络共享，在大多数情况下需要在设备上显式启用。

`urndis` 应当能与任何 USB RNDIS 设备协同工作，例如 Android 设备上常见的那些。它不支持不同的媒体类型或选项。有关配置此设备的更多信息，请参见 [ifconfig(8)](/man/man8/ifconfig.8.md)。

## 硬件

`urndis` 驱动支持许多 Android 设备的“网络共享”功能。

## 参见

arp(4), [cdce(4)](/man/man4/cdce.4.md), [cdceem(4)](/man/man4/cdceem.4.md), [ipheth(4)](/man/man4/ipheth.4.md), [netintro(4)](/man/man4/netintro.4.md), [usb(4)](https://github.com/FreeBSD-Ask/freebsd-man-sc/blob/main/man4/usb.4.md), [ifconfig(8)](/man/man8/ifconfig.8.md)

## 历史

`urndis` 设备驱动首次出现于 OpenBSD 4.7。首个包含它的 FreeBSD 版本是 FreeBSD 9.3。

## 作者

`urndis` 驱动由 Jonathan Armani <armani@openbsd.org>、Michael Knudsen <mk@openbsd.org> 和 Fabien Romano <fabien@openbsd.org> 编写。由 Hans Petter Selasky <hselasky@FreeBSD.org> 移植到 FreeBSD。


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man4/urndis.4.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
