OpenWrt on JDCloud AX6600 Athena: Move the 2.5G Port to LAN and Swap WAN/LAN1

How to move the 2.5G port to internal LAN on AX6600 Athena by editing DTS and swapping WAN/LAN1.

Introduction

The JDCloud Wireless Treasure AX6600 Athena has a 2.5G port. In LEDE/libwrt builds of OpenWrt, this port is usually configured as WAN by default. In many home-lab scenarios, it is more useful as an internal LAN port for connecting NAS and other local servers. This article shows one practical DTS-based approach.

Method

OpenWrt’s web UI usually cannot directly remap this WAN/LAN assignment. You can do it by editing the DTS file.

Swap lan1 and wan:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Before:
	switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>;
	switch_wan_bmp = <ESS_PORT5>;
  ...
  &dp1 {
	status = "okay";
	phy-handle = <&qca8075_24>;
	label = "lan1";
  };
  ...
  &dp5 {
    status = "okay";
    phy-handle = <&qca8081>;
    label = "wan";
  };

After:
	switch_lan_bmp = <(ESS_PORT5 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>;
	switch_wan_bmp = <ESS_PORT1>;
  ...
  &dp1 {
    status = "okay";
    phy-handle = <&qca8075_24>;
    label = "wan";
  };
  ...
  &dp5 {
    status = "okay";
    phy-handle = <&qca8081>;
    label = "lan1";
  };

DTS Downloads (Before/After)

libwrt DTS files: Before: ipq6010-re-cs-02.dts After: ipq6010-re-cs-02.dts

LEDE DTS files: Before: ipq6010-re-cs-02.dts After: ipq6010-re-cs-02.dts

记录并分享
Built with Hugo
Theme Stack designed by Jimmy