From owner-freebsd-questions Sun Jun 10 9:10:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.nbrewer.com (sparge.nbrewer.com [208.42.68.70]) by hub.freebsd.org (Postfix) with ESMTP id C908537B401 for ; Sun, 10 Jun 2001 09:10:44 -0700 (PDT) (envelope-from chris@nbrewer.com) Received: by mail.nbrewer.com (Postfix, from userid 1001) id 4D49D3830AD; Sun, 10 Jun 2001 11:10:44 -0500 (CDT) Date: Sun, 10 Jun 2001 11:10:44 -0500 From: Christopher Farley To: Xia Tao Cc: freebsd-questions@freebsd.org Subject: Re: How to change the default source address? Message-ID: <20010610111042.A51916@northernbrewer.com> Mail-Followup-To: Christopher Farley , Xia Tao , freebsd-questions@freebsd.org References: <200106100607.BAA16222@drake.host4u.net> <016f01c0f1ab$3f6020e0$6401010a@rhapsody> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <016f01c0f1ab$3f6020e0$6401010a@rhapsody>; from wtxiatao@hust.edu.cn on Sun, Jun 10, 2001 at 08:45:36PM +0800 Organization: Northern Brewer, St. Paul, MN 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 Xia Tao (wtxiatao@hust.edu.cn) wrote: > So I think if I can change the default source address to 210.74.130.100 > then everything will work. > Does anyone know how to deal with it? > Thanks in advance. If your ethernet interface is ed0, then you should have this in /etc/rc.conf: ifconfig_ed0_alias0="inet 210.74.130.100 netmask 255.255.255.255" ifconfig_ed0_alias1="inet 10.0.0.2 netmask 255.255.255.255" Replace the netmask with the proper value. -- Christopher Farley www.northernbrewer.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message