[pve-devel] [PATCH 2/2] improve arp setup

Alexandre DERUMIER aderumier at odiso.com
Tue Aug 27 17:17:30 CEST 2013


10.3.94.0/24 dev bond0.94  proto kernel  scope link  src 10.3.94.31 
10.7.0.0/24 dev bond1  proto kernel  scope link  src 10.7.0.40 
10.6.0.0/16 dev eth3  proto kernel  scope link  src 10.6.0.30 
10.5.0.0/16 dev eth2  proto kernel  scope link  src 10.5.0.30 
default via 10.3.94.1 dev bond0.94 

(note that I don't have vmbr0 on this host)

/etc/network/interfaces


auto eth2
iface eth2 inet static
	address 10.5.0.30
	netmask 255.255.0.0
	mtu 9000

auto eth3
iface eth3 inet static
	address 10.6.0.30
	netmask 255.255.0.0
	mtu 9000


auto eth4
iface eth4 inet manual
	mtu 9000
	post-up  ifconfig eth4 mtu 9000

auto eth5
iface eth5 inet manual
	mtu 9000
	post-up  ifconfig eth5 mtu 9000

auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode active-backup
pre-up ifup eth0 eth1
post-down ifdown eth0 eth1


auto bond1
iface bond1 inet static
	address 10.7.0.40
        netmask 255.255.255.0
	broadcast 10.7.0.255

        bond-mode 4
        bond-miimon 100
        bond-lacp_rate fast
	bond-xmit-hash-policy layer2+3
	mtu 9000
        slaves eth4 eth5

auto bond0.94
iface bond0.94 inet static
        address 10.3.94.31
        netmask 255.255.255.0
        gateway 10.3.94.1

auto vmbr1
iface vmbr1 inet manual
	bridge_ports bond0
	bridge_stp off
	bridge_fd 0
	post-up echo 0 > /sys/devices/virtual/net/vmbr1/bridge/multicast_snooping

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

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mardi 27 Août 2013 16:57:51 
Objet: RE: [pve-devel] [PATCH 2/2] improve arp setup 

Please can you post the output from 'ip route list' and the ip (to reproduce it)? 

> -----Original Message----- 
> From: Alexandre DERUMIER [mailto:aderumier at odiso.com] 
> Sent: Dienstag, 27. August 2013 15:27 
> To: Dietmar Maurer 
> Cc: pve-devel at pve.proxmox.com 
> Subject: Re: [pve-devel] [PATCH 2/2] improve arp setup 
> 
> seem that is never matched 
> 
> $net->overlaps($ipobj) = 3->overlaps(3) 
> $IP_B_IN_A_OVERLAP = -2 
> 
> my $net = new Net::IP($subnet); 
> if ($net->overlaps($ipobj) == $IP_B_IN_A_OVERLAP) { 
> $devinfo = { 
> iface => $dev, 
> net => $net, 
> }; 
> $devinfo->{gateway} = $gw if $gw; 
> } 
> 
> 
> then devinfo is empty and hang 
> 
> if ($devinfo->{net}->overlaps(Net::IP->new($gateway)) == 
> $IP_B_IN_A_OVERLAP) { 
> $devinfo->{gateway} = $gateway; 
> } 



More information about the pve-devel mailing list