From owner-freebsd-questions@FreeBSD.ORG Wed Oct 12 14:10:28 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6BE216A425 for ; Wed, 12 Oct 2005 14:10:28 +0000 (GMT) (envelope-from o.greve@axis.nl) Received: from yggdrasil.interstroom.nl (yggdrasil.interstroom.nl [80.85.129.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 817FF43D58 for ; Wed, 12 Oct 2005 14:10:26 +0000 (GMT) (envelope-from o.greve@axis.nl) Received: from ip127-180.introweb.nl ([80.65.127.180] helo=[192.168.1.42]) by yggdrasil with asmtp (Exim 3.35 #1 (Debian)) id 1EPhJ5-0007iM-00; Wed, 12 Oct 2005 16:10:11 +0200 Message-ID: <434D1942.7060304@axis.nl> Date: Wed, 12 Oct 2005 16:10:10 +0200 From: Olaf Greve User-Agent: Mozilla Thunderbird 1.0.7-1.4.1.centos4 (X11/20051007) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Andrew P." References: <20051012104241.GA34129@dogma.freebsd-uk.eu.org> <434D02AF.9@axis.nl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner-Information: Interstroom virusscan, please e-mail helpdesk@interstroom.nl for more information X-MailScanner-SpamCheck: Cc: freebsd-questions@freebsd.org Subject: Re: How to properly set-up multiple NICs? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 14:10:29 -0000 Hi, Tnx for the reply! > I don't think you've missed anything. Good! That's what I also thought, but I just wanted to be sure. :) > In /etc/rc.conf you can add something like: > ifconfig_rl0="inet 192.168.17.1 netmask 0xffffff00" > ifconfig_lo0_alias0="inet 172.17.0.1 netmask 0xffffffff" > ifconfig_vge0="dhcp" > ...to give you the general idea. It's enough to bring > the NICs up and running, but then consider DNS > and other issues that provide for a networking environment. Yes, the main entry, i.e., the one for the outside world is set-up like this: ifconfig_rl0="inet 123.45.67.89 netmask 255.255.255.0" defaultrouter="123.45.67.1" hostname="abcdef.nl" My other two NICs are identified as re0 and sk0. When setting up one of them, say re0, for the local network I guess I only have to add an entry to /etc/rc.conf like: ifconfig_re0="inet 192.168.1.1 netmask 255.255.255.254" (note: the above gives a very restrictive netmask, as I'll only need the addresses 192.168.1.1 and 192.168.1.2). Would the above be correct, or should there also be an additional defaultrouter entry, next to the one for the outside traffic (e.g. defaultrouter="192.168.1.1")? This wouldn't really make sense to me, as I guess that one would then become 'the' defaultrouter for all traffic (be it local or outside world)... Cheers! Olafo