Answer the question
In order to leave comments, you need to log in
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
try adding the line "DEFROUTE=no" on the interface where there should be no default
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question