X86 install one RJ45 (as wan)

Hello,
New here
I just installed x86 openwrt ufi to my desktop optiplex 3010, plan is to have it as a home server.
There is no UP, active network device that i can update and then install Luci in CLI
How can i do that?

I would use regular Linux distribution instead.
Anyway, see Only one lan port working on mini-pc
If you have no interfaces displayed by ifconfig, show lspci output.

2 Likes

You must enterly configure the network. Stable release have LuCI installed, so you can setup the network easily. Set up a bridge as LAN, and add the eth port.
https://firmware-selector.openwrt.org/?version=24.10.0&target=x86%2F64&id=generic

As @AndrewZ suggested, better use a regular distro than OpenWrt for a home server. OpenWrt is not meant for this albeit it can do it.

Boot up screen

Please avoid using pictures, use copy/paste instead. Use </> to format the output.

Ifconfig output

You have a recognized ethernet port... eth0.

With that in mind, you can edit the /etc/config/network file to change br-lan to proto dhcp (delete the address, subnet, and ipv6 lines). This will request a DHCP lease from your upstream router and from there you can use ssh or LuCI to further config your router.

Can't copy paste, only cli command access to pc

Can you be more specify?

You already have LuCI as you installed 24.10.0.You must manually edit your network using uci. Use something like this to set the IP to 192.168.1.10.

uci set network.lan.ipaddr="192.168.1.10"
uci commit network
service network restart

Once restarted, you should be able to link the device to the network and enter LuCI. Disable DHCP on the bridge, and customize at will.

I'll try now. Thanks

Br-lan: port 1 eth0 entered blocking state
Br-lan port 1 eth0 entered forwarding state
No ping reply

Use a switch and only link a computer and this device. Your computer should receive an IP with DHCP from the device. You should be able to display LuCI.

Than deactivate DHCP, set IP manually or as DHCP client (@psherman 's answer). Reattach to your network.

Didn't work the solutions above. Back to square one.
I dunno how to fix this

These are basic things to do at first start, they should work. Maybe the issue is elsewhere? Have you noticed that the link is at 100Mb whereas the NIC support 1Gb : is your network still at 100Mb?

Lan cable 100...

If you're saying you are using a 4 wire cable (often supplied with DSL modems etc that only operate at 100 Mb) between two Gb ports, that will not work. You need an 8 wire cable.

never said that.

with any other linux unix distro it connect by daulf to internet via lan, dhcp enabled.
with openwrt i'm new
i can't make it wan enabled to use dhcp and have Luci up going...

OpenWrt is primarily used as a router, so the default is to provide a lan interface and DHCP server. Connect the port only to one PC ghen have that PC obtain an IP by DHCP.

If you want the OpenWrt port to be a DHCP client, use vi (the only editor included by default) to edit /etc/config/network. In the lan section, change proto from static to dhcp. Remove the IP addresses. Close the file and restart the networking (service network restart). Then connect the Ethernet to an existing network. Use ip addr show dev br-lan to find the IP address that was assigned.

1 Like