[OpenWrt-Devel] [PATCH] ramips: mt7621: edgerouter-x: fix missing wan interface

Perry isprotejesvalkata at gmail.com
Fri Jun 5 10:48:47 EDT 2020


Hello Petr,

I have already created a PR to do just this, for both the ER-X and
ER-X-SFP.  https://github.com/openwrt/openwrt/pull/2961

Perhaps the PR could be merged instead since it handles both devices.

Greets,
Perry

On 6/5/20 4:37 PM, Petr Štetiar wrote:
> Commit 5acd1ed0be0d ("ramips: mt7621: fix Ubiquiti ER-X ports names and
> MAC addresses") didn't only changed naming, but also removed WAN
> functionality from eth0 port, which is not desired, so lets add it back.
> 
> Cc: Chuanhong Guo <gch981213 at gmail.com>
> Cc: Adrian Schmutzler <freifunk at adrianschmutzler.de>
> Cc: DENG Qingfang <dengqf6 at mail2.sysu.edu.cn>
> Fixes: 5acd1ed0be0d ("ramips: mt7621: fix Ubiquiti ER-X ports names and MAC addresses")
> Signed-off-by: Petr Štetiar <ynezz at true.cz>
> ---
> 
> As in https://openwrt.org/toh/ubiquiti/ubiquiti_edgerouter_x_er-x_ka#switch_ports_for_vlans
> 
>  target/linux/ramips/mt7621/base-files/etc/board.d/02_network | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
> index ba9f7fb7b613..5b0f7ff2cdef 100755
> --- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
> +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
> @@ -44,7 +44,7 @@ ramips_setup_interfaces()
>  		ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan"
>  		;;
>  	ubnt,edgerouter-x)
> -		ucidef_set_interface_lan "eth0 eth1 eth2 eth3 eth4"
> +		ucidef_set_interface_lan_wan "eth1 eth2 eth3 eth4" "eth0"
>  		;;
>  	ubnt,edgerouter-x-sfp)
>  		ucidef_set_interface_lan "eth0 eth1 eth2 eth3 eth4 eth5"
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
> 

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list