You are not logged in.

#1 2013-07-29 13:55:07

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Set Primary and Secondary Interfaces

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

#2 2013-07-29 14:06:03

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,646

Re: Set Primary and Secondary Interfaces

Offline

#3 2013-07-29 14:11:28

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: Set Primary and Secondary Interfaces

Yea that would probably work, don't know why I didn't think of looking there in the first place smile 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

#4 2013-07-31 17:11:32

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: Set Primary and Secondary Interfaces

Can someone please give me some feedback on this?

Offline

#5 2013-07-31 17:14:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,339
Website

Re: Set Primary and Secondary Interfaces

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

#6 2013-07-31 21:39:18

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: Set Primary and Secondary Interfaces

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

Board footer

Powered by FluxBB