(E-Mail Removed) (Alan Baker) writes:
]ifconfig -a...
]lo Link encap:Local Loopback
] inet addr:127.0.0.1 Mask:255.0.0.0
] UP LOOPBACK RUNNING MTU:16436 Metric:1
] RX packets:70 errors:0 dropped:0 overruns:0 frame:0
] TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
] collisions:0 txqueuelen:0
] RX bytes:6146 (6.0 Kb) TX bytes:6146 (6.0 Kb)
]
]ppp0 Link encap:Point-to-Point Protocol
] inet addr:10.64.64.64 P-t-P:10.112.112.112
]Mask:255.255.255.255
] UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
] RX packets:0 errors:0 dropped:0 overruns:0 frame:0
] TX packets:1 errors:0 dropped:1068 overruns:0 carrier:0
] collisions:0 txqueuelen:3
] RX bytes:0 (0.0 b) TX bytes:55 (55.0 b)
]netstat -nr...
]Kernel IP routing table
]Destination Gateway Genmask Flags MSS Window
]irtt Iface
]10.112.112.112 0.0.0.0 255.255.255.255 UH 0 0
]0 ppp0
]127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
]0 lo
]0.0.0.0 10.112.112.112 0.0.0.0 UG 0 0
]0 ppp0
]/etc/ppp/options...
]# Use modem control lines
]modem
]# Use hardware flow control
]crtscts
]# Lock the serial port for exclusive use
]lock
]# Don't detach from controlling tty
]-detach
Why nodetach?
]# Best for firewalls unless peer requests smaller packets
]mtu 1500
Always best to leave mtu at default unless there are good reasons not to.
]# Override default kdebug 7
]kdebug 1
Does not really exist anymore.
]# Override default retransmission timeout of 3 seconds
]ipcp-restart 1
]# Faster compression than 'deflate'
]bsdcomp 15,15
What is your system you connect to? Unless it is a linux system, this is
userless. And even if it is a linux system, the modem does compression
anyway.
]# No special hex control characters
]asyncmap 0
It is is a Windows peer then a better choise is asyncmap a0000
]# Use peer as default gateway
]defaultroute
]# pppd should disconnect if the link is idle for n seconds.
]idle 900
Do you want this?
I thought you wanted it to remain connected?
]# Disable the IPXCP and IPX protocols.
]noipx
]# Enable debugging
]debug
And you need to have a line like
local2.*;daemon.* /var/log/ppplog
in /etc/syslog.conf
]syslog messages at boot time...
]Sep 25 03:29:33 sjpcdialup kernel: Serial driver version 5.05c
](2001-07-08) with
] MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
]Sep 25 03:29:33 sjpcdialup kernel: ttyS1 at 0x02f8 (irq = 3) is a
]ST16650V2
]Sep 25 03:29:33 sjpcdialup kernel: ttyS2 at 0x03e8 (irq = 4) is a
]ST16650V2
]Sep 25 03:29:33 sjpcdialup kernel: ttyS3 at 0x02e8 (irq = 3) is a
]ST16650V2
]<snip>
]Sep 25 03:29:44 sjpcdialup ifup-ppp: pppd started for ppp0 on
]/dev/ttyS1 at 57600
]Sep 25 03:29:44 sjpcdialup kernel: CSLIP: code copyright 1989 Regents
]of the University of California
]Sep 25 03:29:44 sjpcdialup kernel: PPP generic driver version 2.4.2
]Sep 25 03:29:44 sjpcdialup pppd[1153]: pppd 2.4.1 started by root, uid
]0
]Sep 25 03:29:44 sjpcdialup pppd[1153]: Using interface ppp0
]Sep 25 03:29:44 sjpcdialup pppd[1153]: local IP address 10.64.64.64
]Sep 25 03:29:44 sjpcdialup pppd[1153]: remote IP address
]10.112.112.112
You forgot to add that line to /etc/syslog.conf and as a result you get
no debug messages. Do the above so you can see what is happening.
]syslog messages for successful dial-on-demand invocation...
]Sep 20 14:51:59 sjpcdialup pppd[1151]: Starting link
]Sep 20 14:52:25 sjpcdialup pppd[1151]: Serial connection established.
]Sep 20 14:52:25 sjpcdialup pppd[1151]: Connect: ppp0 <--> /dev/ttyS1
]Sep 20 14:52:26 sjpcdialup pppd[1151]: Local IP address changed to
]209.68.147.86
]Sep 20 14:52:27 sjpcdialup su(pam_unix)[7220]: session opened for user
]root by (uid=0)
]Sep 20 14:52:27 sjpcdialup su(pam_unix)[7220]: session closed for user
]root
]syslog messages when dial-on-demand wakes up correctly but connect
]script fails...
]Sep 24 14:20:14 sjpcdialup starttzo: Calling TZO.Signon...
]Sep 24 14:20:15 sjpcdialup pppd[1161]: Starting link
]Sep 24 14:21:01 sjpcdialup pppd[1161]: Connect script failed
no information here because you did not tell syslog where to put the
debugging messages.
]
]
]syslog messages when dial-on-demand does not wake up...
]<null>