[Eisfair] Routen, die in der Base eingetragen sind werden nicht (mehr) gesetzt, Warum?

Helmut Backhaus helmut.backhaus at gmx.de
Fr Mai 10 22:15:27 CEST 2024


Hallo Marcus,

Am 10.05.24 um 21:57 schrieb Marcus Röckrath:
> Hallo Helmut,
> 
> Helmut Backhaus wrote:
> 
>> ich bin gerade darüber gestolpert, das die in der Base unter:
>>
>> IP_ROUTE_N='1'                    # number of additional routes
>> IP_ROUTE_1='192.168.10.0 255.255.255.0 192.168.100.254'
>>                                     # network netmask gateway
>>
>> Eingetragen Routen nicht gesetzt werden!
>>
>> Ist das richtig so?
>>
>> Ein händische setzen per "route" oder "ip r add ..." geht aber und dann
>> funktioniert auch das Routing!
> 
> Was sagt
> 
> service status route
> 

service status route
● route.service
      Loaded: loaded (/etc/init.d/route; generated)
      Active: active (exited) since Fri 2024-05-10 21:03:01 CEST; 1h 
1min ago
        Docs: man:systemd-sysv-generator(8)
     Process: 497 ExecStart=/etc/init.d/route start (code=exited, 
status=0/SUCCESS)
         CPU: 17ms

May 10 21:03:01 e1nagios systemd[1]: Starting route.service...
May 10 21:03:01 e1nagios route[497]:  * Setting up additional routes ...
May 10 21:03:01 e1nagios route[497]: [26B blob data]
May 10 21:03:01 e1nagios systemd[1]: Started route.service.

> ip route
> 

route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
default         fritzbox.home.l 0.0.0.0         UG    0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
192.168.100.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0

> 
> Wird die route durch
> 
> service restart route
> 
> dann angelegt?
> 

Ja

service restart route
  * Restarting route.service ...



route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
default         fritzbox.home.l 0.0.0.0         UG    0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
192.168.10.0    fli-int.home.la 255.255.255.0   UG    0      0        0 eth0
192.168.100.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0


ABER!
Nach einem Reboot sieht es so aus:

route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
default         fritzbox.home.l 0.0.0.0         UG    0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
192.168.100.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0

Fällt Dir was auf? :-))

Gruß,
Helmut


Mehr Informationen über die Mailingliste Eisfair