From owner-freebsd-net@FreeBSD.ORG Tue May 16 14:19:25 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 5E50B16A414 for ; Tue, 16 May 2006 14:19:25 +0000 (UTC) (envelope-from lists@wm-access.no) Received: from lakepoint.domeneshop.no (lakepoint.domeneshop.no [194.63.248.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CD7043D53 for ; Tue, 16 May 2006 14:19:23 +0000 (GMT) (envelope-from lists@wm-access.no) Received: from [192.168.9.8] (gw1.arcticwireless.no [80.203.184.14]) (authenticated bits=0) by lakepoint.domeneshop.no (8.13.6/8.13.6) with ESMTP id k4GEJFOV025962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 16 May 2006 16:19:15 +0200 Message-ID: <4469DF5E.20301@wm-access.no> Date: Tue, 16 May 2006 16:19:10 +0200 From: =?ISO-8859-1?Q?Sten_Daniel_S=F8rsdal?= User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: OxY References: <000c01c67873$dc8a9680$0201a8c0@oxy> In-Reply-To: <000c01c67873$dc8a9680$0201a8c0@oxy> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: 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: Tue, 16 May 2006 14:19:25 -0000 OxY wrote: > hi! >=20 > i have a little irregular problem with default route.. > here are the details: >=20 > have two interfaces with the same ip, em0 connected to another server w= ith crosslink,=20 > em1 is the public, can be reached from the internet connected to a swit= ch. >=20 > 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 >=20 > 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" >=20 > with these the OS puts the default route to em0, however i want to comm= unicate with the world on em1 and > use em0 to connect to the other server on lan.. >=20 > default gateway. UGS 0 8065787 em0 <----need e= m1 here >=20 > i can't change ip, it must be the same on both interfaces.. > how can i change the interface for defaultroute? >=20 > thank you for help! One side has to have a netmask of 255.255.255.255 -or- use bridging Are you sure the way you do it will work at all? --=20 Sten Daniel S=F8rsdal