I am currently using an openwrt one that is connected with the USB-C cable for its power supply.
The WAN port is PoE.
Is it possible to unplug the USB-C cable so that the PoE WAN port takes over the electricity?
Or will the router turn off and I have to restart everything?
Good question. I switched from USB power to PoE just yesterday, but since I also relocated the One, I first halt'ed it on USB before disconnecting it and powering it up with PoE.
What is the use-case you have in mind here hot-failover between power sources?
Ah yes thank you.
Last question please, my WAN port cable is connected to an ONT box.
A simple RJ45 cable is enough to power the openwrt One with electricity?
Mine doing duty as AP is supplied by a PoE switch (zyxel GS1900-8HP still with zyxel's OS) with 802.3at ports consuming 5 Watts (I have not closely payed attention, but every time I looked it was sitting at 5 Watts). I have not measured the supplied voltage, but I would guess that to be nominally 48 Volts.
Technically, the powering over PoE should be independent of the port configuration.
But it's usually more sensible to have the PoE port on the WAN side, be it that you switch the wan/ lan assignment around (two line change in /etc/config/network) or put both into br-lan. The wireless side is (also) independent of that.
So whatever you do is a policy decision, both are possible - but can make sense (even PoE on wan can make sense, in certain environments).
You have two independent ethernet ports:
2.5 GBit/s with PoE (wan by default)
1 GBit/s without PoE (lan by default)
You are completely free in deciding which role either of those ports plays in your environment - or how the wireless attaches to that. The defaults are just that - and easily changed to meet your expectations.
Disclaimer: no personal experience with this device (or anything filogic so far), just following from the side lines - but the setup should be straight forward.
I went for the bridged/dumb AP configuration, and put both WiFi radios and both ethernet ports into br-lan.
This sounds like a good strategy, but I'm feeling a little dopey here.
Does anyone have a good step-by-step process for converting an OpenWrt One router into a "dumb ap" that connects to the local network via Power Over Ethernet? (I tried following the Dumb AP and there are a bunch of fussy steps involved in configuring a static IP on the LAN port, moving the LAN and Wireless over to eth0 WAN/POE port, etc.) Thanks
If you provide a default /etc/config/network file for this device, it should be easy.
In general (without having seen this device so far):
delete the list ports 'wan' line from your wan interface (dd)
add it to your lan interface, after the existing one (p)
change your lan interface from option proto 'static' to option proto 'dhcp'
you can also configure a static IP, but that's a tad more complex (gateway/ DNS settings need to be added). personally I prefer DHCP with a static lease on your router (to keep all IP assignments there, in one central place - making renumbering easy, if necessary).
delete the options for ipaddr, netmask
bonus points for adding a lan6 interface modeled after wan6, with proto 'dhcpv6' (optional)
delete ula_prefix and the wan/ wan6 interface stanzas (this is supposed to be a client (or AP), not a device announcing its own ULA prefix).
reboot (if anything fails, be aware of the factory reset (or failsafe) procedures for your device - bonus point for this particular device, you have serial console access with a simple USB<--> USB-C cable to the console port, so you can actually see and fix things in-place.
it sounds more convoluted than it is.
tl;dr: move the list ports from the wan interface stanza to lan, delete wan/ wan6 stanzas, remove the ula_prefix, disable all DHCPd's.
(as mentioned, it would be easier with a before /etc/config/network, so we could add an -after variant for it).
Well, the PoE part is really independent and surprisingly simple:
assuming you run on the USB power brick
gracefully shutdown the router
configure a PoE injector/PoE switch port to supply sufficient power (iirc 48 volts and at least 5 watts, under load probably more, if you want to set a max power juat look at the USB bricks output wattage)
connect the One's 2.5 Gbps port to the active and enabled PoE injector/switch port
there is no 3, after 2) above your One should already be running merrily.
Than all that is left is configuring bridged AP mode (din't forget to persistently disable dhcpd/ohcpd/firewall/...).
I will share my config later once I have access to it again..,
Ah, sorry, I think I misread your request then. Unfortunately I did not switch over via LUCI but mostly bey editing config files by hand, so I can not post-hoc write-up how I did that with Luci.
Sorry, I do not have one.
However, in a thread about future wishes for OpenWrt someone mentioned a simply luci based way to switch between bridged AP and full router mode. Something that would solve your issue quite nicely if it would exist already....