----- Original Message -----
From: "Duncan Sands" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Daniel Hunt" <[EMAIL PROTECTED]>
Sent: Sunday, December 07, 2003 9:57 PM
Subject: [speedtouch] Re: Redhat 9 - Problem with pppd
>
> > that's my /etc/ppp/options file there. to run, i just type "pppd" now.
but
> > i had to comment out the nas0 and 8.35 as it didn't know what they were
and
> > gave me errors ....
> > should i be using atm or pppoe?? as far as i know IOL use PPPOE ...
infact
> > i'm sure of(IOL is my adsl provider)
>
> Unfortunately I don't know anything about pppoe (this is a problem...),
> maybe someone else can help?
>
> Ciao,
>
> Duncan.
>
In IPCop, we do in perl code for ATM modem and PPPoE
if ($pppsettings {'METHOD'} eq 'PPPOE') {
$iface = "nas0";
if (open(FILE, ">${swroot}/red/device")) { print FILE $iface; close
FILE; }
$netsettings{'RED_DEV'} = $iface;
system ('/sbin/modprobe br2684');
system ('/usr/local/bin/br2684ctl', '-b', '-c', '0', '-e',
$pppsettings{'ENCAP'}, '-a', "0.$pppsettings{'VPI'}.$pppsettings{'VCI'}");
if (system ('/bin/ps -ef | /bin/grep -q [b]r2684ctl')) {
&log('PPPoE bridge fail');
exit 1;
} else {
&log('PPPoE bridge success');
}
sleep 3;
system ('/sbin/ifconfig',"$iface",'up');
&dopppoedial();
the dopppoe sub use ther rp pppoe user mode program and do that
sub dopppoedial
{
my @pppcommand = ('/usr/sbin/pppd', 'pty');
my @pppoecommand = ('/usr/sbin/pppoe', '-p','/var/run/pppoe.pid','-I',
$netsettings{'RED_DEV'}, '-T', '80', '-U', '-m', '1412');
if ($pppsettings{'SERVICENAME'}) {
push(@pppoecommand, ('-S', $pppsettings{'SERVICENAME'})); }
if ($pppsettings{'CONCENTRATORNAME'}) {
push(@pppoecommand, ('-C', $pppsettings{'CONCENTRATORNAME'})); }
push(@pppcommand, "@pppoecommand");
if ($pppsettings{'DNS'} eq 'Automatic') {
push(@pppcommand, ('usepeerdns'));
}
if ($pppsettings{'RECONNECTION'} eq 'persistent') {
push(@pppcommand, ('persist'));
} else {
if ($pppsettings{'TIMEOUT'} != 0) {
my $seconds = $pppsettings{'TIMEOUT'} * 60;
push(@pppcommand, ('idle', "$seconds"));
}
if ($pppsettings{'RECONNECTION'} eq 'dialondemand') {
push (@pppcommand, ('demand','connect','/bin/true'));
}
push (@pppcommand,
('active-filter',
'outbound and not icmp[0] == 3 and not tcp[13] & 4 != 0 ' ));
}
push(@pppcommand, ('noipdefault', 'default-asyncmap',
'defaultroute', 'hide-password', 'local', 'holdoff', $holdoff,
'mtu', '1492', 'mru', '1492', 'noaccomp', 'noccp',
'nobsdcomp', 'nodeflate', 'nopcomp', 'novj', 'novjccomp',
'user', $pppsettings{'USERNAME'}, 'lcp-echo-interval', '20',
'lcp-echo-failure', '3', 'lcp-max-configure', '50',
'maxfail',$pppsettings{'MAXRETRIES'}));
system (@pppcommand);
}
when I try to use the pppoe plugin instead of the user-mode program in the
sub , I have strange message at the start and an oops at the session end but
it is connected.
system ('/sbin/modprobe pppoe');
my @pppcommand = ('/usr/sbin/pppd');
push(@pppcommand,'plugin','/usr/lib/pppd/2.4.1/pppoe.so',"$netsettings{'RED_
DEV'}");
if ($pppsettings{'DNS'} eq 'Automatic') {
push(@pppcommand, ('usepeerdns'));
}
if ($pppsettings{'RECONNECTION'} eq 'persistent') {
push(@pppcommand, ('persist'));
} else {
if ($pppsettings{'TIMEOUT'} != 0) {
my $seconds = $pppsettings{'TIMEOUT'} * 60;
push(@pppcommand, ('idle', "$seconds"));
}
if ($pppsettings{'RECONNECTION'} eq 'dialondemand') {
push (@pppcommand, ('demand','connect','/bin/true'));
}
push (@pppcommand,
('active-filter',
'outbound and not icmp[0] == 3 and not tcp[13] & 4 != 0 ' ));
}
push(@pppcommand, ('noipdefault', 'defaultroute', 'hide-password',
'ipcp-accept-local',
'ipcp-accept-remote', 'passive', 'noccp','nopcomp', 'novjccomp',
'holdoff', $holdoff,
'user', $pppsettings{'USERNAME'}, 'lcp-echo-interval', '20',
'lcp-echo-failure', '3', 'lcp-max-configure', '50',
'maxfail',$pppsettings{'MAXRETRIES'}));
something should be not totaly good but I don't know at this time what.
Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se d�sinscrire : mailto:[EMAIL PROTECTED]