From owner-freebsd-questions Thu May 21 15:29:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA16317 for freebsd-questions-outgoing; Thu, 21 May 1998 15:29:41 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA16285 for ; Thu, 21 May 1998 15:29:15 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id XAA20823; Thu, 21 May 1998 23:24:43 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199805212224.XAA20823@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: styih cc: Brian Somers , freebsd-questions@FreeBSD.ORG Subject: Re: [Help]:Problems with PPP dialin Server with mgetty ... In-reply-to: Your message of "Thu, 21 May 1998 21:16:27 +0800." <3564292A.3276CDA9@mail.3pstudio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 21 May 1998 23:24:43 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If you want to connect to the net through your company via ppp, then the default route must be removed from /etc/rc.conf as originally advised (I assumed from your subsequent mail that you had two modems, one ->net and one ->company). If your setup allows access to the company and not the 'net via the company, then the company isn't forwarding/returning the packets. You'll have to debug things at that end (probably using tcpdump). > > > > Don't specify a default route in /etc/rc.conf. > > > > -- > > > > Brian , , > > > > > > > > I tried it , > > > Now I can use ppp to access my company's LAN ,all 210.66.235.* > > > but I can't get connection to outside , such as http://www.freebsd.org or > > > http://www.Awfulhak.org > > > When I use MS-DOS windows to "ping www.freebsd.org" ...it failed.... > > > > > > And then I tried to use "ping" on my ppp server > > > the answer is "no route to host" > > > > > > What should I do ??? > > > > Don't add a default route to your company... > > > > Sounds like you want your previous default route in /etc/rc.conf and > > a ``add 210.66.235.0 255.255.255.0 hisaddr'' in ppp.linkup. > > > > -- > > Brian , , > > > > Don't _EVER_ lose your sense of humour.... > > What does "Don't add a default route to your company..." mean?? > If I don't specify a defaultroute in /etc/rc.conf , I can use ppp to connect to my > company's LAN. > But my purpose is not only to connect to my company's LAN, but also to connect to > Internet through my company's LAN. > > I tried to remain my previous defaultroute in /etc/rc.conf : 210.66.235.254 and > in my /etc/ppp.linkup , I wrote > "MYADDR: > delete ALL > add 210.66.235.0 255.255.255.0 hisaddr" > but still didn't work. > > the console showed "tun0:Warning: Add route failed: 210.66.235.0 already exists." > and > >netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 210.66.235.254 UGSc 0 2 de0 > 127.0.0.1 127.0.0.1 UH 0 0 lo0 > 210.66.235 link#1 UC 0 0 > 210.66.235.8 0:40:5:39:9b:27 UHLW 0 7 de0 1175 > 210.66.235.121 210.66.235.120 UH 0 3 tun0 > 210.66.235.121 0:80:c8:66:24:5c UHLS2 0 0 de0 > 210.66.235.254 8:0:2:1b:1c:1c UHLW 1 0 de0 354 > > Please tell me what I should do. > Thank you. > -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message