Ok, so I am successfully leaving Windows world behind, and for a couple of months have been happy (most of the time ;-) Slackware Tuxer... But I still get occasional headaches, like this one:
I'm using my laptop in two locations, in the office LAN, where I have a fixed IP address, and connection to the internet through the LAN. On the other location I have a dial-up connection only.
I have configured eth0 to have a static IP and a default route through the gateway on the LAN. When I connect through the dial-up, I have to add default route manually by issuing the command 'route add default ppp0' (when ppp gets connected, it says 'not replacing existing default route to eth0..) I have added another entry for the dial-up DNS in resolv.conf in order to get the names resolved.
It's a Dell laptop, with a PCTEL softmodem, which works great with SoftLink slamr-module. In order to dial out, I need to run slmodemd, which gives me a modem device on /dev/ttySL0.
My questions:
1. How can I configure the dial-up so, that it makes ppp0 as a default route automatically when connected, but leaving eth0 config intact?
2. How should I configure the DNS, as it seems to me that when I have two IPs in resolv.conf (one for LAN and one for the ISP, that is), it slows down the name resolution unnecessarily?
3. How can I include loading slmodemd to the ppp-script?
I have tried to search the forums and the net, but haven't yet figured out how to configure this setting nicely. I also found
http://tldp.org/HOWTO/Adv-Routing-HOWTO/, which was referred in a couple of posts, but I couldn't make much sense out of it. The Gnome Network Configuration tool doesn't want to keep the settings for the dial-up at all, so I can't use that for switching the network profiles either.
Thanks & have a sunny day!