On 2/7/06, Walter Dnes <[EMAIL PROTECTED]> wrote: > 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?
Check this: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?style=printable&part=4&chap=3 Bounded interfaces... > > -- > Walter Dnes <[EMAIL PROTECTED]> In linux /sbin/init is Job #1 > My musings on technology and security at http://tech_sec.blog.ca > -- > [email protected] mailing list > > -- Daniel da Veiga Computer Operator - RS - Brazil -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V- PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++ ------END GEEK CODE BLOCK------ -- [email protected] mailing list

