[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where did my gateway go?



On 8/31/19, deloptes <deloptes@gmail.com> wrote:
>>> you can not have two default gateways.
>>
>> You can, but if both have the same metric the chances are pretty good
>> you're going to have weird network problems.  I've got different
>> metrics & haven't noticed any problems:
>> root@hpg60:~# route
>> Kernel IP routing table
>> Destination     Gateway         Genmask         Flags Metric Ref    Use
>> Iface
>> default         10.10.2.1       0.0.0.0         UG    100    0        0
>> enp1s0
>> default         10.10.10.1      0.0.0.0         UG    600    0        0
>> wls1
>> 10.10.2.0       0.0.0.0         255.255.255.0   U     100    0        0
>> enp1s0
>> 10.10.10.0      0.0.0.0         255.255.255.0   U     600    0        0
>> wls1
>> link-local      0.0.0.0         255.255.0.0     U     1000   0        0
>> wls1 root@hpg60:~# v
>>
>> Wireless is convenient, ethernet is much faster, so I've got the
>> ethernet interface configured with the better metric.
  <.. snip ..>
>> Lee
>
> OK, agree but it goes to deep down in the technics, but true. The lower
> metric has precedence. IT would be really better to specify what exactly
> goes over which network.

Why?

If I had something like 10.10.11.0/24 connected to the wireless router
I can see adding a static route so the laptop goes directly to the
wlan default gateway instead of the ethernet default gateway (+ maybe
getting a redirect) & then to the wlan router to the destination.

But other than that.. I'm missing why you think it'd be better to
specify exactly what goes where.

Lee


Reply to: