Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Apr 2002 21:39:16 +0200
From:      Gerhard Sittig <Gerhard.Sittig@gmx.net>
To:        stable@freebsd.org
Subject:   Re: natd problems
Message-ID:  <20020401213916.I1494@shell.gsinet.sittig.org>
In-Reply-To: <000801c1d97e$389cee80$0200000a@bavaria>; from bob@fellownet.org on Mon, Apr 01, 2002 at 03:00:53PM %2B0200
References:  <000801c1d97e$389cee80$0200000a@bavaria>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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