ubuntu networking

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp5s0
iface enp5s0 inet static
address 10.0.0.101
netmask 255.255.255.0
gateway 10.0.0.2
dns-nameservers 8.8.8.8
post-up route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.0.0.2

auto enp5s0:0
iface enp5s0:0 inet static
address 172.25.41.69
netmask 255.255.255.248
up route add -net 172.16.0.0 netmask 255.240.0.0 gw 172.25.41.65

———————————————-

Henster: at least consider removing the duplicate default route

what does this mean ?
———————————————————


bit this is not working

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp5s0
iface enp5s0 inet static
address 10.0.0.101/24
gateway 10.0.0.2
dns-nameservers 8.8.8.8
post-up ip addr add 172.25.41.69/29 dev enp5s0
post-up ip route add 172.16.0.0/12 via 172.25.41.65

———————————