How to specify a default source address for outgoing traffic with netctl?

My machine has multiple static IP addresses on the ethernet interface, which are configured with netctl.

The configuration file of netctl looks like:

Description='A basic static ethernet connection'
Address=('' '')

I would like to make the default source IP address for outgoing packets. But the route table always has be the default. Then, I have to run

ip route change default via src dev ens0

manually to override it everytime after booting.

My question is: it is possible to specify the default source address in the configuration file of netctl?

Unix & Linux Asked by Dummmy on November 21, 2021

0 Answers

Add your own answers!

Related Questions

How to adjust NVIDIA GPU fan speed on a headless node?

2  Asked on December 16, 2020 by aleksandr-dubinsky


Linux VM unresponsive

0  Asked on December 16, 2020 by ykaly


Upgrading Berkeley DB rpm in a Centos OS

1  Asked on December 16, 2020 by gr68


How to redirect all network traffic through Tor?

0  Asked on December 15, 2020 by ananthakrishna-k


Feed script variable to command that prompts for user input

1  Asked on December 15, 2020 by vishnu-sajeevan


Configuring SNMP Traps

1  Asked on December 15, 2020 by kubomd


Wrong notification system in KDE Plasma

1  Asked on December 14, 2020 by arthur-m


start chromium on startup using systemd

1  Asked on December 14, 2020


DRBD Failure: (127) Device minor not allocated

1  Asked on December 14, 2020 by tanatos-daniel


Using bash shell function inside AWK

7  Asked on December 13, 2020 by tiny


Chrome on Gnome randomly fails to go full screen

1  Asked on December 13, 2020 by mikev


.vnc folder becoming too large

0  Asked on December 13, 2020 by hardcorehenry


TTY size with dual monitors

0  Asked on December 12, 2020 by user66554


run a script in multiple folders in parallel

5  Asked on December 11, 2020 by user233520


Fill missing fields with values from the line below

4  Asked on December 10, 2020 by joni


Ask a Question

Get help from others!

© 2021 All rights reserved.