Answer the question
In order to leave comments, you need to log in
Why is the Internet not working with a dynamically specified gateway?
On the port eth-WAN 1
- DHCP client, with "add default route" checked. In this route, the gateway is specified 192.168.1.1
. But if I uncheck the box and create the same route with my hands (but I choose the gateway eth-WAN 1
, it doesn’t work. If I change everything to 192.168.1.1
that, everything is ok). I am balancing and it is important for me that this route is created by me, because I need to send marked traffic through it. Why doesn't the variant with the one specified eth-WAN 1
in the role of the gateway work, but the variant with the specified one 192.168.1.1
works?
Answer the question
In order to leave comments, you need to log in
If I understand correctly, then you are trying to force packets to go through the client, and of course this does not work because the client does not have the Internet itself, except through the gateway.
Those.
is incorrect, since the eth1 interface has an IP assigned via DHCP, say, 192.168.1.2 - and, of course, nothing will go through it.
In addition, I suspect that you are doing something
that is fundamentally wrong, since in this case eth1 will be the name of the device on the network, and not the interface (which is indicated through dev)
How to properly balance through several channels is described for example here .
Since an interface can only be specified in some cases
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question