Date: Mon, 11 Dec 1995 13:50:48 -0800 (PST) From: Doug White <dwhite@riley-net170-164.uoregon.edu> To: Kai Xie ~{?-~} <kxie@user1.channel1.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: setup user PPP on freebsd 2.0.5 Message-ID: <Pine.BSF.3.91.951211134517.207A-100000@gdi.uoregon.edu> In-Reply-To: <Pine.BSF.3.91.951211142905.18589A-100000@user1.channel1.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 11 Dec 1995, Kai Xie ~{?-~} wrote: > I have my isp IP address as 199.1.13.9 > gateway as 199.1.13.45 > netmask 255.255.255.224 > > I edited sysconfig file, and put it hostname=user1.channel1.com (which > is my isp name server) > network_interfaces="lo0 tun0" > ifconfig_tun0="inet user1.channel1.com 199.1.13.45 netmask 0xffffff00" This is your problem here. Do not configure tun0, ppp will do that for you. So just remove this from sysconfig. > what's the hexadecimal value for 255.255.255.224? > the vaule I put in is 255.255.255.0 Isn't necessary when ifconfig'ing, just punch in the dotted quad. > then I chaged routedflags=-s Shouldn't need routed either. > and I wrote the ppp.conf > default: > set device /dev/cuaa1 (my modem is on com2) > set speed 57600 (my modem is 28,800) > disable lqr > deny lqr > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" > ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT" > provider: > set phone ******* > set login "TIMEOUT 10 gin:-BREAK-gin: **** work: *******" > set timeout 300 > set ifaddr 0 199.1.13.45 That checks out. The 'set ifaddr' may be extraneous, since you're on dynamic. ppp will create the appropriate route, you have to add the default route (or have ppp do it for you). > because my isp assign dynamic IP address and fixed gateway. > > what should I put in for ppp.linkup file??? I'm not sure what the ppp command is, I know that after I connect, I switch to su and create a default route. ppp adds this route: 128.223.150.132 128.223.150.140 UH 0 0 tun0 and I add this route: route add default 128.223.150.132 And it works OK. I punch in the first number (destination) for the gateway and I can get out. > > when I restart the computer > my computer's ip address became user1.channel1.com, why?? Because you ifconfig'd tun0. Remove it and you should be back to normal. > I am not on any local network. > and when I run ppp, it dials ok, connects ok. and I type it "add 0 > 199.1.13.45 HISADDR" > but then I try to telnet to somewhere, is doesn't work, tells me that > hostname lookup failed. Do a netstat -rn and make sure a default route to the gateway was added. It'll give you that error if the nameserver isn't set or can't be contacted. (Is the nameserver configured in /etc/resolv.conf?) Hope this helps. I connect to a host that is dynamic-everything (gateway and my IP) and ppp handles it no prob except for the routing, which I just go do manually. Doug White | University of Oregon Internet: dwhite@gladstone.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.951211134517.207A-100000>