You are not logged in.
How can I set up primary and secondary network interfaces, so that it will automatically fallback to the second interface when I don't have the primary connected? I tether my phone to T-Mobile's network, but when I don't have it connected it want it to fall back to my wired connection.
Offline
Does this help: https://wiki.archlinux.org/index.php/Ne … f_profiles ?
Offline
Yea that would probably work, don't know why I didn't think of looking there in the first place Thanks.
Edit: I'm slightly confused about how to set this up. Do I just set up two different profiles in the /etc/netctl/ directory? How do I specify priorities?
Would something like this work?
ethernet-tmobile
Description='T-Mobile'
Interface=enp0s26f7u3
Connection=ethernet
IP=dhcp
ethernet-wired
Description='Wired'
Interface=enp3s2
Connection=ethernet
IP=dhcp
Last edited by brando56894 (2013-07-29 14:45:42)
Offline
Can someone please give me some feedback on this?
Offline
Brando, please don't bump posts for more attention, instead elaborate on what you have learned in the past couple days. I don't know how to do this, but you presented a reasonable attempt, and asked if it would work. Why don't you tell us: did it work? Presumably not, but you did try it right? Did it give some error, or some of the intended behavior?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Sorry, I only bump my own posts when I've added additional information to my last post and I see that no one has added anything to it in the past few days. I guess I would be better to create a new post instead of editing the old one.
I did give it a try and I have no real results to share. I created the two profiles in the /etc/netctl directory and named them as above (including Priority=1 for the tmobile connection and Priority=2 for the wired connection, as stated in the wiki entry even though man netfcfg.profile says it's only for wireless connections), then I enabled the service. There is the word "interface" after systemctl enable netctl-ifplugd@ which makes me think I should specify an interface but I have no idea which one to specify, so I just enabled it without it and it didn't complain. There's no way to start it. Both connections are enabled but it seems to default to the wired connection for some reason, when I want it to default to the tmobile connection and then fall back to the wired connection. Both are enabled and have IP addresses but nothing changes when I connect or disconnect my mobile data connection since it's using the wired connection.
edit: I just tried to enable the service using the interface name of my mobile data connection and it didn't change anything ex. sudo systemctl enable netctl-ifplugd@enp0s26f7u3
Last edited by brando56894 (2013-07-31 21:44:57)
Offline