Networking Forums

Networking Forums > Computer Networking > Linux Networking > pppd does not log sometimes

Reply
Thread Tools Display Modes

pppd does not log sometimes

 
 
Robert W.
Guest
Posts: n/a

 
      05-17-2004, 04:03 PM
Hi there,
I have router running as Gateway to the internet using a pppd/pppoe
pair. I grepped /var/log/messages for the messages it writes, when
connecting. But theres is a whole week without any messages. The
uptimes of the machine are seldom longer than a day and the connection
was definitely up and working. So where are the log messages gone?

[root@charles root]# grep pppd /var/log/messages
May 8 08:29:15 charles pppd[3104]: pppd 2.4.1 started by root, uid 0
May 8 08:29:15 charles pppd[3104]: Using interface ppp0
May 8 08:29:15 charles pppd[3104]: Connect: ppp0 <--> /dev/pts/0
May 8 08:29:17 charles pppd[3104]: local IP address 217.229.150.37
May 8 08:29:17 charles pppd[3104]: remote IP address 217.5.98.12
May 15 08:06:10 charles pppd[2594]: pppd 2.4.1 started by root, uid 0
May 15 08:06:10 charles pppd[2594]: Using interface ppp0
May 15 08:06:10 charles pppd[2594]: Connect: ppp0 <--> /dev/pts/0
May 15 08:06:12 charles pppd[2594]: local IP address 217.84.80.29
May 15 08:06:12 charles pppd[2594]: remote IP address 217.5.98.12

I also just see, that neither yesterday nor today (2004/05/17) any
messages of this kind were written. The machine was definitely
inbetween.
System:
[root@charles root]# uname -a
Linux charles 2.4.20-28.7 #1 Thu Dec 18 11:15:04 EST 2003 i586 unknown
[root@charles root]# cat /etc/redhat-release
Red Hat Linux release 7.3 (Valhalla)
[root@charles root]# pppd --version
pppd version 2.4.1
[root@charles root]# syslogd -v
syslogd 1.4.1

Everything is vanilla redhat. I have not made any aditional
modifications.

Thanks in advance
--

Robert...

 
Reply With Quote
 
 
 
 
Clifford Kite
Guest
Posts: n/a

 
      05-17-2004, 05:55 PM
Robert W. <(E-Mail Removed)> wrote:
> Hi there,
> I have router running as Gateway to the internet using a pppd/pppoe
> pair. I grepped /var/log/messages for the messages it writes, when
> connecting. But theres is a whole week without any messages. The
> uptimes of the machine are seldom longer than a day and the connection
> was definitely up and working. So where are the log messages gone?


It seems that the connection has been up a whole week. Otherwise,
without changes to /etc/syslog.conf, there would be pppd messages
generated at each connection.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* I hear and I forget. I see and I remember. I do and I understand.
--Confucius, 551-479 BC */
 
Reply With Quote
 
Robert W.
Guest
Posts: n/a

 
      05-17-2004, 08:20 PM
On Mon, 17 Mai 2004 at 17:55 GMT, Clifford Kite <(E-Mail Removed)> wrote:
>
> It seems that the connection has been up a whole week. Otherwise,
> without changes to /etc/syslog.conf, there would be pppd messages
> generated at each connection.
>

This is definitly not the case. I'm shutting down the box hardly every
night. But another idea: Is syslogd started before or after bringing
up network interfaces. I'll investigate.

--

Robert...

 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      05-18-2004, 12:26 AM
Robert W. <(E-Mail Removed)> wrote:
> On Mon, 17 Mai 2004 at 17:55 GMT, Clifford Kite <(E-Mail Removed)>
> wrote:
>>
>> It seems that the connection has been up a whole week. Otherwise,
>> without changes to /etc/syslog.conf, there would be pppd messages
>> generated at each connection.
>>

> This is definitly not the case. I'm shutting down the box hardly every
> night. But another idea: Is syslogd started before or after bringing
> up network interfaces. I'll investigate.


If you bring up the PPPoE connection during the bootup process then
that could happen, although in that case why would syslog provide any
PPP connection messages at any time?

Actually if the remote doesn't detect the link as being down then
perhaps it would still work without renegotiation on the next boot-up.
That sounds rather unlikely to me. But then I've never used PPPoE.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
 
Reply With Quote
 
Robert W.
Guest
Posts: n/a

 
      05-18-2004, 09:26 AM
On Die, 18 Mai 2004 at 00:26 GMT, Clifford Kite <(E-Mail Removed)> wrote:
> Robert W. <(E-Mail Removed)> wrote:
>> On Mon, 17 Mai 2004 at 17:55 GMT, Clifford Kite <(E-Mail Removed)>
>> wrote:
>>>
>>> It seems that the connection has been up a whole week. Otherwise,
>>> without changes to /etc/syslog.conf, there would be pppd messages
>>> generated at each connection.
>>>

>> This is definitly not the case. I'm shutting down the box hardly every
>> night. But another idea: Is syslogd started before or after bringing
>> up network interfaces. I'll investigate.


Result of Investigation: Yes, the network interfaces are brought up
before syslogd starts.

>
> If you bring up the PPPoE connection during the bootup process then
> that could happen, although in that case why would syslog provide any
> PPP connection messages at any time?


My ISP forces the disconnect at least once in 24h. The reconnect is
logged.

