From owner-freebsd-stable Mon Apr 1 20:15:21 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by hub.freebsd.org (Postfix) with SMTP id B6F6A37B416 for ; Mon, 1 Apr 2002 20:15:17 -0800 (PST) Received: (qmail 7825 invoked by uid 0); 2 Apr 2002 04:15:16 -0000 Received: from p50912cd4.dip.t-dialin.net (HELO mail.gsinet.sittig.org) (80.145.44.212) by mail.gmx.net (mp004-rz3) with SMTP; 2 Apr 2002 04:15:16 -0000 Received: (qmail 53766 invoked from network); 1 Apr 2002 19:39:25 -0000 Received: from shell.gsinet.sittig.org (192.168.11.153) by mail.gsinet.sittig.org with SMTP; 1 Apr 2002 19:39:25 -0000 Received: (from sittig@localhost) by shell.gsinet.sittig.org (8.11.3/8.11.3) id g31JdGo53753 for stable@freebsd.org; Mon, 1 Apr 2002 21:39:16 +0200 (CEST) (envelope-from sittig) Date: Mon, 1 Apr 2002 21:39:16 +0200 From: Gerhard Sittig To: stable@freebsd.org Subject: Re: natd problems Message-ID: <20020401213916.I1494@shell.gsinet.sittig.org> Mail-Followup-To: stable@freebsd.org References: <000801c1d97e$389cee80$0200000a@bavaria> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000801c1d97e$389cee80$0200000a@bavaria>; from bob@fellownet.org on Mon, Apr 01, 2002 at 03:00:53PM +0200 Organization: System Defenestrators Inc. Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Apr 01, 2002 at 15:00 +0200, Bob Kersten wrote: > > Here's my rc.conf: > > [ ... ] > ifconfig_de0="inet 213.51.186.212 netmask 255.255.252.0" > ifconfig_de0="alias 10.0.0.1 netmask 255.255.255.0" > [ ... ] > > With this rc.conf it isn't even possible to get on the internet on the > FreeBSD machine, because it says that it is routing all packages to > 10.0.0.1, but it should route all packages to 213.51.186.212. If I reverse > the two ifconfig statements: > > ifconfig_de0="inet 10.0.0.1 netmask 255.255.255.0" > ifconfig_de0="alias 213.51.186.212 netmask 255.255.252.0" > > Than i CAN get on the internet on the FreeBSD machine, because it is routing > all packages to 213.51.186.212. But then 10.0.0.1 is unreachable from the XP > machine. > > What am I doing wrong here? You misunderstand the rc.conf implementation. :) Look at it as a strict shell script and you suddenly see that you either have your de(4) interface configured with one address or the other. Setting the very same variable again will override whatever has been there before. The "first" statement will never have any meaning. Read the "man 5 rc.conf" manpage, search for "/alias" and make your rc.conf look like this ifconfig_de0="inet 10.0.0.1 netmask 255.255.255.0" ifconfig_de0_alias0="inet 213.51.186.212 netmask 255.255.252.0" and everything should be fine. virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76 Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message