IP alias Networking Errors.

Andy Farkas andyf at speednet.com.au
Sat May 24 20:09:35 PDT 2003


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 at speednet.com.au

        Andy Farkas
    System Administrator
   Speednet Communications
 http://www.speednet.com.au/





More information about the freebsd-questions mailing list