Date: Sun, 25 May 2003 13:09:31 +1000 (EST) From: Andy Farkas <andyf@speednet.com.au> To: Grant Peel <grant@thenetnow.com> Cc: freebsd-questions@freebsd.org Subject: Re: IP alias Networking Errors. Message-ID: <20030525130335.B23835-100000@hewey.af.speednet.com.au> In-Reply-To: <004c01c32268$78a49120$6401a8c0@grant>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 24 May 2003, Grant Peel wrote: > I am not sure if I am answering my own question here, but after reading the > man page, I got the impression, the new IPs should be assigned thier own > proper subnet, in this case 224. When I tried that, the first one was > accepted by ifconfig, but apache stopped showing the pages. Then, I tried > adding 224 to all the other IPs (new ones that is) and ifconfig would not > even accept them. > > When I set them back to netmask 255 everything seemed OK again. And I did > read through man ifconfig again.... > > So, I am back to this again. > > Name Type IP Address Netmask Status > fxp0 Ethernet 65.39.193.154 255.255.255.240 Up > fxp0:0 Ethernet (Virtual) 65.39.193.155 255.255.255.255 Up > fxp0:1 Ethernet (Virtual) 65.39.193.156 255.255.255.255 Up > fxp0:2 Ethernet (Virtual) 65.39.193.157 255.255.255.255 Up > fxp0:3 Ethernet (Virtual) 216.187.107.125 255.255.255.255 Up > fxp0:4 Ethernet (Virtual) 216.187.107.126 255.255.255.255 Up > fxp0:5 Ethernet (Virtual) 216.187.107.123 255.255.255.255 Up > fxp0:6 Ethernet (Virtual) 216.187.107.124 255.255.255.255 Up > fxp1 Ethernet 192.168.0.3 255.255.255.0 Up > lo0 Loopback 127.0.0.1 255.0.0.0 Up Well, it seems that ifconfig wants only the first alias in a different subnet to have the proper netmask, and all following to have 0xffffffff. So, change just fxp0:3 (from above) to have a netmask 0xffffffe0. -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030525130335.B23835-100000>