Date: Sat, 30 Sep 2000 22:00:00 +0200 (CEST) From: Marc Veldman <marc@kleurbeeld.be> To: Eirik Apeland <eapeland@c2i.net> Cc: "freebsd-isdn@FreeBSD.ORG" <freebsd-isdn@FreeBSD.ORG>, freebsd-questions@FreeBSD.ORG Subject: Re: Setting up sppp Message-ID: <Pine.BSF.4.21.0009302101490.13992-200000@lurkie.xs4all.nl> In-Reply-To: <200009301844.UAA01218@golf.dax.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-324729881-970344000=:13992 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 30 Sep 2000, Eirik Apeland wrote: [crossposted to -questions, to get more input. I'll collect the input and will try to get this into the FreeBSD documentation. Most of this information is not isdn-specific, but it is useful and difficult to find.] > >/etc/rc.conf: > >static_routes="home" > >route_home="10.0.0.0/24 10.0.0.10" > No, but I have now :) > What does these lines do? > Do I have to change "home" to the name of my NT machine? > (Many stupid questions here :/) These questions are not stupid. I've had quite a hard time figuring it out, but I've gotten good help from all the people on freebsd-isdn, freebsd-questions etc.. The lines set a route from your freebsd machine to your network on the right-hand side of this diagram. [The following text is a great simplification of the actual procedure. All improvements are more than welcome] Internet---->isp interface | FreeBSD machine | ---->Your Network (10.0.0.0/24) If you try to, say, get a web page from a machine on Your Network, a request goes out from that machine. (Let's say you want to look at www.cnn.com from a machine on Your Network) First of all the requesting machine (the machine on Your Network) will try to look up the IP address of www.cnn.com. If you set the DNS-server address on the requesting machine to the address of the DNS server of your ISP, then a request will go out from the requesting machine to the DNS server. Since the DNS server is not on Your Network, the FreeBSD machine will send out the request over the isp0 interface. After some (short) time it will get a response from the ISP's DNS server to your machine. The FreeBSD machine gets this response and it needs to know which network interface it has to use to forward the response to the request to. With the "home" lines in the example, your FreeBSD machine, the FBSD machine knows over which interface it has to forward the response. I have attached a (part) of my rc.conf as an example. Below is my home setup. Internet ---> isp0 | My machine | ---> fxp0 ---> 172.16.7.0/24 network | | ---> ex0 ---> 172.16.8.0/24 network > >Some more questions: > >Does your machine dial out if you ping from > >your NT machine ? > No, and I don't understand why. I've changed the default gateway to the ip > of my FreeBSD machine. That would help. The NT machine needs to know which machine it can forward requests to if the IP address of the machine to which the request is directed is not on the local network. The machine that can forward requests is called a 'router' or a 'gateway' and always has two or more network interfaces. In your case, one of the network interfaces is the ISDN card isp0, the other is the actual network card that is attached to your local network. > Do I have to put something in the DNS field? I used to have the DNS to my On your NT machine, you should set the DNS field to the address your ISP has given you. (You could run your own DNS server, but that's a completely different subject and I would like to avoid that for now..) > ISP there, but I deleted them and put then in the "/etc/resolv.conf" file. > Here's a pice from the log. Nothing is routed to the isp0 device :( > > Isn't there a HOW-TO about this somewhere? > I can't be the only person having a hard time with this? :) As far as I know, there is no HOW-TO about this. Maybe, if we get this all figured out, we could write one. I'd really like to get this into some sort of HOW-TO/FAQ. All comments/experiences are welcome ! (Excueses for the late response, but the Real World had kept me away...) Marc Veldman. --0-324729881-970344000=:13992 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="rc.conf" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.21.0009302200000.13992@lurkie.xs4all.nl> Content-Description: Sample rc.conf Content-Disposition: attachment; filename="rc.conf" IyBJZiB5b3UgaGF2ZSBhbnkgc3BwcCg0KSBpbnRlcmZhY2VzIGFib3ZlLCB5 b3UgbWlnaHQgYWxzbyB3YW50IHRvIHNldA0KIyB0aGUgZm9sbG93aW5nIHBh cmFtZXRlcnMuICBSZWZlciB0byBzcHBwY29udHJvbCg4KSBmb3IgdGhlaXIg bWVhbmluZy4NCnNwcHBfaW50ZXJmYWNlcz0iaXNwMCIJCSMgZXhhbXBsZTog c3BwcCBvdmVyIElTRE4NCnNwcHBjb25maWdfaXNwMD0iYXV0aHByb3RvPWNo YXAgaGlzYXV0aHByb3RvPW5vbmUgbXlhdXRobmFtZT0qKioqIG15YXV0aHNl Y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iMC4wLjAuMCAwLjAuMC4xIG5ldG1h c2sgMjU1LjI1NS4yNTUuMCBsaW5rMSINCg== --0-324729881-970344000=:13992-- 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?Pine.BSF.4.21.0009302101490.13992-200000>