Re: Loosing alias IPs
- From: Tom Judge <tom@xxxxxxxxxxxx>
- Date: Fri, 24 Aug 2007 14:11:58 +0100
Buki wrote:
On Mon, Aug 20, 2007 at 10:34:49AM -0700, Doug Barton wrote:FYI, this isn't really a question for -isp, freebsd-questions@xxxxxxxxxxx would have been a better choice.
On Sun, 19 Aug 2007, Pavlos Georgiadis wrote:
Hello,You probably want to do this either in dhclient.conf or in a dhclient-exit-hooks script. Check the man pages to get an idea of how to go about this, and ask on -questions if you need more help.
I have a FreeBSD 6.2 server that get's his IP address from DHCP
(although this IP is static). I have also configured 3 more alias IP
addresses.
My problem is that anytime the DHCP lease is renewed (with the same IP
address always), one of the 3 aliases is lost.
Is this a bug? Or am I doing something wrong?
My setup is as follows:
the IP address that the server gets by DHCP is X.X.139.45
rc.conf
ifconfig_em0="DHCP"
ifconfig_em0_alias0="inet X.X.141.113 netmask 0xfffff000"
ifconfig_em0_alias1="inet X.X.142.124 netmask 0xfffff000"
ifconfig_em0_alias2="inet X.X.142.128 netmask 0xfffff000"
Also, aliased Ip addresses must be configured with netmask /32
This is only true if the IP aliases are in the same network as the first IP address. The following would be a valid configuration:
ifconfig_em0="inet 192.168.0.1/24"
ifconfig_em0_alias0="inet 192.168.0.2/32"
ifconfig_em0_alias1="inet 192.168.1.1/24"
ifconfig_em0_alias2="inet 192.168.1.2/32"
Tom
Good luck,
Doug
--
This .signature sanitized for your protection
Buki
_______________________________________________
freebsd-isp@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isp
To unsubscribe, send any mail to "freebsd-isp-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Loosing alias IPs
- From: Buki
- Re: Loosing alias IPs
- References:
- Loosing alias IPs
- From: Pavlos Georgiadis
- Re: Loosing alias IPs
- From: Doug Barton
- Re: Loosing alias IPs
- From: Buki
- Loosing alias IPs
- Prev by Date: Re: Loosing alias IPs
- Next by Date: Re: Loosing alias IPs
- Previous by thread: Re: Loosing alias IPs
- Next by thread: Re: Loosing alias IPs
- Index(es):
Relevant Pages
|
|