Yesterday I set up wvdial to replace chat in order to connect to my ISP. When I run wvdial from the command line everything works perfectly. However if wvdial is called by pppd from the /etc/sysconfig/network-script/ifup-ppp script the connection is immediately terminated with "IPCP terminated by peer" and "LCP terminated by peer" errors. Does anyone have any idea why my setup works if wvdial is used to call the ISP and then start pppd and why it does not if pppd is started and just uses wvdial to dial? I have included some of the pertinent logs and config files (with edited username/passwords). I am sure you will let me know if I omitted anything. Also I am running Enigma with RedHat kernel 2-4.9-13smp. Suggestions are greatly appreciated. Thanks.
/etc/wvdial.conf: [Dialer Defaults] Modem = /dev/ttyS0 Baud = 115200 Init1 = ATZ SetVolume = 1 Dial Command = ATDT Init4 = ATM0 Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 Phone = 7202120303 Username = dummy Password = xxxxxxxx /etc/ppp/options: lock noauth crtscts defaultroute /etc/sysconfig/network-scripts/ifcfg-ppp0 DEVICE="ppp0" ONBOOT="yes" USERCTL="yes" MODEMPORT="/dev/ttyS0" LINESPEED="115200" PERSIST="yes" DEFABORT="yes" DEBUG="yes" INITSTRING="AT&FM0" DEFROUTE="yes" HARDFLOWCTL="yes" ESCAPECHARS="no" PPPOPTIONS="" PAPNAME="" REMIP="" NETMASK="" IPADDR="" MRU="1500" MTU="1500" DISCONNECTTIMEOUT="" RETRYTIMEOUT="5" BOOTPROTO="none" PEERDNS="no" WVDIALSECT="Phone1" Excerpt from /etc/sysconfig/network-scripts/ifup-ppp containing wvdial modification (otherwise stock). if [ "${WVDIALSECT}" ]; then # echo "connect \"/usr/bin/wvdial --remotename ${DEVNAME} --chat '${WVDIALSECT}'\"" >> ${PEERCONF} echo "connect \"/usr/bin/wvdial --chat\"" >> ${PEERCONF} else echo "connect \"/usr/sbin/chat $chatdbg -v -f ${CHATSCRIPT}\"" >> ${PEERCONF} fi /etc/ppp/peers/wvdial: noauth name wvdial /etc/ppp/peers/ppp0 connect "/usr/bin/wvdial --chat" log entries Apr 8 19:55:13 nureyev ifup-ppp: pppd started for ppp0 on /dev/ttyS0 at 115200 Apr 8 19:55:13 nureyev pppd[7671]: pppd 2.4.1 started by root, uid 0 Apr 8 19:55:14 nureyev WvDial: WvDial: Internet dialer version 1.41 Apr 8 19:55:14 nureyev WvDial: Initializing modem. Apr 8 19:55:14 nureyev WvDial: Sending: ATZ Apr 8 19:55:14 nureyev WvDial: ATZ Apr 8 19:55:14 nureyev WvDial: OK Apr 8 19:55:14 nureyev WvDial: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 Apr 8 19:55:14 nureyev WvDial: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 Apr 8 19:55:14 nureyev WvDial: OK Apr 8 19:55:14 nureyev WvDial: Sending: ATM0 Apr 8 19:55:15 nureyev WvDial: ATM0 Apr 8 19:55:15 nureyev WvDial: OK Apr 8 19:55:15 nureyev WvDial: Modem initialized. Apr 8 19:55:15 nureyev WvDial: Sending: ATDT 7202120303 Apr 8 19:55:15 nureyev WvDial: Waiting for carrier. Apr 8 19:55:15 nureyev WvDial: ATDT 7202120303 Apr 8 19:55:43 nureyev WvDial: CONNECT Apr 8 19:55:43 nureyev WvDial: Carrier detected. Waiting for prompt. Apr 8 19:55:44 nureyev WvDial: ** Ascend TNT Terminal Server ** Apr 8 19:55:44 nureyev WvDial: Login: Apr 8 19:55:44 nureyev WvDial: Looks like a login prompt. Apr 8 19:55:44 nureyev WvDial: Sending: dummy Apr 8 19:55:44 nureyev WvDial: dummy Apr 8 19:55:44 nureyev WvDial: Password: Apr 8 19:55:44 nureyev WvDial: Looks like a password prompt. Apr 8 19:55:44 nureyev WvDial: Sending: (password) Apr 8 19:55:47 nureyev WvDial: ascend% Apr 8 19:55:47 nureyev WvDial: Hmm... a prompt. Sending "ppp". Apr 8 19:55:47 nureyev WvDial: ppp Apr 8 19:55:47 nureyev WvDial: Entering PPP Session. Apr 8 19:55:47 nureyev WvDial: IP address is 209.60.72.239 Apr 8 19:55:47 nureyev WvDial: MTU is 1524. Apr 8 19:55:47 nureyev WvDial: Looks like a welcome message. Apr 8 19:55:47 nureyev pppd[7671]: Serial connection established. Apr 8 19:55:47 nureyev pppd[7671]: Using interface ppp0 Apr 8 19:55:47 nureyev pppd[7671]: Connect: ppp0 <--> /dev/ttyS0 Apr 8 19:55:50 nureyev pppd[7671]: local IP address 192.168.1.1 Apr 8 19:55:50 nureyev pppd[7671]: remote IP address 209.60.72.6 Apr 8 19:55:50 nureyev pppd[7671]: IPCP terminated by peer Apr 8 19:55:51 nureyev pppd[7671]: LCP terminated by peer Apr 8 19:55:51 nureyev su(pam_unix)[7744]: session opened for user root by (uid=0) Apr 8 19:55:51 nureyev su(pam_unix)[7744]: session closed for user root Apr 8 19:55:51 nureyev su(pam_unix)[7795]: session opened for user root by (uid=0) Apr 8 19:55:51 nureyev su(pam_unix)[7795]: session closed for user root Apr 8 19:55:52 nureyev pppd[7671]: Hangup (SIGHUP) Apr 8 19:55:52 nureyev pppd[7671]: Modem hangup Apr 8 19:55:52 nureyev pppd[7671]: Connection terminated. Apr 8 19:55:52 nureyev pppd[7671]: Connect time 0.1 minutes. Apr 8 19:55:52 nureyev pppd[7671]: Sent 74 bytes, received 74 bytes. Apr 8 19:55:53 nureyev pppd[7671]: Exit. Here is the interactive log which I get by running wvdial at the command prompt. It looks similar to the pppd started log, but this works. # wvdial --> WvDial: Internet dialer version 1.41 --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0 OK --> Sending: ATM0 ATM0 OK --> Modem initialized. --> Sending: ATDT 7202120303 --> Waiting for carrier. ATDT 7202120303 CONNECT --> Carrier detected. Waiting for prompt. ** Ascend TNT Terminal Server ** Login: --> Looks like a login prompt. --> Sending: dummy dummy Password: --> Looks like a password prompt. --> Sending: (password) ascend% --> Hmm... a prompt. Sending "ppp". ppp Entering PPP Session. IP address is 209.60.72.239 MTU is 1524. --> Looks like a welcome message. --> Starting pppd at Mon Apr 8 19:38:46 2002 -- Paul ([EMAIL PROTECTED]) _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list