James Knott <james.knott@rogers.com> wrote: pburness wrote:
My SuSE desktop has an ip address of 192.168.1.4 and normally accesses the internet via a wireless router with a gateway address of 192.168.1.1 As this gateway link is somewhat unreliable I have an alternative gateway on 192.168.0.1 via a windows XP shared connection. The 192.168.1.1 gateway is ADSL and therefore my preferred route to the internet, but as it is unreliable is it possible to change the addressing on the desktop to use either the 192.168.1.1 or the 192.168.0.1 routes depending upon which one is available? If so how?
You have to change two items, the IP address and default gateway. The gateway is changed with the route command. The IP address can be changed with the ifconfig command or by changing the contents of the config file for the ethernet adapter, in /etc/sysconfig/network. You'd then use ifdown & ifup to restart the adapter. Another method, would be to use profiles, where you set up a profile for each configuration and switch the profile as needed. All said however, wouldn't the preferred method be to find out why your ADSL connection is unreliable and fix that? Preferred solution is to fix the ADSL, but it is beyond my control, I'm too far from the local exchange and the sigal is so weak that the slightest bit of RFI kills it. Phil -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com