Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Dec 1997 17:05:20 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Stan Brown <stanb@awod.com>
Cc:        Free BSD Questions list <freebsd-questions@freebsd.com>
Subject:   Re: Routing (I thin) help, Please.
Message-ID:  <19971226170520.45923@lemis.com>
Resent-Message-ID: <199712260636.RAA03873@freebie.lemis.com>
In-Reply-To: <199712241638.IAA06657@freefall.freebsd.org>; from Stan Brown on Wed, Dec 24, 1997 at 11:42:20AM -0500
References:  <199712241638.IAA06657@freefall.freebsd.org>

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

On Wed, Dec 24, 1997 at 11:42:20AM -0500, Stan Brown wrote:
> 	I am trying to do something that I am having a hard time geting to work
> 	quite right. here is the situation.
>
> 	I have a local network at home with 4 computers on it. These are a
> 	FreeBSD box that has a ppp auto dialup link to my IPS, 2 HP
> 	workstaions, and a Linux box. The default gateway for all the machines
> 	on my network is the FreeBSD box which is using packet alliasing. One
> 	of the HP's is the NIS server, and the other is the DNS server. I have
> 	a second phne line coming inot one of the HP's. This line is set up tu
> 	answer with fax tones, but if no connection is established it presents
> 	modem tones that lead to a login prompt.
>
> 	I have a laptop runing FreebSD that I want to be able to make a PPP
> 	connection to this network. I have set up ij-ppp on the HP.
>
> 	So far I can get an automatiic login and ppp makes it's connescion.
> 	I have even managed to ping, and telnet between the Hp and the lpatop
> 	nav vice versa. Now here is the problem, I can not ping other machines
> 	on the networ, or machines out to the net via the gateway. I suspect
> 	this is a problem with how I am seting up the routing tables on the HP,
> 	but I am not certain.

By default, most machines do not perform packet forwarding, since RFC
1122 prohibits packet forwarding by default.  You'll have to find out
how to turn it on on the HP.  This could be as simple as setting a
parameter.  For example, in FreeBSD you just enter:

  # sysctl -w net.inet.ip.forwarding=1

It's more likely, though, that you're going to have to build a new
kernel on the HP with the option IPFORWARDING.  I don't know HP, so
you'll have to find out some other way.

> 	Could some kind soul give me some words of wisdom here. Also does the
> 	Hp need 2 hostnames now that it has 2 IP addresses?

Well, you don't need two IP addresses for the two interfaces.  You can
use the same address for both.  But if you want to leave it that way,
no, you don't need another name, and it's not a good idea.

Greg



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