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? Phil
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?
On Sun, 2005-03-06 at 15:59, James Knott wrote:
pburness wrote: 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?
I would tend to agree here, find out why the adsl connection is giving you problems. Also how the the XP box connect to the internet? If it is through the same adsl connection then you may have the same problems. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 * Only reply to the list please* "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
Ken Schneider <suse-list@bout-tyme.net> wrote: On Sun, 2005-03-06 at 15:59, James Knott wrote:
pburness wrote: 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?
I would tend to agree here, find out why the adsl connection is giving you problems. Also how the the XP box connect to the internet? If it is through the same adsl connection then you may have the same problems.
XP machine is a laptop and I can move it by the telephone socket. I can then dial an ISP. Unfortunately the desktop is the other side of the building. Phil -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 * Only reply to the list please* "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge -- 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
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
On Sunday 06 Mar 2005 20:08 pm, 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
Which link? The desktop -> gateway link or the gateway -> ADSL link? Is the desktop -> gateway link wireless? How far apart are they and are there any obstructions or interference sources? Is the gateway plugged into the phone master socket, or an extension? have you tried a different microfilter? how long is the cable from the gateway to the phone socket? is it damaged? how many other devices are attached to the phone line? what are they? ......
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,
I take it from this that the XP box has a dialup connection. If your gateway is a linux box then you could set it up to dial out if the ADSL is not available.
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 could write a script to change the IP address, default gateway, and DNS if necessary. look at man ifconfig and man route for the first two. Dylan
Phil
-- "I see your Schwartz is as big as mine" -Dark Helmet
Dylan <dylan@dylan.me.uk> wrote: On Sunday 06 Mar 2005 20:08 pm, 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
Which link? The desktop -> gateway link or the gateway -> ADSL link? Is the desktop -> gateway link wireless? How far apart are they and are there any obstructions or interference sources? Is the gateway plugged into the phone master socket, or an extension? have you tried a different microfilter? how long is the cable from the gateway to the phone socket? is it damaged? how many other devices are attached to the phone line? what are they? ...... The gateway -> ADSL link is unreliable, BT have ssaid they can not support the link as it's too far from the exchange and subject to too much RFI. :-(
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,
I take it from this that the XP box has a dialup connection. If your gateway is a linux box then you could set it up to dial out if the ADSL is not available. Unfortunately the linux box is a long way away from the phone socket (which only has the router and a phone connected, no extensions). I could have an extension fitted but it would be a fair bit of effort.
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 could write a script to change the IP address, default gateway, and DNS if necessary. look at man ifconfig and man route for the first two. Dylan
Phil
-- "I see your Schwartz is as big as mine" -Dark Helmet -- 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
pburness wrote:
Dylan <dylan@dylan.me.uk> wrote: On Sunday 06 Mar 2005 20:08 pm, pburness wrote:
...
The gateway -> ADSL link is unreliable, BT have ssaid they can not support the link as it's too far from the exchange and subject to too much RFI. :-(
What speed do you have ? We had the same problem here at our office. The original speed was 2048/512 kbps. This was very unreliable. The people from the telephone company switched it down to 1024/256 kbps, and the quality is acceptable. Of course we lost bandwidth, but we don't really need speed. BT saying they can not support the line is BS. They accept money for it, don't they ? -- Met vriendelijke groeten, Koenraad Lelong R&D Manager ACE electronics n.v.
On Monday 07 March 2005 17:07, Koenraad Lelong wrote:
pburness wrote:
Dylan <dylan@dylan.me.uk> wrote: On Sunday 06 Mar 2005 20:08 pm, pburness wrote:
...
The gateway -> ADSL link is unreliable, BT have ssaid they can not support the link as it's too far from the exchange and subject to too much RFI. :-(
What speed do you have ? We had the same problem here at our office. The original speed was 2048/512 kbps. This was very unreliable. The people from the telephone company switched it down to 1024/256 kbps, and the quality is acceptable. Of course we lost bandwidth, but we don't really need speed. BT saying they can not support the line is BS. They accept money for it, don't they ?
Technically, there is a maximum distance (wirelength) from the exchange the the ADSL modem can be for different speeds.... But if they cannot support it they should refund the money they took for it! Jerry
-- Met vriendelijke groeten, Koenraad Lelong R&D Manager ACE electronics n.v.
Jerry Westrick <jerry@westrick.com> wrote: On Monday 07 March 2005 17:07, Koenraad Lelong wrote:
pburness wrote:
Dylan wrote: On Sunday 06 Mar 2005 20:08 pm, pburness wrote:
...
The gateway -> ADSL link is unreliable, BT have ssaid they can not support the link as it's too far from the exchange and subject to too much RFI. :-(
What speed do you have ? We had the same problem here at our office. The original speed was 2048/512 kbps. This was very unreliable. The people from the telephone company switched it down to 1024/256 kbps, and the quality is acceptable. Of course we lost bandwidth, but we don't really need speed. BT saying they can not support the line is BS. They accept money for it, don't they ?
Technically, there is a maximum distance (wirelength) from the exchange the the ADSL modem can be for different speeds....
But if they cannot support it they should refund the money they took for it!
In fairness they have offered to refund the money in full, but the alternative is that they mark my phone number as unsuitable and then even if the technology improves at a later date I'll have a terrible job getting reconnected. Also, I'd have to go back to 56k modem with maximum 2hr connection period and maximum online time of 150hrs per month. :-(
Jerry
-- Met vriendelijke groeten, Koenraad Lelong R&D Manager ACE electronics n.v.
-- 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
participants (6)
-
Dylan
-
James Knott
-
Jerry Westrick
-
Ken Schneider
-
Koenraad Lelong
-
pburness