Date: Thu, 21 May 1998 23:24:43 +0100 From: Brian Somers <brian@Awfulhak.org> To: styih <styih@mail.3pstudio.net> Cc: Brian Somers <brian@Awfulhak.org>, freebsd-questions@FreeBSD.ORG Subject: Re: [Help]:Problems with PPP dialin Server with mgetty ... Message-ID: <199805212224.XAA20823@awfulhak.org> In-Reply-To: Your message of "Thu, 21 May 1998 21:16:27 %2B0800." <3564292A.3276CDA9@mail.3pstudio.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org> > > > > <http://www.Awfulhak.org> > > > > 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org> > > <http://www.Awfulhak.org> > > 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org> <http://www.Awfulhak.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805212224.XAA20823>