Multiple IP Addresses

Abdul Salam abdul at netsite.co.uk
Mon May 12 14:03:59 BST 2003


Hi Simon,

Thanks for that. It works fine now. But, there were not much useful
information on the FreeBSD site about this. Here is the example given in
the "man" of rc.conf.

		   ifconfig_ed0_alias0=3D"inet 127.0.0.251 netmask
0xffffffff"
		   ifconfig_ed0_alias1=3D"inet 127.0.0.252 netmask
0xffffffff"
		   ifconfig_ed0_alias2=3D"inet 127.0.0.253 netmask
0xffffffff"
		   ifconfig_ed0_alias4=3D"inet 127.0.0.254 netmask
0xffffffff"

where all netmasks are the same.

Many Thanks,

-Abdul



-----Original Message-----
From: Simon Dick [mailto:simond at irrelevant.org]=20
Sent: 12 May 2003 01:58
To: Abdul Salam
Cc: freebsd-users at uk.freebsd.org
Subject: Re: Multiple IP Addresses

On Mon, 2003-05-12 at 13:44, Abdul Salam wrote:
> 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 =3D =B4inet 172.16.1.185 netmask 255.25..0.0=A1
>=20
> Ifconfig_fxp0_alias1 =3D =B4inet 172.16.1.186 netmask 255.25..0.0=A1=20
>=20
> 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.

Try using a netmask of 255.255.255.255 for all except one IP address on
the same netblock (also I assume the 255.25..0.0 is a typo :)


________________________________________
Mail and any attachments checked for known=20
viruses by Netsite Anti-Virus System.
If you have any comments regarding this policy=20
please direct them to postmaster at netsite.co.uk.


________________________________________
Mail and any attachments checked for known 
viruses by Netsite Anti-Virus System.
If you have any comments regarding this policy 
please direct them to postmaster at netsite.co.uk.




More information about the Ukfreebsd mailing list