> 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/arswitch.4.md).

# arswitch.4

`arswitch` — Atheros AR8000 系列以太网交换机驱动

## 名称

`arswitch`

## 概要

`device mdio device etherswitch device arswitch`

## 描述

`arswitch` 驱动为 Atheros AR8000 系列以太网交换机控制器提供管理接口。该驱动使用 [mdio(4)](/man/man4/mdio.4.md) 或 [miibus(4)](/man/man4/miibus.4.md) 接口配置以太网接口。

此驱动支持基于端口的 VLAN 以及 IEEE 802.1Q（QinQ）。这些选项可使用 etherswitchcfg(8) 命令配置。`arswitch` 支持 `addtag`、`striptag` 和 `doubletag`。`addtag` 和 `striptag` 互斥。

不支持设置交换机 MAC 地址。

## 硬件

`arswitch` 驱动支持以下以太网交换机控制器：

* Atheros AR8327 七端口千兆以太网交换机
* Atheros AR8316 六端口千兆以太网交换机
* Atheros AR8236 六端口快速以太网交换机
* Atheros AR8226 六端口快速以太网交换机
* Atheros AR8216 六端口快速以太网交换机

## 参见

[etherswitch(4)](/man/man4/etherswitch.4.md), etherswitchcfg(8)

## 历史

`arswitch` 设备驱动首次出现于 FreeBSD 12.0。

## 作者

`arswitch` 手册页由 Felix Johnson 编写。


---

# 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/arswitch.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.
