> For the complete documentation index, see [llms.txt](https://man.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://man.bsdcn.org/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)](/man4/etherswitch.4.md), etherswitchcfg(8)

## 历史

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

## 作者

`e6060sw` 驱动由 Hiroki Mori 编写
