Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2001 11:10:44 -0500
From:      Christopher Farley <chris@northernbrewer.com>
To:        Xia Tao <wtxiatao@hust.edu.cn>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to change the default source address?
Message-ID:  <20010610111042.A51916@northernbrewer.com>
In-Reply-To: <016f01c0f1ab$3f6020e0$6401010a@rhapsody>; from wtxiatao@hust.edu.cn on Sun, Jun 10, 2001 at 08:45:36PM %2B0800
References:  <200106100607.BAA16222@drake.host4u.net> <016f01c0f1ab$3f6020e0$6401010a@rhapsody>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010610111042.A51916>