pbrah / wpa_supplicant-udmpro

110 stars 24 forks source link

how to deal with wan vlan 0 and mac address ? #14

Closed zerog2k closed 3 years ago

zerog2k commented 3 years ago

This is great for getting wpa_supplicant to work. Thanks.

But it seems like only part of the equation. UDM (base, not pro; but assuming also applies for pro), does not seem to support setting vlan 0 on wan (only likes 1+). (I have seen some mentions of setting this in classic interface, however I do not see eth4.0 interface created - so probably a bug w/ UDM). How does this (vlan 0, wan dhcp interface) work w/ UDM-Pro folks?

Also, (quite shockingly) UI has no way of setting WAN mac address directly. I can set it from cli, e.g. ipconfig ethX.Y hw ether aa:bb:cc:dd:ee:ff etc But not sure how to reliably persist this beyond reboots, as with UDM/UnifOS, there does not seem to be equivalent config.gateway.json tricks (which was just ridiculous to begin with). Request folks to upvote this https://community.ui.com/tracker/MAC-Cloning/57b532a4-7bd3-41db-8c87-fd6187bc5d6b

zerog2k commented 3 years ago

Ok, despite all my struggles, it surprisingly turned out much easier than I could even imagine. I did not need any vlan subinterfaces, and I did not need any mac addr cloning/spoofing on wan port. After getting successful wpa_supplicant auth, dhcp worked fine on eth4 main interface - no vlans. Yay... I can put the RG into a box where it belongs.