>
> Actually if the remote doesn't detect the link as being down then
> perhaps it would still work without renegotiation on the next boot-up.
> That sounds rather unlikely to me. But then I've never used PPPoE.
>


When the system is shut down, why shouldn't the link be terminated
properly? At least another IP is assigned after reboot.
That would also mean, that I can connect every machine without knowing
the password for my internet-connection because the link is kept
up, doesn't it?

> --
> Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
> PPP-Q&A links, downloads: http://ckite.no-ip.net/



--

Robert...


--

Robert...

 
Reply With Quote
 
Clifford Kite
Guest
Posts: n/a

 
      05-18-2004, 01:24 PM
Robert W. <(E-Mail Removed)> wrote:
> On Die, 18 Mai 2004 at 00:26 GMT, Clifford Kite <(E-Mail Removed)>
> wrote:


> Result of Investigation: Yes, the network interfaces are brought up
> before syslogd starts.


>> If you bring up the PPPoE connection during the bootup process then
>> that could happen, although in that case why would syslog provide any
>> PPP connection messages at any time?


> My ISP forces the disconnect at least once in 24h. The reconnect is
> logged.


Ah, now I understand. It would seem reasonable to start syslogd as
early in the bootup process as is reasonable, but RH apparently doesn't
think so.

>> Actually if the remote doesn't detect the link as being down then
>> perhaps it would still work without renegotiation on the next boot-up.
>> That sounds rather unlikely to me. But then I've never used PPPoE.


> When the system is shut down, why shouldn't the link be terminated
> properly? At least another IP is assigned after reboot.


I have no answer to the question, as the qualifiers in my reply
suggest. That the ISP would fail to notice the connection was
broken even without being notified seemed unlikely. But sometimes
the unlikely is not impossible, and without any experience with
PPPoE or your ISP there was no way for me to know what was and what
wasn't possible.

> That would also mean, that I can connect every machine without knowing
> the password for my internet-connection because the link is kept
> up, doesn't it?


If the gateway (connection) host was down then no. If the gateway host
was up then yes. After all, they do ordinarily connect to the Internet
without knowing the password. But the question is moot now.

--
Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads: http://ckite.no-ip.net/
/* In my book, the first poster to resort to personal abuse in a Usenet
debate loses by default. - Rod Smith */

 
Reply With Quote
 
Bill Unruh
Guest
Posts: n/a

 
      05-18-2004, 03:22 PM
Clifford Kite <(E-Mail Removed)> writes:

]Robert W. <(E-Mail Removed)> wrote:
]> On Die, 18 Mai 2004 at 00:26 GMT, Clifford Kite <(E-Mail Removed)>
]> wrote:

]> Result of Investigation: Yes, the network interfaces are brought up
]> before syslogd starts.

]>> If you bring up the PPPoE connection during the bootup process then
]>> that could happen, although in that case why would syslog provide any
]>> PPP connection messages at any time?

]> My ISP forces the disconnect at least once in 24h. The reconnect is
]> logged.

]Ah, now I understand. It would seem reasonable to start syslogd as
]early in the bootup process as is reasonable, but RH apparently doesn't
]think so.

Well, remember that syslogd has the option of logging its output on a remote
machine. This of course would not work with no network. Ie, one can
argue that syslogd needs the network to be up when it starts.
However, IF you do not use any remote logging, then just change the S
number of syslog Eg, if you come up in kdm/xdm/gdm/... (ie the X login
screen),
cd /etc/rc5.d
mv S12syslog S09syslog
to make it come up befor S10network


]>> Actually if the remote doesn't detect the link as being down then
]>> perhaps it would still work without renegotiation on the next boot-up.
]>> That sounds rather unlikely to me. But then I've never used PPPoE.

]> When the system is shut down, why shouldn't the link be terminated
]> properly? At least another IP is assigned after reboot.

]I have no answer to the question, as the qualifiers in my reply
]suggest. That the ISP would fail to notice the connection was
]broken even without being notified seemed unlikely. But sometimes
]the unlikely is not impossible, and without any experience with
]PPPoE or your ISP there was no way for me to know what was and what
]wasn't possible.

]> That would also mean, that I can connect every machine without knowing
]> the password for my internet-connection because the link is kept
]> up, doesn't it?

]If the gateway (connection) host was down then no. If the gateway host
]was up then yes. After all, they do ordinarily connect to the Internet
]without knowing the password. But the question is moot now.

]--
]Clifford Kite Email: "echo xvgr_yvahk-(E-Mail Removed)|rot13"
]PPP-Q&A links, downloads: http://ckite.no-ip.net/
]/* In my book, the first poster to resort to personal abuse in a Usenet
] debate loses by default. - Rod Smith */

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenSuse 11.1 Kinternet error: "pppd[0] died: pppd options error (exit code 2) Trevor Linux Networking 4 04-22-2009 06:31 PM
pppd: more than 1 ISP-account? Oscar Linux Networking 0 03-11-2005 07:34 PM
shh pppd vpn RR Linux Networking 4 02-24-2004 03:10 AM
pppd goose Linux Networking 2 02-23-2004 03:03 PM
PPPD server routing problem? Mandrake/mgetty/pppd/D-link router martin02 Linux Networking 17 10-06-2003 03:06 PM



1 2 3 4 5 6 7 8 9 10 11