How to set persistent static routes in KDE desktop system with NetworkManager and systemd?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have two NICs. In NetworkManager > IPv4 > Routes, I checked "ignore automatically obtained routes" for both interfaces. Then I used these two commands:
$ sudo ip route add default via 192.168.1.1 metric 100 dev eth0
$ sudo ip route delete default via 192.168.2.1 dev eth1
The result is the routing table I wanted:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 101 0 0 eth1
How do I make it persistent now?
In case it matters, the configuration for eth0 is automatic (via DHCP) and for eth1 is static. Also, I'm running Arch Linux / KDE.
routing networkmanager iproute
add a comment |Â
up vote
0
down vote
favorite
I have two NICs. In NetworkManager > IPv4 > Routes, I checked "ignore automatically obtained routes" for both interfaces. Then I used these two commands:
$ sudo ip route add default via 192.168.1.1 metric 100 dev eth0
$ sudo ip route delete default via 192.168.2.1 dev eth1
The result is the routing table I wanted:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 101 0 0 eth1
How do I make it persistent now?
In case it matters, the configuration for eth0 is automatic (via DHCP) and for eth1 is static. Also, I'm running Arch Linux / KDE.
routing networkmanager iproute
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have two NICs. In NetworkManager > IPv4 > Routes, I checked "ignore automatically obtained routes" for both interfaces. Then I used these two commands:
$ sudo ip route add default via 192.168.1.1 metric 100 dev eth0
$ sudo ip route delete default via 192.168.2.1 dev eth1
The result is the routing table I wanted:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 101 0 0 eth1
How do I make it persistent now?
In case it matters, the configuration for eth0 is automatic (via DHCP) and for eth1 is static. Also, I'm running Arch Linux / KDE.
routing networkmanager iproute
I have two NICs. In NetworkManager > IPv4 > Routes, I checked "ignore automatically obtained routes" for both interfaces. Then I used these two commands:
$ sudo ip route add default via 192.168.1.1 metric 100 dev eth0
$ sudo ip route delete default via 192.168.2.1 dev eth1
The result is the routing table I wanted:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 101 0 0 eth1
How do I make it persistent now?
In case it matters, the configuration for eth0 is automatic (via DHCP) and for eth1 is static. Also, I'm running Arch Linux / KDE.
routing networkmanager iproute
routing networkmanager iproute
asked 7 mins ago
MountainX
4,7712469121
4,7712469121
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475494%2fhow-to-set-persistent-static-routes-in-kde-desktop-system-with-networkmanager-an%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password