A
A
Alexander Smolin2021-10-20 13:23:11
Computer networks
Alexander Smolin, 2021-10-20 13:23:11

How to configure networkmanager to work behind a router?

question on networks: there is a single-board orange pi (armbian) with one lan and wifi.
you need to connect to a wifi network, and connect lan to another router (or computer) that will receive traffic from wifi.
scheme is like this:

вендорный wifi --(wifi)-> orange pi --(lan)-> мой роутер --(lan/wifi)-> клиенты


how do i properly configure this lan that goes from orange pi to router?

tried to use networkmanager (and it is desirable to use it). it turned out like this:
nmcli c add type ethernet ifname eth0 con-name wired-getaway;
nmcli c modify wired-getaway ethernet.auto-negotiate true;
nmcli c modify wired-getaway ipv6.method ignore;
nmcli c modify wired-getaway ipv4.dns 8.8.8.8,8.8.4.4;
nmcli c modify wired-getaway ipv4.addresses 192.10.0.1/24; # ранее было /32, поправлено по комментарию
nmcli c modify wired-getaway ipv4.gateway 192.10.0.1;
nmcli c modify wired-getaway ipv4.method manual;
nmcli c modify wired-getaway ipv4.route-metric 2048;
nmcli c up wired-getaway;


but my router does not see my single board computer. what am I doing wrong?

PS yes, I know, then it will be necessary to write iptables rules, but there you only need to do forwarding and that's it, as I understand it,

tell me what's wrong and where to dig, because it was not possible to solve such a problem with a "swoop"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2021-10-20
@Alex_P97

ipv4.addresses 192.10.0.1/32 means that there is exactly 1 device on this network, the orange itself. change the mask to at least /30

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question