From owner-freebsd-questions Thu Jan 25 2:32:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from takeover.lion-access.net (takeover.lion-access.net [212.19.220.11]) by hub.freebsd.org (Postfix) with ESMTP id BA1CF37B400 for ; Thu, 25 Jan 2001 02:32:13 -0800 (PST) Received: from localhost (skin@localhost) by takeover.lion-access.net (8.10.2/8.10.1) with ESMTP id f0PBe6e27542 for ; Thu, 25 Jan 2001 11:40:06 GMT Date: Thu, 25 Jan 2001 11:38:46 +0000 (GMT) From: Bart Pustjens To: questions@freebsd.org Subject: Re: IP Aliasing Problems In-Reply-To: <3A6BADEF.B4101642@nisser.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 22 Jan 2001, Roelof Osinga wrote: > 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. > > 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" > ... > I added these lines for my ep0 and IP's but after a reboot FTPD and Apache stopped working. I could still connect to port 21 but after a while it timed out and Apache didn't start anymore ? I removed the lines I added and rebooted: everything worked again ? What are the consequences of adding an ifconfig_ep0_alias0 to rc.conf ? With regards, Bart Pustjens To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message