V
V
Vyacheslav2017-07-18 15:44:44
linux
Vyacheslav, 2017-07-18 15:44:44

Ubuntu network setup or how to combine wi-fi and LAN?

Good afternoon to all experts of Linux.
For several days I can’t solve a seemingly simple, banal task ... I will briefly describe the essence:
There is a router that distributes the Internet and IP via DHCP. Single-board computer Orange PI PC (Orange) with OS Armbian Server (based on Ubuntu 16.04) is connected to the router via wi-fi. I want other computers connected to the LAN port "oranges" to receive Internet and IP from the router via DHCP, and the "orange" itself also had access to the network. Theoretically, I understand that a bridge is needed, but here's how to do it right? Tried a bunch of options. It turned out to make the "orange" work in the gateway mode with manually specifying the IP, but the required result was not achieved.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Zhurkin, 2017-07-18
@icCE

You need to bridge two interfaces eth and wifi.
To do this, install the bridge-utils package
Create a bridge interface brctl addbr br0
Remove ip and disable interfaces.
Add each interface to the bridge brctl addif br0 eth0
brctl addif br0 eth0 your wifi
and already on br0 hang up ip or try to get via dhcp, oh yes, just don't forget to enable interfaces again
ifconfig eth0 up etc.
Look like that's it.
Another point is that wifi itself must work in station bridge mode.
UPD. As for me, it's easier to take the simplest mikrotik hpa ac lite and do everything in a couple of minutes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question