Skip site navigation (1)Skip section navigation (2)
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

[-- Attachment #1 --]
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.

[-- Attachment #2 --]
# If you have any sppp(4) interfaces above, you might also want to set
# the following parameters.  Refer to spppcontrol(8) for their meaning.
sppp_interfaces="isp0"		# example: sppp over ISDN
spppconfig_isp0="authproto=chap hisauthproto=none myauthname=**** myauthsecret='*****'"

### ISDN interface options: ###
isdn_enable="YES"		# Enable the ISDN subsystem (or NO).
isdn_fsdev="/dev/ttyvb"	# Output device for fullscreen mode (or NO for daemon mode).
isdn_flags="-dn -d0x1f9 -f -t cons25"	# Flags for isdnd
isdn_trace="NO"		# Enable the ISDN trace subsystem (or NO).
isdn_traceflags="-b -i -f /var/tmp/isdntrace0"	# Flags for isdntrace

gateway_enable="YES"
defaultrouter="-interface isp0"	# Set to default gateway (or NO).

static_routes="utp bnc"
route_utp="-net 172.16.7.0/24 172.16.7.1"
route_bnc="-net 172.16.8.0/24 172.16.8.1"

network_interfaces="lo0 isp0 fxp0 ex0"
ifconfig_lo0="127.0.0.1"
ifconfig_fxp0="inet 172.16.7.1 netmask 255.255.255.0 link1"
ifconfig_ex0="inet 172.16.8.1 netmask 255.255.255.0 link1"
ifconfig_isp0="0.0.0.0 0.0.0.1 netmask 255.255.255.0 link1"

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0009302101490.13992-200000>