Multiple IP Addresses

Kevin O Connor kevin at rainford.org.uk
Mon May 12 22:32:26 BST 2003




---------- Original Message -----------
From: "Abdul Salam" <abdul at netsite.co.uk>
To: <freebsd-users at uk.freebsd.org>
Sent: Mon, 12 May 2003 13:44:12 +0100
Subject: Multiple IP Addresses

> Hi..
>  
> I have a FreeBSD installation with single IP address at the moment. I
> want to add one more IP address, so I have added one more alias in
> rc.conf with the second IP address. Here is how it looks now.
>  
> Ifconfig_fxp0_alias0 = "inet 172.16.1.185 netmask 255.25..0.0"
> Ifconfig_fxp0_alias1 = "inet 172.16.1.186 netmask 255.25..0.0" 
>  
> But, still my server is only bound to first IP address. Is there
> anything more I have to do for this? Any help will be appreciated.
>  
> Thanks in advance.
>  
> -Abdul
>  
Just a small point here you have created two alias IP addresses not a "real" 
address and an alias I think what you intend is

ifconfig fxp0 = "inet 172.16.1.185 netmask 255.255.0.0"
ifconfig fxp0_alias0 = "inet 172.16.1.186 netmask 255.255.255.255"
 but the important bit is that the alias or aliases should except in special 
cases have 255.255.255.255 as a mask when bound to the same subnet
regards
Kevin




More information about the Ukfreebsd mailing list