Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-16-2004, 12:49 PM   #1
LQ Newbie
Registered: Apr 2004
Location: Europe...
Distribution: Slackware 9.1
Posts: 8

Rep: Reputation: 0
Two network configurations, dial-up and static IP?

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, 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!
Old 05-24-2004, 06:31 PM   #2
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
check out wvdial for your ppp settings
and create a script that creates/copies a new resolv.conf file depending on your configuration


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Static Network settings scott4957 Linux - Wireless Networking 2 11-16-2005 10:58 AM
Network Changes from Static to DHCP RemusX2 Linux - Networking 5 06-15-2005 02:15 PM
Is there any static ARP for static IP network? linux_lover2005 Linux - Networking 2 05-18-2005 01:01 PM
nmap finding c++ compiler/ network configurations nanoprobe SUSE / openSUSE 2 04-07-2005 04:32 PM
Multiple network configurations at boot time. HOW? FairyFighter Linux - General 14 03-10-2004 06:04 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration