From owner-freebsd-questions Sun Jan 21 19:50:30 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nisser.com (c0039.upc-c.chello.nl [212.187.0.39]) by hub.freebsd.org (Postfix) with ESMTP id 2808337B698 for ; Sun, 21 Jan 2001 19:50:12 -0800 (PST) Received: from nisser.com (roelof [10.0.0.2]) by nisser.com (8.9.3/8.9.2) with ESMTP id EAA96543; Mon, 22 Jan 2001 04:50:07 +0100 (CET) (envelope-from roelof@nisser.com) Message-ID: <3A6BADEF.B4101642@nisser.com> Date: Mon, 22 Jan 2001 04:50:07 +0100 From: Roelof Osinga Organization: Nisser - Nr. 1 in Veiligheid X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: seek3r2k Cc: freebsd-questions@FreeBSD.ORG Subject: Re: IP Aliasing Problems References: <3A6A60AE.6BFC3C0C@home.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG seek3r2k wrote: > > I have aliased my single NIC with the IP address 192.168.1.1/24, so that > i can port out a cable modem connection to my win machine, thus two > machines on a subnet. This is what my rc.conf looks like > > host="host name" > IPFILTER="YES" > IPNAT="YES > gateway_enable="YES" > ifconfig fxp0="DHCP" > ifconfig fxp0 inet 192.168.1.1 netmask 255.255.255.0 alias > ... > gateway address (192.168.1.10) and the external IP address from the > windows machine, but i can ping anything outside the network. what am I > doing wrong? I compiled the kernel with IPFILTER on. If they're all on the same subnet using a 0xFFFFFFFF mask ought to do the trick. Roelof PS you might want to make your rc.conf more like: ifconfig_xl0="inet 212.104.206.221 netmask 255.255.255.0" ifconfig_xl0_alias0="inet 212.104.206.222 netmask 255.255.255.255" ifconfig_xl0_alias1="inet 212.104.206.223 netmask 255.255.255.255" ifconfig_xl0_alias2="inet 212.104.206.224 netmask 255.255.255.255" ... -- Home is where the (@) http://eboa.com/ is. Nisser home -- http://www.Nisser.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message