From owner-freebsd-questions@FreeBSD.ORG Mon Jun 13 19:07:40 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 255FE16A422 for ; Mon, 13 Jun 2005 19:07:40 +0000 (GMT) (envelope-from aguirre@canal22.org.mx) Received: from correo.canal22.org.mx (correo.canal22.org.mx [207.249.4.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA4CC43D1F for ; Mon, 13 Jun 2005 19:07:39 +0000 (GMT) (envelope-from aguirre@canal22.org.mx) Received: from correo.canal22.org.mx (correo.canal22.org.mx [207.249.4.231]) by correo.canal22.org.mx (8.12.8/8.12.8) with SMTP id j5DHeg0V001282 for ; Mon, 13 Jun 2005 12:40:42 -0500 Received: from 207.249.4.249 by webmail.canal22.org.mx with HTTP; Mon, 13 Jun 2005 13:11:23 -0500 (CDT) Message-ID: <63826.207.249.4.240.1118686283.squirrel@webmail.canal22.org.mx> Date: Mon, 13 Jun 2005 13:11:23 -0500 (CDT) From: "Alfredo Aguirre" To: X-Priority: 3 Importance: Normal X-Mailer: WebCanal22 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: configuring two network interfaces, same subnet 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: Mon, 13 Jun 2005 19:07:40 -0000 Hello people!, I'm trying to configure 2 network interfaces in the same subnet, because i want to use one interface for NS and the other for MX, if i try bash-2.05b# ifconfig em0 aa.bb.dd.1 netmask 255.255.255.0 bash-2.05b# ifconfig em1 aa.cc.ee.2 netmask 255.255.255.0 ifconfig: ioctl (SIOCAIFADDR): File exists ok they both cannot be in the same subnet. i know that i cannot have them both in the same subnet without modifying the routing, but im confussed about it. i also tried after settin' one of the ips, deleting the routing bash-2.05b# route delete aa.bb.cc.0 and then setting the ip bash-2.05b# ifconfig em0 aa.bb.dd.1 netmask 255.255.255. ok i can now set the 2 ips in the same subnet but my DNS stops working, i dont want to change the submask, for any of my ips well im confused about it, so i hope you guys could adress me in the right direction, Thanks in advance, Alfredo