Date: Mon, 22 Jan 2001 04:50:07 +0100 From: Roelof Osinga <roelof@nisser.com> To: seek3r2k <hbessaha@home.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: IP Aliasing Problems Message-ID: <3A6BADEF.B4101642@nisser.com> References: <3A6A60AE.6BFC3C0C@home.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A6BADEF.B4101642>