Setting static route in Debian-Linux

Simple network routes can be set under Linux using the route command become. Here is a simple example:

route add -net netmask gw"

In order for this change to be active even after a restart, the file /etc/network/interfaces must be changed.

iface ens192 inet static
        up /bin/ip route add via
Created on April 11, 2024 by Andreas Wittmann

Home - Sitemap - Privacy-policy/Impressum

Coypright 2024 by Andreas Wittmann
All rights reserved