[pve-devel] dhcp server

Alexandre DERUMIER aderumier at odiso.com
Sun Jul 27 12:55:48 CEST 2014


just tested with a ipv6 hostname, it's working fine

/usr/share/perl5/PVE/APIDaemon.pm

    my $socket = IO::Socket::IP->new(
        LocalAddr => $args{host} || undef,
        LocalPort => $args{port} || 80,
        Listen => SOMAXCONN,
        Proto  => 'tcp',
        ReuseAddr => 1) ||
        die "unable to create socket - $@\n";


with 

/etc/hosts
2001:db8:a:f::2 kvmtest1 pvelocalhost


root at kvmtest1:~# netstat -anp|grep 8006
tcp6       0      0 2001:db8:a:f::2:8006                :::*                    LISTEN      32003/pveproxy

----- Mail original ----- 

De: "Alexandre DERUMIER" <aderumier at odiso.com> 
À: "Dietmar Maurer" <dietmar at proxmox.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Dimanche 27 Juillet 2014 10:12:01 
Objet: Re: [pve-devel] dhcp server 

>>That listens on both addresses (ipv4 and ipv6)? 

Michael said me that for listen on both ipv4 and ipv6 at the same time, we need to create 2 sockets. 

But I think that it should work if you listen on ipv4 or ipv6. 


(I don't known other impacts of dual ipv4 && ipv6 stack on host, with communications between deamon) 


----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: "Michael Rasmussen" <mir at datanom.net>, pve-devel at pve.proxmox.com 
Envoyé: Samedi 26 Juillet 2014 15:53:58 
Objet: RE: [pve-devel] dhcp server 

> >>That sounds good (no changes needed) ;-) 
> 
> I have done some tests, it's working fine with ipv4, no regression. 

That listens on both addresses (ipv4 and ipv6)? 
_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list