Automatically switched network interfaces

Hi,
I’ve got Linux Jessie on acer 5560 laptop.
I have got local router, and wire goes from one to computer.
I also have got a android tabet with SIM card with Internet, and it shares a wifi hotspot.

Now in laptop only wifi is working with static ip.
When I disable wifi, I want that eth0 turn on automatically with dhcp.

  1. Does ifplugd work with wlan0 and eth0 at the same time?
    Or is there another solution without using ifplugd?

Also when I want to turn off WiFi and I get this:
http://imgur.com/yRPbABn
-Is it a normal behavior?

I don’t know anything about ifplugd … a server wouldn’t normally be having its network connection changed mid session, and wouldn’t normally be connected to the network via wireless.

Not saying it can’t be done, just that you’re entering territory where most people won’t have practical experience.

Also when I want to turn off WiFi and I get this: http://imgur.com/yRPbABn -Is it a normal behavior?

How are you “turning off” wireless ?

Via command “ifconfig wlan0 off”

Sent from my OV-V10 using Tapatalk

Not that command, I mean “ifconfig wlan0 down”

Sorry, for my mistake.

Sent from my OV-V10 using Tapatalk

Try:

sudo ifdown wlan0

but I can’t say for sure how this will work with a USB wireless adapter

I typed
Code:
Sudo Ifdown wlan0
And I get short message ‘wl0 down some numbers’ (the same as on picture I sent)

Then I typed
Code:
Sudo ifup wlan0 and I get ‘wl0 up some numbers’ and blinking cursor in next line.
So I pushed Ctr +C , then I checked ping , and it wasn’t ping for a while but after 20seconds I got internet and ping.

I believe there is a little difference between ifconfig up and ifup. In the first one I didn’t have internet, I had to restart PC.

I also add, I’ve got built-in WiFi , no USB adapter.

BTW
I added new user.
When I typed ‘ifconfig’ I got ‘command not found’.
So I added this user into /etc/sudousers.
Now, when I type sudo command and input account’s password, I can do everything like root user.
I think that isn’t safe.
How should /etc/sudousers look like?

Sent from my OV-V10 using Tapatalk

Now, when I type sudo command and input account's password, I can do everything like root user.
That is the whole idea of sudo, so that you can do whatever root can do without staying logged in (as root). If that worries you (there is no protection from the user action logged in as root) then stay away from using it, let others administer your system.

Ok, I understand.

I’ve set up dhcp and I get ‘A start job is running for lsb’
My PC boots much longer than usually.

Is that message related with dhcp?

Sent from my OV-V10 using Tapatalk

googling A start job is running for lsb
http://bfy.tw/ll6

suggests it’s a systemd thing, where it’s probably awaiting the network to come up.

So I can set up static ip on eth0 , and that should solve the problems problem.

Topic is closed.

Sent from my OV-V10 using Tapatalk

Sorry for my writing mistakes, because I replied from mobile phone.

Sent from my OV-V10 using Tapatalk