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

# e6060sw\.4

`e6060sw` — Marvell 88E6060/88E6063/88E6065 快速以太网交换机驱动

## 名称

`e6060sw`

## 概要

`device mdio device etherswitch device e6060sw`

`hint.e6060sw.0.at="mdio0"`

## 描述

`e6060sw` 设备驱动为 Marvell 88E6060 和 88E6065 快速以太网交换机芯片提供管理接口。此驱动通过以太网接口使用 smi 接口。

88E6060 仅支持端口 vlan。88E6065 支持端口和 dot1q vlan。dot1q 支持基于组的 tag/untag。

## 硬件

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

* Marvell 88E6060
* Marvell 88E6063
* Marvell 88E6065

## 实例

通过 etherswitchcfg 命令在 88E6065 上配置 dot1q vlan。

```sh
# etherswitchcfg config vlan_mode dot1q
```

在 88E6065 上配置带 dot1q 标签的 vlangroup。此示例将 port0 配置为 vlan 2。

```sh
# etherswitchcfg vlangroup2 vlan 2 members 0,5t port0 pvid 2
```

## 参见

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

## 历史

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

## 作者

`e6060sw` 驱动由 Hiroki Mori 编写


---

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