Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2001 11:38:46 +0000 (GMT)
From:      Bart Pustjens <skin@takeover.lion-access.net>
To:        questions@freebsd.org
Subject:   Re: IP Aliasing Problems
Message-ID:  <Pine.BSO.4.21.0101251135400.12625-100000@takeover.lion-access.net>
In-Reply-To: <3A6BADEF.B4101642@nisser.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSO.4.21.0101251135400.12625-100000>