I believe you can just do reset wifi, and reboot, with ethernet cable plugged in, you should automatically get network to be up and running.
If for some reason that doesnt work and your wired network is not giving the Pi a dhcp IP, you may want to manually set the wired network by editing the file /etc/network/interfaces and putting the lines:
iface eth0 inet dhcp
To edit that file from console do: sudo nano /etc/network/interfaces
when done adding those lines above, press ctrl+x , then y, then enter… let me know how it goes.
Sorry, but I just tested myself and adding the line to my sysctl.conf file does disable it for me…
This is what the top of my file looks like:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
I even commented out the default one and just left the line net.ipv6.conf.all.disable_ipv6 = 1
and I still got my ifconfig to not show ipv6 address…
How are you using static IP?
Is it being provided by the router via static IP reservation?
Or are you telling the Pi that it is static?
…because the default is dhcp and it is ok to use dhcp as long as you control the IP distribution from the router, by telling the router that the MAC address of the interface gets specific IP… sometimes it is easier to control IP distribution that way rather than making all the changes in the actual Pi…
Sorry I forgot to tell you that when the output is too long it gets cut off the screen, so if you wrote the line to disable ipv6 on top of the file it wont show, since you are taking pictures and not sending screenshots, it would be easier to just run the command:
sudo nano /etc/sysctl.conf
and take a picture of the screen and it should show me the top of the file and what you wrote because this picture is only showing the end of the file.
Regarding the IP stuff, I am still wondering how you are hard coding the static IP on the Pi since we didn’t go over the /etc/network/interfaces file. Please also take a picture of what the screen shows after typing the command:
sudo nano /etc/network/interfaces
Also, to keep things simple, it would be good to turn OFF predictable network names because eth0 is not the actual name of your interface as you can see from the ifconfig showing “enxb…”
So that you can call the specific interfaces such as eth0 and deal with its configuration properly, you should turn this off, here are the steps and screenshots to follow along, very simple to do:
Type the command: sudo raspi-config
Select option 2, then N3 (network interfaces), then say No, press enter twice, then press tab until you reach the <Finish> selection then press enter, and then you should be back in console, a reboot will be necessary, which you already know how to do.