From owner-freebsd-questions@FreeBSD.ORG Fri Aug 27 14:24:30 2004 Return-Path: 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 12CE116A4CE for ; Fri, 27 Aug 2004 14:24:30 +0000 (GMT) Received: from york.smtp.ru (york.smtp.ru [62.118.249.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2746543D1F for ; Fri, 27 Aug 2004 14:24:29 +0000 (GMT) (envelope-from adler@smtp.ru) Received: from [195.19.34.32] (account adler@smtp.ru HELO h32.net34.bmstu.ru) by york.smtp.ru (CommuniGate Pro SMTP 3.5.9) with ESMTP id 66887207; Fri, 27 Aug 2004 18:24:28 +0400 Date: Fri, 27 Aug 2004 18:21:00 +0400 From: Sopov Alexey X-Mailer: The Bat! (v2.04.7) CD5BF9353B3B7091 X-Priority: 3 (Normal) Message-ID: <4210237724.20040827182100@smtp.ru> To: Bob Ababurko , freebsd-questions@freebsd.org In-Reply-To: <5.2.1.1.0.20040827091804.01c8af40@mail.dc2.adelphia.net> References: <5.2.1.1.0.20040824183938.01a70a08@mail.dc2.adelphia.net> <5.2.1.1.0.20040824183938.01a70a08@mail.dc2.adelphia.net> <5.2.1.1.0.20040827091804.01c8af40@mail.dc2.adelphia.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re[2]: cannot get rc.conf to configure an second interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: adler List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2004 14:24:30 -0000 This should work fine. /etc/rc.conf: ifconfig_fxp0="inet 192.168.102.14/24" ifconfig_fxp1="inet 192.168.102.15/32" defaultrouter="192.168.102.1" BA> At 04:55 PM 8/26/2004 -0500, you wrote: >>Bob Ababurko wrote: >> >>>Hello- >>> I am trying to configure rc.conf to set up my second interface. Right >>> now, I have these lines in the rc.conf file and when I boot the mahine, >>> fxp1 is not configured. Also, it seems that that ipv6 is set up an I am >>> not sure how to disable it. Here is my rc.conf entries that refer to >>> the network: >>>ifconfig_fxp0="inet 192.168.102.14 netmask 255.255.255.0" >>>ifconfig_fxp1="inet 192.168.102.15 netmask 255.255.255.0" >>>defaultrouter="192.168.102.1" >>> IS there thing else that I need to do to configure fxp1 to survive a >>> reboot? One thing that happens when I configure the NIC with ifconfig is this: >>>bash-2.05b# ifconfig fxp1 192.168.102.15 netmask 255.255.255.0 >>>ifconfig: ioctl (SIOCAIFADDR): File exists >>>what I end up needing to do is configure the IP and then the network, >>>separately. I think that this error has something to do with my problem, >>>but I am not sure how to deal with that. Any info that anyone ca lead me >>>to will be great. >>>thanks, >>>Bob >> >>If I've been learning anything lately, you cannot have two interfaces >>configured on the same subnet on FreeBSD. The boot process is erroring >>out on this, hence why you're getting the ifconfig error listed above. One >>way to get around this is set those interfaces with a netmask of all ones, >>or 255.255.255.255, or simply do have these entries in you're rc.conf file: >> >>ifconfig_fxp0="inet 192.168.102.14/32" >>ifconfig_fxp1="inet 192.168.102.15/32" >>defaultrouter="192.168.102.1" >> >>Again, this is if I got everything correctly. >> >>HTH >> >>Eric F Crist >> BA> I am curious as to how these netmask settings will effect the way my BA> routes will be handled. If I use a /32, what does that mean....or more BA> specifically, what is going on here? I am sure this is not the conventions BA> used in Solaris. So, I would like to understand what is going on or why I BA> would use a different subnet mask. BA> Also.....what I want to do here, or at least, think that I want to do, BA> is have traffic come and go out of each NIC, respectively. I don't want BA> traffic to come in fxp1 and go out of fxp0. I want this to occur because I BA> am going to use dummynet to handle some bandwidth issues. What is the BA> default behavior in this respect in FreeBSD when just adding another NIC to BA> a system and not making any other changes? Do I have to change anything in BA> my routing tables? I am thinking that I do.....If someone with expertise BA> in these areas can help, I would be grateful! BA> thx, BA> BoB BA> _______________________________________________ BA> freebsd-questions@freebsd.org mailing list BA> http://lists.freebsd.org/mailman/listinfo/freebsd-questions BA> To unsubscribe, send any mail to BA> "freebsd-questions-unsubscribe@freebsd.org" -- [ /Iexa ] mailto:adler@smtp.ru