On Sun, Feb 05, 2006 at 09:04:30PM +0100, martin nicolas wrote

> You may also need to adjust your routes :

  While we're on the subject of 2 IP addresses on 1 machine, is there a
way for ppp0 to co-exist with eth0?  I use a 4-port ADSL modem/router.
On the few occasions that I fall back to dialup (mostly occasional tests
to confirm it still works), I have to run the following (with
appropriate entries in /etc/sudoers.conf)...

~/bin/dialup to connect to dialup

#!/bin/bash
/usr/bin/sudo /sbin/ifconfig eth0 down
/usr/bin/sudo /usr/bin/cp -f /etc/ssmtp/295.ssmtp.conf /etc/ssmtp/ssmtp.conf
/usr/bin/sudo /usr/sbin/pon 295caext


~/bin/dialdown to re-connect to eth0

#!/bin/bash
/usr/bin/sudo /usr/sbin/poff
/usr/bin/sudo /usr/bin/cp -f /etc/ssmtp/istop.ssmtp.conf /etc/ssmtp/ssmtp.conf
/usr/bin/sudo /etc/init.d/net.eth0 restart

  Is there a way use dialup without tearing down eth0?

-- 
Walter Dnes <[EMAIL PROTECTED]> In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
-- 
gentoo-user@gentoo.org mailing list

Reply via email to