[PATCH 2/2] octeon: add EdgeRouter Lite specific network config

Stijn Segers foss at volatilesystems.org
Fri Jan 8 11:30:03 EST 2021


Hi Adrian,

Op vrijdag 8 januari 2021 om 13u30 schreef Adrian Schmutzler 
<mail at adrianschmutzler.de>:
> Hi,
> 
>>  -----Original Message-----
>>  From: openwrt-devel [mailto:openwrt-devel-bounces at lists.openwrt.org]
>>  On Behalf Of Stijn Segers
>>  Sent: Freitag, 8. Januar 2021 11:28
>>  To: openwrt-devel at lists.openwrt.org
>>  Subject: [PATCH 2/2] octeon: add EdgeRouter Lite specific network 
>> config
>> 
>>  The Ubiquiti EdgeRouter Lite has three network interfaces. Add a 
>> specific
>>  match in /etc/board.d/01_network so they all get set up.
>>  Default to eth0 for WAN and an eth1 + eth2 bridge for LAN.
> 
> Why this particular assignment?


The EdgeRouter 4 (same Octeon target) uses a similar set-up; the PC 
Engines APU has a similar setup as well: 3 Ethernet ports, eth0 being 
set as WAN - see [2].

I can invert it and set eth2 as WAN port, if you'd like. The fallback 
setup for Octeon at this point is just as weird, to set eth0 as LAN 
(which is logical) and eth1 as WAN, and leave other ports unconfigured.

There's no perfect solution, but I think leaving a port unused makes 
even less sense than this.

Stijn

[1] 
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/octeon/base-files/etc/board.d/01_network;h=749d99be1d11802fbc442a11b1d3312b806ea9fb;hb=HEAD
[2] 
https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=target/linux/x86/base-files/etc/board.d/02_network;h=c6e381b946d03887cb941e90db2ccbb2f918fca4;hb=HEAD

> 
> Best
> 
> Adrian
> 
>> 
>>  Signed-off-by: Stijn Segers <foss at volatilesystems.org>
>>  ---
>>   target/linux/octeon/base-files/etc/board.d/01_network | 3 +++
>>   1 file changed, 3 insertions(+)
>> 
>>  diff --git a/target/linux/octeon/base-files/etc/board.d/01_network
>>  b/target/linux/octeon/base-files/etc/board.d/01_network
>>  index 749d99be1d..4ad5f95598 100755
>>  --- a/target/linux/octeon/base-files/etc/board.d/01_network
>>  +++ b/target/linux/octeon/base-files/etc/board.d/01_network
>>  @@ -14,6 +14,9 @@ itus,shield-router)
>>   ubnt,edgerouter-4)
>>   	ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "lan0"
>>   	;;
>>  +ubnt,erlite)
>>  +	ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
>>  +	;;
>>   *)
>>   	ucidef_set_interfaces_lan_wan "eth0" "eth1"
>>   	;;
>>  --
>>  2.20.1
>> 
>> 
>>  _______________________________________________
>>  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