vlan interface marcada não obtém mac de ligação em que é definido

0

No Ubuntu 14.04, eu tenho um bond (bond1) configurado e há uma interface vlan (bond1.2000) em cima dele. O mac do título é definido para um endereço MAC fixo em vez de escolher aleatoriamente de uma das suas interfaces escravas.

Quando eu reinicio o Ubuntu, a interface de ligação recebe o mac codificado rígido, mas a interface vlan obtém o mac de um dos escravos do laço. Se eu ifdown / ifup a interface vlan, ele recebe o mac do vínculo.

Como faço para garantir que a interface vlan receba o mesmo mac configurado para a ligação? Eu tentei com "post-up sleep" no arquivo conf bond também, mas não fez nenhuma diferença.

root@ubuntu:~# cat /etc/network/interfaces.d/ifcfg-bond1
auto bond1
iface bond1 inet manual
hwaddress 00:11:ac:1d:d6:95
mtu 9100
bond-slaves ens4f0 ens4f1
bond-mode 802.3ad
bond-miimon 100
bond-use-carrier 1
bond-lacp-rate fast
bond-updelay 3000
bond-downdelay 1000
bond-ad-select bandwidth
bond-xmit-hash-policy layer3+4
#post-up sleep 45

root@ubuntu:~# cat /etc/network/interfaces.d/ifcfg-bond1.2000
auto bond1.2000
iface bond1.2000 inet manual
mtu 9100
vlan-raw-device bond1

Definição de ligação:

root@ubuntu:~# cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer3+4 (1)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 3000
Down Delay (ms): 1000

802.3ad info
LACP rate: fast
Min links: 0
Aggregator selection policy (ad_select): bandwidth
Active Aggregator Info:
        Aggregator ID: 1
        Number of ports: 2
        Actor Key: 33
        Partner Key: 15
        Partner Mac Address: 46:4c:a8:10:e0:a9

Slave Interface: ens4f1
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:11:00:61:14:71
Aggregator ID: 1
Slave queue ID: 0

Slave Interface: ens4f0
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:11:00:61:14:70
Aggregator ID: 1
Slave queue ID: 0
    
por Hem 13.04.2018 / 20:49

0 respostas