I have two routers with twi different ISPs (of course, I am going to switch one off.)
The old router (192.168.188.1) is connected via wifi with the interface wlp4s0
The new router (192.168.178.1) is connected via ethernet with the interface enp0s31f6
I would like to have access to both networks and using the new router as default gateway.
If turn on the ethernet interface I have access to the new network and to internet but when I turn on the wifi interface, I lose the internet access.
I think this is normal since I have a double default route on the routing table.
Only wifi: (internet OK)
Code: Select all
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.188.1 0.0.0.0 UG 600 0 0 wlp4s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 wlp4s0
192.168.188.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp4s0
Only ethernet: (internet OK)
Code: Select all
0.0.0.0 192.168.178.1 0.0.0.0 UG 100 0 0 enp0s31f6
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp0s31f6
192.168.178.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s31f6
Both : (internet NOT OK)
Code: Select all
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.178.1 0.0.0.0 UG 100 0 0 enp0s31f6
0.0.0.0 192.168.188.1 0.0.0.0 UG 600 0 0 wlp4s0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp0s31f6
192.168.178.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s31f6
192.168.188.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp4s0
So I deleted the unwanted entry:
Code: Select all
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.178.1 0.0.0.0 UG 100 0 0 enp0s31f6
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp0s31f6
192.168.178.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s31f6
192.168.188.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp4s0
But I have internet access
What is wrong ?
Thanks