November 24, 2024, 02:13:39 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: kppp and local network problem  (Read 5017 times)

Offline ricardo13

  • New Member
  • Posts: 2
kppp and local network problem
« on: August 31, 2004, 04:22:47 PM »
Pls help me with one problem. Distro is FedoraCore 1.
I have local network : 2 machines - 2 ethernet cards via cross-cable

#this is /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.1 epox.localdomain epox
192.168.0.2 acer.localdomain acer

1st machine (i.e. epox) is connected to i-net provider with modem (/dev/ttyS0)
Connection is made with special number 955 with no password (recognition by phone number). Also there is no need to assign DNS and local IP address - it is done automatically
by provider.

I use kppp for dial-up.

When everything is going smoothly correct output is:
Aug 23 11:32:19 epox pppd[9863]: Using interface ppp0
Aug 23 11:32:19 epox pppd[9863]: Connect: ppp0 <--> /dev/ttyS0
Aug 23 11:32:23 epox pppd[9863]: local IP address 211.120.4.160
Aug 23 11:32:23 epox pppd[9863]: remote IP address 211.120.4.129
Aug 23 11:32:23 epox pppd[9863]: primary DNS address 211.120.0.1
Aug 23 11:32:23 epox pppd[9863]: secondary DNS address 211.120.4.1

But sometimes I receive following output (modem hangs up):
Aug 23 11:30:49 epox pppd[9819]: Using interface ppp0
Aug 23 11:30:49 epox pppd[9819]: Connect: ppp0 <--> /dev/ttyS0
Aug 23 11:30:50 epox pppd[9819]: Unsupported protocol 'CallBack Control Protocol (CBCP)' (0xc029) received
Aug 23 11:30:50 epox pppd[9819]: local IP address 192.168.0.1
Aug 23 11:30:50 epox pppd[9819]: remote IP address 211.120.1.251
Aug 23 11:30:50 epox pppd[9819]: primary DNS address 211.120.0.1
Aug 23 11:30:50 epox pppd[9819]: secondary DNS address 211.120.4.1
Aug 23 11:30:50 epox pppd[9819]: IPCP terminated by peer
Aug 23 11:30:50 epox pppd[9819]: LCP terminated by peer
Aug 23 11:30:51 epox pppd[9819]: Hangup (SIGHUP)

In this case pppd (as far as I understand) reads local IP address for some reason and drops
connection immediately.

How this problem can be solved?

# This is output of "route" command
Destination Gateway Genmask Flags Metric Ref Use Iface
nas-6-lo.comnet * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default nas-6-lo.comnet 0.0.0.0 UG 0 0 0 ppp0

/etc/resolv.conf is empty (the following is created during dialing)
nameserver 211.120.0.1 #kppp temp entry
nameserver 211.120.4.1 #kppp temp entry

I tried to include there "search localhost" with no success.

Offline ricardo13

  • New Member
  • Posts: 2
kppp and local network problem
« Reply #1 on: September 07, 2004, 01:33:09 PM »
Nobody knows?
Why kppp (pppd) takes my local IP 192.168.0.1 ?
Where is my mistake ?
I have to disable local_network_service in order to login to internet.