in the house where I am I have a router and a BThhome hub. I always connected to the first one, through wireless and getting an IP (through dhcp). The second one, for some reason, didn't have the signal. But I had the great idea of resetting it and now it works (I get the signal). And I tried it putting the key.
So now my PC always connect to this Bthome and to surfing it asks me to login online. And this seems ok. The thing is that I don't want to use it for surfing on the internet. So I tried to change the route table (because by default the system now connects to BTHome):
Code: Select all
sudo ip route del default via 192.168.1.254 <----------(Bthomeipaddress)
sudo ip route add default via 192.168.1.1 <-----------(my router)
sudo sytemctl restart network
This is the table right now that I can surf:
Code: Select all
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 600 0 0 wlp2s0
10.8.0.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp2s0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
Of course I also tried 'sudo systemctl restart NetworkManager' and actually the connected fall and I have to re-connect to internet but I connect to BThome.
So, if you ask yourself how I can now to connect to the router, the reply is simple: I reset the BThome and in that gap of time the system can connect easily to 192.168.1.1
Any help, please? At least I am learning something about routing table.
Kind regards.