B
B
Benedictus2020-09-02 12:47:39
linux
Benedictus, 2020-09-02 12:47:39

Why is an extra Gateway added to Linux?

Colleagues, tell me, for what reasons, after systemctl restart network, extra routing entries are added to the routing table?

There are two interfaces:
DEVICE=enp2s0f0
NAME=enp2s0f0 TYPE =
Ethernet
BOOTPROTO=static
ONBOOT=yes
IPV6INIT=no
USERCTL=no
IPADDR=10.77.39.105
NETMASK=255.255.255.0
GATEWAY=10.77.39.106

DEVICE=enp2s0f2 BOOTTERnetEPETOthernetETO2 =static ONBOOT=yes IPV6INIT=no USERCTL=no IPADDR=10.205.240.220 NETMASK=255.255.255.248


after systemctl restart network, an extra route and an
extra GateWay appear, although it is not specified in network-
scripts scope link src 10.77.39.105 metric 103
10.205.240.216/29

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DDwrt100, 2020-09-02
@Benedictus

try adding the line "DEFROUTE=no" on the interface where there should be no default

D
Dmitry, 2020-09-02
@q2digger

See what it says:
nmcli device show
and
nmcli con show

A
Andrey Barbolin, 2020-09-02
@dronmaxman

Are there configs here?
https://renediepstraten.nl/?p=56

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question