> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 配置带 RJ45 端口的以太网

以太网/RJ45 端口作为 PCIe 转 USB 控制器（`renesas`）的下游端口启用。请确保 `renesas_usb_fw.mem` 文件位于 `/lib/firmware` 目录中。

* 如果 `/lib/firmware` 目录中没有 `renesas_usb_fw.mem` 固件，请[更新 USB 和以太网控制器固件](./how-to-update-usb-ethernet-controller-firmware)。

* 要检查 USB 转以太网控制器是否已枚举，请运行以下命令：

  ```bash theme={null}
  lsusb
  ```

  ```text Sample output theme={null}
  Bus 002 Device 003: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
  Bus 002 Device 002: ID 05e3:0625 Genesys Logic, Inc. USB3.2 Hub
  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  ```

* 将 RJ45 网线连接到设备：

* 检查以太网 IP 地址：

  ```bash theme={null}
  ip address
  ```

  `10.219.0.106` 即为 IP 地址。

  ```text Sample output theme={null}
  enP1p4s0u1u1 Link encap:Ethernet HWaddr A6:CD:9B:FD:C1:B5

  inet addr:10.219.0.106  Bcast:10.219.1.255  Mask:255.255.254.0
  inet6 addr: fe80::a370:7a00:8131:5a03/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:1071 errors:0 dropped:0 overruns:0 frame:0
  TX packets:132 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:60711 (59.2 KiB)  TX bytes:18342 (17.9 KiB)
  ```
