Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 1998 21:16:27 +0800
From:      styih <styih@mail.3pstudio.net>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: [Help]:Problems with PPP dialin Server with mgetty ...
Message-ID:  <3564292A.3276CDA9@mail.3pstudio.net>
References:  <199805210135.CAA12059@awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help



> > > 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.


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?3564292A.3276CDA9>