Date: Thu, 9 Oct 2003 09:23:17 -0400 From: "fbsd_user" <fbsd_user@a1poweruser.com> To: "Edwet" <elpiojo@globaldial.com>, <freebsd-questions@freebsd.org> Subject: RE: dial ppp problem Message-ID: <MIEPLLIBMLEEABPDBIEGKEPLEIAA.fbsd_user@a1poweruser.com> In-Reply-To: <001301c38e23$743cff60$0200a8c0@elpiojo>
next in thread | previous in thread | raw e-mail | index | archive | help
Looks like you have coding error in your ppp.conf Change set ifaddr 0 0 127.2.2.2 to set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 Do not use manual mode to start ppp, use this command ppp -auto papchap -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Edwet Sent: Thursday, October 09, 2003 1:09 AM To: freebsd-questions@freebsd.org Subject: dial ppp problem I'm a newbie I would like to for support to freebsd experts around the world, about my ppp problem I've got 2 computers: 1. Installed with freebsd 5.1 plus 1 external modem dynalink (33.6) , IP address 192.168.0.1 2. Installed with windows XP, IP address 192.168.0.2 the network with this 2 computers doesn't have any problem since I can ping both machines. everytime I execute the ppp command from the freebsd the modem will dial my ISP number however after dialling sequence and authentication, I still can't get to the net (ping, traceroute or whatever), I've been doing a lot of reseach in the net (google.com/bsd ; freebsd.org ; defcon1.org ; freebsddiarries ; etc) about my problem but probably I miss some important URLs if you guys can enlighten me I would be grateful. here's the log from the freebsd box Log modem ------------------- Working in interactive mode Using interface: tun0 ppp ON jester> term deflink: Entering terminal mode on /dev/cuaa0 Type `~?' for help atdt92238000 CARRIER 31200 PROTOCOL: LAP-M COMPRESSION: V.42BIS CONNECT 38400 User Access Verification login: ---- Password: Entering PPP mode. Async interface address is unnumbered (FastEthernet0) Your IP address is 202.74.163.135. MTU is 1500 bytes Header compression is on. ppp ON jester> PPp ON jester> Warning: ff02:4::/32: Change route failed: errno: Network is unreachable PPP ON jester> This morning I've tried to dial again i've got this error message from ppp PPP ON jester> Oct 9 10:39:26 jester routed[229]: IP_ADD_MEMBERSHIP ALLHOSTS: Can't assign requested address Oct 9 10:39:26 jester routed[229]: setsopckopt(IP_ADD_MEMBERSHIP RIP): Can't assign requested address Oct 9 10:39:26 jester routed[229]: ignore RTM_CHANGE without mask ppp ON jester> Oct 9 10:43:51 jester routed[229]: ignore RTM_CHANGE without mask ppp ON jester> Oct 9 10:43:51 jester routed[229]: interface tun0 to 202.74.164.5 turned off ppp.log ----------------- Oct 8 17:11:53 jester ppp[577]: tun0: Command: /dev/ttyp0: term Oct 8 17:11:53 jester ppp[577]: tun0: Phase: bundle: Establish Oct 8 17:11:53 jester ppp[577]: tun0: Phase: deflink: closed -> opening Oct 8 17:11:53 jester ppp[577]: tun0: Phase: deflink: Connected! Oct 8 17:11:53 jester ppp[577]: tun0: Phase: deflink: opening -> carrier Oct 8 17:11:54 jester ppp[577]: tun0: Phase: deflink: /dev/cuaa0 doesn't support CD Oct 8 17:11:54 jester ppp[577]: tun0: Phase: deflink: carrier -> ready Oct 8 17:12:36 jester ppp[577]: tun0: Phase: deflink: PPP packet detected, coming up Oct 8 17:12:36 jester ppp[577]: tun0: Phase: deflink: ready -> carrier Oct 8 17:12:36 jester ppp[577]: tun0: Phase: deflink: carrier -> lcp Oct 8 17:12:36 jester ppp[577]: tun0: LCP: FSM: Using "deflink" as a transport Oct 8 17:12:36 jester ppp[577]: tun0: LCP: deflink: State change Initial --> Closed Oct 8 17:12:36 jester ppp[577]: tun0: LCP: deflink: State change Closed --> Stopped Oct 8 17:12:37 jester ppp[577]: tun0: LCP: deflink: LayerStart Oct 8 17:12:37 jester ppp[577]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped Oct 8 17:12:37 jester ppp[577]: tun0: LCP: ACFCOMP[2] Oct 8 17:12:37 jester ppp[577]: tun0: LCP: PROTOCOMP[2] Oct 8 17:12:37 jester ppp[577]: tun0: LCP: ACCMAP[6] 0x00000000 Oct 8 17:12:37 jester ppp[577]: tun0: LCP: MRU[4] 1500 Oct 8 17:12:37 jester ppp[577]: tun0: LCP: MAGICNUM[6] 0xbf3a62ae Oct 8 17:12:37 jester ppp[577]: tun0: LCP: deflink: State change Stopped --> Req-Sent Oct 8 17:12:38 jester ppp[577]: tun0: LCP: deflink: RecvConfigAck(1) state = Req-Sent Oct 8 17:12:38 jester ppp[577]: tun0: LCP: ACFCOMP[2] Oct 8 17:12:38 jester ppp[577]: tun0: LCP: PROTOCOMP[2] Oct 8 17:12:38 jester ppp[577]: tun0: LCP: ACCMAP[6] 0x00000000 Oct 8 17:12:38 jester ppp[577]: tun0: LCP: MRU[4] 1500 Oct 8 17:12:38 jester ppp[577]: tun0: LCP: MAGICNUM[6] 0xbf3a62ae Oct 8 17:12:38 jester ppp[577]: tun0: LCP: deflink: State change Req-Sent --> Ack-Rcvd Oct 8 17:12:38 jester ppp[577]: tun0: LCP: deflink: RecvConfigReq(118) state = Ack-Rcvd Oct 8 17:12:38 jester ppp[577]: tun0: LCP: ACCMAP[6] 0x000a0000 Oct 8 17:12:38 jester ppp[577]: tun0: LCP: MAGICNUM[6] 0xc81b4317 Oct 8 17:12:38 jester ppp[577]: tun0: LCP: PROTOCOMP[2] Oct 8 17:12:38 jester ppp[577]: tun0: LCP: ACFCOMP[2] Oct 8 17:12:38 jester ppp[577]: tun0: LCP: deflink: SendConfigAck(118) state = Ack-Rcvd Oct 8 17:12:38 jester ppp[577]: tun0: LCP: ACCMAP[6] 0x000a0000 Oct 8 17:12:38 jester ppp[577]: tun0: LCP: MAGICNUM[6] 0xc81b4317 Oct 8 17:12:38 jester ppp[577]: tun0: LCP: PROTOCOMP[2] Oct 8 17:12:38 jester ppp[577]: tun0: LCP: ACFCOMP[2] Oct 8 17:12:38 jester ppp[577]: tun0: LCP: deflink: State change Ack-Rcvd --> Opened Oct 8 17:12:38 jester ppp[577]: tun0: LCP: deflink: LayerUp Oct 8 17:12:38 jester ppp[577]: tun0: LCP: deflink: SendIdent(0) state = Opened Oct 8 17:12:38 jester ppp[577]: tun0: LCP: MAGICNUM bf3a62ae Oct 8 17:12:38 jester ppp[577]: tun0: LCP: TEXT user-ppp 3.1 (built Jun 5 2003) Oct 8 17:12:38 jester ppp[577]: tun0: CCP: FSM: Using "deflink" as a transport Oct 8 17:12:38 jester ppp[577]: tun0: CCP: deflink: State change Initial --> Closed Oct 8 17:12:38 jester ppp[577]: tun0: CCP: deflink: LayerStart. Oct 8 17:12:38 jester ppp[577]: tun0: CCP: MPPE: Not usable without CHAP81 Oct 8 17:12:38 jester ppp[577]: tun0: CCP: deflink: SendConfigReq(1) state = Closed Oct 8 17:12:38 jester ppp[577]: tun0: CCP: DEFLATE[4] win 15 Oct 8 17:12:38 jester ppp[577]: tun0: CCP: PRED1[2] Oct 8 17:12:38 jester ppp[577]: tun0: CCP: deflink: State change Closed --> Req-Sent Oct 8 17:12:38 jester ppp[577]: tun0: Phase: deflink: lcp -> open Oct 8 17:12:38 jester ppp[577]: tun0: Phase: bundle: Network Oct 8 17:12:38 jester ppp[577]: tun0: IPCP: FSM: Using "deflink" as a transport Oct 8 17:12:38 jester ppp[577]: tun0: IPCP: deflink: State change Initial --> Closed Oct 8 17:12:38 jester ppp[577]: tun0: IPCP: deflink: LayerStart. Oct 8 17:12:38 jester ppp[577]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed Oct 8 17:12:38 jester ppp[577]: tun0: IPCP: IPADDR[6] 192.168.0.1 Oct 8 17:12:38 jester ppp[577]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression Oct 8 17:12:38 jester ppp[577]: tun0: IPCP: PRIDNS[6] 202.74.164.33 Oct 8 17:12:38 jester ppp[577]: tun0: IPCP: SECDNS[6] 255.255.255.255 Oct 8 17:12:38 jester ppp[577]: tun0: IPCP: deflink: State change Closed --> Req-Sent Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: deflink: RecvConfigReq(196) state = Req-Sent Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: COMPPROTO[6] 16 VJ slots without slot compression Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: IPADDR[6] 202.74.164.8 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: deflink: SendConfigAck(196) state = Req-Sent Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: COMPPROTO[6] 16 VJ slots without slot compression Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: IPADDR[6] 202.74.164.8 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: deflink: State change Req-Sent --> Ack-Sent Oct 8 17:12:39 jester ppp[577]: tun0: LCP: deflink: RecvProtocolRej(119) state = Opened Oct 8 17:12:39 jester ppp[577]: tun0: LCP: deflink: -- Protocol 0x80fd (Compression Control Protocol) was rejected! Oct 8 17:12:39 jester ppp[577]: tun0: CCP: deflink: State change Req-Sent --> Stopped Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: deflink: RecvConfigNak(1) state = Ack-Sent Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: IPADDR[6] 202.74.163.135 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: IPADDR[6] changing address: 192.168.0.1 --> 202.74.163.135 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: PRIDNS[6] 202.74.164.3 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: SECDNS[6] 202.74.164.33 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: Primary nameserver set to 202.74.164.3 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: Secondary nameserver set to 202.74.164.33 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: deflink: SendConfigReq(2) state = Ack-Sent Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: IPADDR[6] 202.74.163.135 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: PRIDNS[6] 202.74.164.3 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: SECDNS[6] 202.74.164.33 Oct 8 17:12:39 jester ppp[577]: tun0: LCP: deflink: RecvProtocolRej(120) state = Opened Oct 8 17:12:39 jester ppp[577]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected! Oct 8 17:12:39 jester ppp[577]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: deflink: RecvConfigAck(2) state = Ack-Sent Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: IPADDR[6] 202.74.163.135 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: PRIDNS[6] 202.74.164.3 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: SECDNS[6] 202.74.164.33 Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: deflink: State change Ack-Sent --> Opened Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: deflink: LayerUp. Oct 8 17:12:39 jester ppp[577]: tun0: IPCP: myaddr 202.74.163.135 hisaddr = 202.74.164.8 Oct 8 17:12:39 jester ppp[577]: tun0: Warning: ff02:4::/32: Change route failed: errno: Network is unreachable Oct 8 17:12:39 jester ppp[577]: tun0: LCP: deflink: RecvProtocolRej(121) state = Opened Oct 8 17:12:39 jester ppp[577]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected! Oct 8 17:12:39 jester ppp[577]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Oct 8 17:12:42 jester ppp[577]: tun0: LCP: deflink: RecvProtocolRej(122) state = Opened Oct 8 17:12:42 jester ppp[577]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected! Oct 8 17:12:39 jester ppp[577]: tun0: LCP: deflink: RecvProtocolRej(121) state = Opened Oct 8 17:12:39 jester ppp[577]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected! Oct 8 17:12:39 jester ppp[577]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Oct 8 17:12:42 jester ppp[577]: tun0: LCP: deflink: RecvProtocolRej(122) state = Opened Oct 8 17:12:42 jester ppp[577]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected! Oct 8 17:12:42 jester ppp[577]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Oct 8 17:12:45 jester ppp[577]: tun0: LCP: deflink: RecvProtocolRej(123) state = Opened Oct 8 17:12:45 jester ppp[577]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected! Oct 8 17:12:45 jester ppp[577]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Oct 8 17:12:48 jester ppp[577]: tun0: LCP: deflink: RecvProtocolRej(124) state = Opened Oct 8 17:12:48 jester ppp[577]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected! Oct 8 17:12:48 jester ppp[577]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Oct 8 17:12:51 jester ppp[577]: tun0: LCP: deflink: RecvProtocolRej(125) state = Opened Oct 8 17:12:51 jester ppp[577]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected! Oct 8 17:12:51 jester ppp[577]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! Netstat ----------- su-2.05b# netstat -nr Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.0 link#1 UC 1 0 fxp0 192.168.0.2 00:40:f4:59:f8:8f UHLW 1 763 fxp0 744 202.74.163.135 127.0.0.1 UH 0 0 lo0 202.74.164.8 202.74.163.135 UH 0 0 tun0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%fxp0/64 link#1 UC fxp0 fe80::203:47ff:fe94:2bcc%fxp0 00:03:47:94:2b:cc UHL lo0 fe80::%lo0/64 fe80::1%lo0 Uc lo0 fe80::1%lo0 link#3 UHL lo0 ff01::/32 ::1 U lo0 ff02::%fxp0/32 link#1 UC fxp0 ff02::%lo0/32 ::1 UC lo0 ff02::%tun0/32 fe80::203:47ff:fe94:2bcc%tun0 UGS tun0 ff02::%tun1/32 fe80::203:47ff:fe94:2bcc%tun1 UC tun1 su-2.05b# netstat -nr Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.0 link#1 UC 1 0 fxp0 192.168.0.2 00:40:f4:59:f8:8f UHLW 1 763 fxp0 744 202.74.163.135 127.0.0.1 UH 0 0 lo0 202.74.164.8 202.74.163.135 UH 0 0 tun0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%fxp0/64 link#1 UC fxp0 fe80::203:47ff:fe94:2bcc%fxp0 00:03:47:94:2b:cc UHL lo0 fe80::%lo0/64 fe80::1%lo0 Uc lo0 fe80::1%lo0 link#3 UHL lo0 ff01::/32 ::1 U lo0 ff02::%fxp0/32 link#1 UC fxp0 ff02::%lo0/32 ::1 UC lo0 ff02::%tun0/32 fe80::203:47ff:fe94:2bcc%tun0 UGS tun0 ff02::%tun1/32 fe80::203:47ff:fe94:2bcc%tun1 UC tun1 Ifconfig ---------- su-2.05b# ifconfig -a fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 inet6 fe80::203:47ff:fe94:2bcc%fxp0 prefixlen 64 scopeid 0x1 ether 00:03:47:94:2b:cc media: Ethernet autoselect (100baseTX <full-duplex>) status: active lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 inet 202.74.163.135 --> 202.74.164.8 netmask 0xffffffff Opened by PID 577 tun1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 ppp configuration ---------------------- su-2.05b# ################################################################# # PPP Sample Configuration File # Originally written by Toshiharu OHNO # Simplified 5/14/1999 by wself@cdrom.com # # See /usr/share/examples/ppp/ for some examples # # $FreeBSD: src/etc/ppp/ppp.conf,v 1.8 2001/06/21 15:42:26 brian Exp $ ################################################################# default: set log Phase Chat LCP IPCP CCP tun command ident user-ppp VERSION (built COMPILATIONDATE) # Ensure that "device" references the correct serial port # for your modem. (cuaa0 = COM1, cuaa1 = COM2) # set device /dev/cuaa0 set speed 38400 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" set timeout 180 # 3 minute idle timer (the default) enable dns # request DNS info (for resolv.conf) papchap: # # edit the next three lines and replace the items in caps with # the values which have been assigned by your ISP. # set phone ------- set authname ----- set authkey ------- set ifaddr 0 0 127.2.2.2 add default HISADDR # Add a (sticky) default route hosts -------- 127.0.0.1 localhost.exhausted.org localhost 192.168.0.1 jester.exhausted.org jester 192.168.0.1 jester.exhausted.org. 192.168.0.2 elpiojo resolv --------- resolv.conf domain exhausted.org nameserver 202.74.164.3 nameserver 202.74.164.33 cheers, Edwet _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MIEPLLIBMLEEABPDBIEGKEPLEIAA.fbsd_user>