Содержание

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Создать в /etc/network/if-up.d/ файл routes .sh со след содержимым:


Code Block
title/etc/network/if-up.d/routes
#!/bin/bash
# Check for specific interface if desired
[ "$IFACE" != "eth0" ] || exit 0
# Adding additional routes on connection
route add -net 192.168.32.0/24 gw 192.168.1.1 dev eth0 

...

Command

chmod +x /etc/network/if-up.d/routes.sh