You can use the 'route' command to add host-specific routing.
Normally the route table contains network routes. But you can create a host-specific route that forces the network stack to use a specific interface.
In your example:
eth0 is 192.168.15.251 with netmask 255.255.255.0 <-- faster net but limited
wlan0 is 192.168.8.101 with netmask 255.255.255.0 &...
I think I've fixed it, it's been three days and I think it would otherwise have broken by now but things are going well.
I checked /var/log/syslog and saw a couple suspicious looking things. One was a bunch of logs from dhcpcd that looked like:
dhcpcd: eth0: pid 411 deleted route to 192.168.1.0/24
dhcpcd: eth0: received approval for 192.168.1.200 (...
If it reacts to ping, the pi is alive.
If you cannot access it through ssh, then the only solution will be a powercycle (off-on). If then the pi comes back on-line, you can go and check the logs to see what happened.
If that doesn't work, turn the pi off, remove the memmorycard and mount it on another system. And then check the logs.
The real solution ...
The (very) small WiFi antenna on the Pi makes it susceptible to interference. Other, distant SSIDs on that channel may not hear the Pi and talk over it. Also, if there are networks that aren't on the set channel but do overlap it, the traffic there becomes simple interference and may also drown out the Pi.
Use a WiFi analyzer (there is at least one free ...
When using USB tethering with your smartphone you should get a network interface when connected. Check with ip -br addr. I don't know what its name is on your installation but with the Raspberry Pi OS it is mostly named usb0. Now you have two interfaces: eth0 connected to your switch and usb0 (or however it is named) as uplink to your smartphone.
You can ...
Added a few sudo in and a re-login to get the prompt updated assuming the user is pi
change host name
echo $host_name | sudo tee /etc/hostname
sudo sed -i -E 's/^127.0.1.1.*/127.0.1.1\t'"$host_name"'/' /etc/hosts
sudo hostnamectl set-hostname $host_name
sudo systemctl restart avahi-daemon
sudo su -l pi
It is unclear how the PC is connected to the router. I assume it is connected wired with an ethernet cable. I also assume you want to use the iPhones internet connection to give all devices on your local network access to the internet. With this conditions you have to use the Raspberry Pi as additional router, instead of the PC. Its wired port (interface ...
uhubctl author here - I have described this issue in uhubctl FAQ:
USB devices are not removed after port power down on Linux
After powering down USB port, udev does not get any event, so it keeps the device files around. However, trying to access the device files will lead to an IO error.
This is Linux kernel issue. It may be eventually fixed in kernel, see ...
I have several Pi's that run 24/7 and they will automatically reconnect when the wifi is available (I deliberately have my wifi networks turn off at night when there is no need for them to be on). I have found the below to be 100% reliable. I am using static IP on my Pi's but it should work fine with DHCP as well:
sudo nano /usr/local/bin/checkwifi.sh
The default dhcpcd is reliable and will automatically connect if correctly configured. See How to set up networking/WiFi
Raspberry Pi OS DOES NOT use networking.service - unless you misconfigure it.
You can use NetworkManager, but it is difficult to configure manually, and the GUI networking tool in Raspbian won't work. It is no more reliable than dhcpcd. ...
I’ve never known any issues with USB modems being powered when the computer is turned off and I’ve been using them since Windows 95 (that makes me feel really old - arrggghh).
It happens rarely on disks, SSD, HDD because they often have memory allocated to cache data going to / from the computer for performance reasons and that must be written to the slower ...
Please note that pi-hole is not Pi specific and you may do better on their ‘discourse’ server.
The entry is due to the router itself not using pi-hole for DNS not devices connected to it.
Unless the router needs to perform automatic updates (EE routers for example in the UK) then it is very very unlikely a home router would need to use pi-hole as it does not ...
Leaving this for my future self:
Basically I need to get the IP address that was assigned to the Pi on the wlan0 interface, and then change the last octet of the assigned IP soon after.
Let me break it down:
Get IP from DHCP
I needed to get the IP, extract the subnet part and change the last octet to what I want:
ifconfig wlan0 | grep -P inet[^6][0-9]\+.[0-9]...
You can try to use systemd-networkd that do not need additional helper programs which all must respect your uncommon network mask. You can set it in one configuration file and it should do. You can look at Setting up a Raspberry Pi as an access point - the easy way how to do it. You have to use section ♦ Setting up an access point and with eth0, with NAT (...
It is possible to create a WiFi router/repeater with a WiFi uplink to your internet router. How to do it you can look at Access point as WiFi router/repeater, optional with bridge.
If you have this running then based on this you should be able to create an additional VPN tunnel, either with using a Simple openVPN with static keys, or using Wireguard, or ...
I actually figured it out. What i did was used this GitHub project: https://github.com/RoganDawes/P4wnP1_aloa which let me easily change the USB gadget that i wanted to emulate. I than literally just set up samba. Also if i wasn't clear what i had wanted to do was be able to use the raspberry pi as a USB storage device but instead of just it emulating a USB ...