I'm on Ubuntu 18.04. According to the pastes below:
- mac address of
eno1
0c:c4:7a:c6:ae:26 - mac address of
eno2
0c:c4:7a:c6:ae:27 - mac address of
bond1
(bondig ofeno1
andeno2
) 92:da:30:66:27:50
Why 92:da:30:66:27:50 for bond1? No relation with the mac address of eno1
and eno2
.
network:
version: 2
renderer: networkd
bonds:
bond0:
addresses:
- 192.168.235.133/25
gateway4: 192.168.235.254
interfaces:
- enp2s0f0
- enp2s0f1
nameservers:
addresses:
- 172.31.131.21
- 172.31.131.31
search:
- mgt.in.ac-versailles.fr
parameters:
mii-monitor-interval: 100
mode: active-backup
bond1:
addresses:
- 10.90.90.1/24
interfaces:
- eno1
- eno2
parameters:
mii-monitor-interval: 100
mode: active-backup
ethernets:
eno1:
dhcp4: 'no'
eno2:
dhcp4: 'no'
enp2s0f0:
dhcp4: 'no'
enp2s0f1:
dhcp4: 'no'
~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: bond1: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 92:da:30:66:27:50 brd ff:ff:ff:ff:ff:ff
3: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
link/ether 86:ee:c1:e3:19:e8 brd ff:ff:ff:ff:ff:ff
4: enp2s0f0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
link/ether 86:ee:c1:e3:19:e8 brd ff:ff:ff:ff:ff:ff
5: enp2s0f1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000
link/ether 86:ee:c1:e3:19:e8 brd ff:ff:ff:ff:ff:ff
6: eno1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP mode DEFAULT group default qlen 1000
link/ether 92:da:30:66:27:50 brd ff:ff:ff:ff:ff:ff
7: eno2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP mode DEFAULT group default qlen 1000
link/ether 92:da:30:66:27:50 brd ff:ff:ff:ff:ff:ff
~$ ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: bond1: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 92:da:30:66:27:50 brd ff:ff:ff:ff:ff:ff
inet 10.90.90.1/24 brd 10.90.90.255 scope global bond1
valid_lft forever preferred_lft forever
inet6 fe80::90da:30ff:fe66:2750/64 scope link
valid_lft forever preferred_lft forever
3: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 86:ee:c1:e3:19:e8 brd ff:ff:ff:ff:ff:ff
inet 192.168.235.133/25 brd 192.168.235.255 scope global bond0
valid_lft forever preferred_lft forever
inet6 fe80::84ee:c1ff:fee3:19e8/64 scope link
valid_lft forever preferred_lft forever
4: enp2s0f0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP group default qlen 1000
link/ether 86:ee:c1:e3:19:e8 brd ff:ff:ff:ff:ff:ff
5: enp2s0f1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP group default qlen 1000
link/ether 86:ee:c1:e3:19:e8 brd ff:ff:ff:ff:ff:ff
6: eno1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP group default qlen 1000
link/ether 92:da:30:66:27:50 brd ff:ff:ff:ff:ff:ff
7: eno2: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond1 state UP group default qlen 1000
link/ether 92:da:30:66:27:50 brd ff:ff:ff:ff:ff:ff
~$ cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: enp2s0f0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: enp2s0f0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 0c:c4:7a:83:fe:fe
Slave queue ID: 0
Slave Interface: enp2s0f1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 0c:c4:7a:83:fe:ff
Slave queue ID: 0
~$ cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eno2
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eno2
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 0c:c4:7a:c6:ae:27
Slave queue ID: 0
Slave Interface: eno1
MII Status: up
Speed: 10000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 0c:c4:7a:c6:ae:26
Slave queue ID: 0