From owner-freebsd-questions Sat Sep 14 19:44:38 2002 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 44C6F37B400 for ; Sat, 14 Sep 2002 19:44:37 -0700 (PDT) Received: from web9607.mail.yahoo.com (web9607.mail.yahoo.com [216.136.129.186]) by mx1.FreeBSD.org (Postfix) with SMTP id E80D243E4A for ; Sat, 14 Sep 2002 19:44:36 -0700 (PDT) (envelope-from chancedj@yahoo.com) Message-ID: <20020915024436.90793.qmail@web9607.mail.yahoo.com> Received: from [67.32.85.128] by web9607.mail.yahoo.com via HTTP; Sat, 14 Sep 2002 19:44:36 PDT Date: Sat, 14 Sep 2002 19:44:36 -0700 (PDT) From: Daryl Chance Reply-To: chancedj@yahoo.com Subject: 2 public ip's on 2 nics (problem) To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I've got a server I'm trying to bring up that has 2 nics in it. I have 2 valid public ip's, so thats not the issue. the 2 nics are 2 seperate things. one is for dns and one is for mail (I know, I could just go with 1, but I'm trying to get this working anyhow). I'm using FreeBSD 4.6.2 pl2. The nic's are: 3Com 3c905C-TX Fast Etherlink XL (xl0 - has current ip) Intel Pro 10/100B/100+ Ethernet (fxp0 - one i'm trying to add ip to) rc.conf looks like: defaultrouter="65.221.xxx.xw" hostname="mail.xxx.com" #only working for xl atm. working on it. ifconfig_xl0="inet 65.221.xxx.xx netmask 255.255.255.192" ifconfig_fxp0="inet 65.221.xxx.xy netmask 255.255.255.192" I've tried switching the order, letting one boot then adding the ip to the other nic....nothing. same error. If I do an ifconfig fxp0 add 65.221.xxx.xy netmask 255.255.255.0, it adds it, but i can't ping it (more then likely because of the netmask AND because it's an alias? adding it with 255.255.255.192 gives me: ifconfig: ioctl (SIOCAIFADDR): File exists Can anyone tell me what I'm doing wrong, or what I'm assuming wrong? I'd really like to get both of these nics up with a public ip. Thanks, Daryl ===== <--------------------------------------------------------------->
<- Daryl Chance  - A programmer is someone who solves a    ->
<- Programmer      - problem you didn't know you had in a ->
<- ----------------- - way you don't understand.       ->
<- Belial of -E-     -                - ?????       ->
<---------------------------------------------------------------> __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message