From owner-freebsd-net@FreeBSD.ORG Mon May 15 23:04:04 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F6B916A64D for ; Mon, 15 May 2006 23:04:04 +0000 (UTC) (envelope-from oxy@field.hu) Received: from green.field.hu (green.field.hu [217.20.130.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46CF243D4C for ; Mon, 15 May 2006 23:04:03 +0000 (GMT) (envelope-from oxy@field.hu) Received: from localhost (green.field.hu [217.20.130.28]) by green.field.hu (Postfix) with ESMTP id 62FE8119CCF for ; Tue, 16 May 2006 01:02:36 +0200 (CEST) X-Virus-Scanned: by Amavisd-new (Spamassassin+Razor2+Pyzor+DCC+Bayes db, Clamd Antivirus) at field.hu Received: from green.field.hu ([217.20.130.28]) by localhost (green.field.hu [217.20.130.28]) (amavisd-new, port 10024) with ESMTP id AJvpZP4l3Jax for ; Tue, 16 May 2006 01:02:36 +0200 (CEST) Received: from oxy (dsl85-238-67-196.pool.tvnet.hu [85.238.67.196]) by green.field.hu (Postfix) with ESMTP id EB1D3119CA2 for ; Tue, 16 May 2006 01:02:35 +0200 (CEST) Message-ID: <000c01c67873$dc8a9680$0201a8c0@oxy> From: "OxY" To: Date: Tue, 16 May 2006 01:04:04 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: changing default route X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2006 23:04:04 -0000 hi! i have a little irregular problem with default route.. here are the details: have two interfaces with the same ip, em0 connected to another server = with crosslink,=20 em1 is the public, can be reached from the internet connected to a = switch. em0: flags=3D8843 mtu 1500 options=3Db inet 195.38.96.13 netmask 0xffffffc0 broadcast 195.38.96.127 ether 00:13:d4:46:ae:91 media: Ethernet autoselect (1000baseTX ) status: active em1: flags=3D8843 mtu 1500 options=3Db inet 195.38.96.13 netmask 0xffffffc0 broadcast 195.38.96.127 ether 00:0e:0c:a2:ac:42 media: Ethernet autoselect (100baseTX ) status: active in rc.conf i have: defaultrouter=3D"195.38.96.65" ifconfig_em0=3D"inet 195.38.96.89 netmask 255.255.255.192" ifconfig_em1=3D"inet 195.38.96.89 netmask 255.255.255.192" with these the OS puts the default route to em0, however i want to = communicate with the world on em1 and use em0 to connect to the other server on lan.. default gateway. UGS 0 8065787 em0 <----need = em1 here i can't change ip, it must be the same on both interfaces.. how can i change the interface for defaultroute? thank you for help!