Changing default route
Posted: 29 Jan 2021, 06:22
I have added a wireless adapter, and would like to keep both wired and wireless connections (One leg in in the main network and the wireless is in another network), but I want to make the wireless connection the default route. I can add the Wireless card as a default (0.0.0.0) route and delete the wireed connection default route entry, via TErminal session, but after reboot that goes away and the wired connection is default again. I have also edited the /etc/network/interfaces to set the wireless as default to true, and the wired as default to false, but after reboot it reverts back.
What is the best way to do what I want. Is there a startup script that I can run, that will actually save?
Any ideas are greatly appreciated. I want the 192.168.8.1 gateway to be the default and survive a reboot. (see below)
What is the best way to do what I want. Is there a startup script that I can run, that will actually save?
Any ideas are greatly appreciated. I want the 192.168.8.1 gateway to be the default and survive a reboot. (see below)
Code: Select all
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.200.1 0.0.0.0 UG 0 0 0 eth0
192.168.8.0 0.0.0.0 255.255.255.0 U 1 0 0 wlan0
192.168.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0