Skip to content

Commit

Permalink
Fix mac address assignment for eth0 (wan) and eth1 (lan) interfaces i…
Browse files Browse the repository at this point in the history
…n Edgecore EAP105

Signed-off-by: Tanya Singh <[email protected]>
  • Loading branch information
tanyasingh-ec committed Oct 16, 2024
1 parent ecff108 commit db25ae5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion feeds/ipq95xx/ipq53xx/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ipq53xx_setup_interfaces()
edgecore,eap105|\
sercomm,ap72tip)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
;;
;;
esac
}

Expand All @@ -38,6 +38,11 @@ qcom_setup_macs()
ucidef_set_network_device_mac eth1 $wan_mac
ucidef_set_label_macaddr $wan_mac
;;
edgecore,eap105)
wan_mac=$(cat /sys/class/net/eth0/address)
lan_mac=$(macaddr_add "$wan_mac" 1)
ucidef_set_label_macaddr $wan_mac
;;
*)
wan_mac=$(cat /sys/class/net/eth1/address)
lan_mac=$(macaddr_add "$wan_mac" 1)
Expand Down

0 comments on commit db25ae5

Please sign in to comment.