[systemd-devel] systemd-networkd: setting the MAC address for a .netdev unit?
poma
pomidorabelisima at gmail.com
Mon Jun 16 06:05:54 PDT 2014
MACA ddress in addition to
/etc/systemd/network/bridge0.netdev:
[NetDev]
Name=bridge0
Kind=bridge
MACAddress=00:12:34:56:78:90
The rest is here:
https://bugzilla.redhat.com/attachment.cgi?id=881142
journal-sd-networkd-214-2.git4997cb9.20140615-3.16.0-0.rc:
[ 16.629830] sd[1]: Starting Network Service...
[ 18.451500] netd[528]: timestamp of '/etc/sd/network' changed
[ 19.486750] netd[528]: bridge0 : creating netdev
[ 19.486975] netd[528]: bridge0 : loaded bridge
[ 19.824382] netd[528]: bond0 : creating netdev
[ 19.824636] netd[528]: bond0 : loaded bond
[ 20.077173] netd[528]: sd-rtnl: discarding 20 bytes of incoming message
[ 20.077422] netd[528]: bond0 : link 6 added
[ 20.077637] netd[528]: bond0 : udev initialized link
[ 20.077848] netd[528]: bond0 : netdev has index 6
[ 20.078041] netd[528]: bond0 : netdev ready
[ 20.078256] netd[528]: bond0 : flags change: +MASTER +MULTICAST +BROADCAST
[ 20.078469] netd[528]: bridge0 : link 5 added
[ 20.078652] netd[528]: bridge0 : udev initialized link
[ 20.078861] netd[528]: bridge0 : netdev has index 5
[ 20.079091] netd[528]: bridge0 : netdev ready
[ 20.079279] netd[528]: bridge0 : flags change: +MULTICAST +BROADCAST
[ 20.079492] netd[528]: enp3s0 : link 4 added
[ 20.079706] netd[528]: enp3s0 : udev initialized link
[ 20.079914] netd[528]: enp3s0 : flags change: +MULTICAST +BROADCAST
[ 20.080140] netd[528]: enp1s9 : link 3 added
[ 20.080349] netd[528]: enp1s9 : udev initialized link
[ 20.080562] netd[528]: enp1s9 : flags change: +MULTICAST +BROADCAST
[ 20.080760] netd[528]: enp1s6 : link 2 added
[ 20.080971] netd[528]: enp1s6 : udev initialized link
[ 20.081193] netd[528]: enp1s6 : flags change: +MULTICAST +BROADCAST
[ 20.081409] netd[528]: lo : link 1 added
[ 20.081656] netd[528]: lo : udev initialized link
[ 20.081894] netd[528]: lo : flags change: +LOOPBACK +UP +LOWER_UP +RUNNING
[ 20.082122] netd[528]: lo : gained carrier
[ 20.082365] netd[528]: bridge0 : udev initialized link
[ 20.082575] netd[528]: bond0 : udev initialized link
[ 20.082801] netd[528]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 error=n/a
[ 20.083047] sd[1]: Started Network Service.
[ 20.083305] netd[528]: bond0 : netdev exists, using existing
[ 20.083807] netd[528]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.6 object=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 error=n/a
[ 20.084098] netd[528]: Got message type=signal sender=org.freedesktop.DBus destination=:1.6 object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired cookie=2 reply_cookie=0 error=n/a
[ 20.084317] netd[528]: bond0 : link state is up-to-date
[ 20.084523] netd[528]: bond0 : found matching network '/etc/sd/network/bond0bridge0.network'
[ 20.084745] netd[528]: bond0 : enslaving by 'bridge0'
[ 20.084951] netd[528]: bridge0 : enslaving link 'bond0'
[ 20.085168] netd[528]: bridge0 : getting address failed: Device or resource busy
[ 20.085378] netd[528]: bridge0 : link state is up-to-date
[ 20.085583] netd[528]: bridge0 : found matching network '/etc/sd/network/bridge0dhcp.network'
[ 20.085778] netd[528]: bridge0 : bringing link up
[ 20.085978] netd[528]: enp3s0 : getting address failed: Device or resource busy
[ 20.086423] netd[528]: enp3s0 : link state is up-to-date
[ 20.086619] netd[528]: enp3s0 : found matching network '/etc/sd/network/enp3s0bond0.network'
[ 20.086813] netd[528]: enp3s0 : enslaving by 'bond0'
[ 20.095531] netd[528]: bond0 : enslaving link 'enp3s0'
[ 20.095742] netd[528]: enp1s9 : getting address failed: Device or resource busy
[ 20.095939] netd[528]: enp1s9 : link state is up-to-date
[ 20.096150] netd[528]: enp1s9 : found matching network '/etc/sd/network/enp1s9bond0.network'
[ 20.096344] netd[528]: enp1s9 : enslaving by 'bond0'
[ 20.103923] netd[528]: bond0 : enslaving link 'enp1s9'
[ 20.104192] netd[528]: enp1s6 : getting address failed: Device or resource busy
[ 20.104416] netd[528]: enp1s6 : link state is up-to-date
[ 20.104656] netd[528]: enp1s6 : unmanaged
[ 20.104870] netd[528]: lo : getting address failed: Device or resource busy
[ 20.105123] netd[528]: lo : link state is up-to-date
[ 20.105357] netd[528]: lo : unmanaged
[ 20.105575] netd[528]: sd-rtnl: discarding 20 bytes of incoming message
[ 20.105761] netd[528]: lo : added address: ::1/128
[ 20.105982] netd[528]: lo : added address: 127.0.0.1/8
[ 20.106213] netd[528]: bond0 : enslaved
[ 20.106398] netd[528]: bond0 : bringing link up
[ 20.106622] netd[528]: bond0 : link configured
[ 20.106854] netd[528]: bridge0 : flags change: +UP
[ 20.107110] netd[528]: bond0 : MAC address: 00:12:34:56:78:30
[ 20.107290] netd[528]: enp3s0 : flags change: +UP
[ 20.107467] netd[528]: enp3s0 : flags change: +SLAVE
[ 20.107642] netd[528]: enp3s0 : enslaved
[ 20.107818] netd[528]: enp3s0 : link configured
[ 20.107993] netd[528]: enp1s9 : MAC address: 00:12:34:56:78:30
[ 20.108189] netd[528]: enp1s9 : flags change: +UP
[ 20.108368] netd[528]: enp1s9 : flags change: +SLAVE
[ 20.108547] netd[528]: enp1s9 : enslaved
[ 20.108725] netd[528]: enp1s9 : link configured
[ 20.108904] netd[528]: bond0 : flags change: +UP +LOWER_UP
[ 20.825354] netd[528]: bond0 : flags change: +RUNNING
[ 20.825571] netd[528]: bond0 : gained carrier
[ 20.826187] netd[528]: bridge0 : flags change: +LOWER_UP +RUNNING
[ 20.826392] netd[528]: bridge0 : gained carrier
[ 20.826576] netd[528]: bridge0 : acquiring DHCPv4 lease
[ 20.826760] netd[528]: DHCP CLIENT (0x959e4fa2): STARTED on ifindex 5 with address 0:12:34:56:78:90
[ 20.826940] netd[528]: DHCP CLIENT (0x959e4fa2): DISCOVER
[ 21.656525] netd[528]: enp1s9 : flags change: +LOWER_UP +RUNNING
[ 21.656750] netd[528]: enp1s9 : gained carrier
[ 21.748122] netd[528]: enp3s0 : flags change: +LOWER_UP +RUNNING
[ 21.748390] netd[528]: enp3s0 : gained carrier
[ 21.816556] netd[528]: bond0 : added address: fe80::212:34ff:fe56:7830/64
[ 22.053448] netd[528]: bridge0 : added address: fe80::212:34ff:fe56:7890/64
[ 23.710644] netd[528]: DHCP CLIENT (0x959e4fa2): DISCOVER
[ 23.711247] netd[528]: DHCP CLIENT (0x959e4fa2): OFFER
[ 23.711452] netd[528]: DHCP CLIENT (0x959e4fa2): REQUEST (requesting)
[ 23.711636] netd[528]: DHCP CLIENT (0x959e4fa2): receieved message was not an ACK, ignoring
[ 23.711958] netd[528]: DHCP CLIENT (0x959e4fa2): ACK
[ 23.712177] netd[528]: DHCP CLIENT (0x959e4fa2): lease expires in 9min 57.819660s
[ 23.712413] netd[528]: DHCP CLIENT (0x959e4fa2): T2 expires in 8min 42.692668s
[ 23.712653] netd[528]: DHCP CLIENT (0x959e4fa2): T1 expires in 4min 59.531914s
[ 23.712893] netd[528]: bridge0 : DHCPv4 address 192.168.2.37/24 via 192.168.2.1
[ 23.713136] netd[528]: bridge0 : setting addresses
[ 23.713323] netd[528]: bridge0 : addresses set
[ 23.713512] netd[528]: bridge0 : setting routes
[ 23.713696] netd[528]: bridge0 : routes set
[ 23.713881] netd[528]: bridge0 : link configured
poma
More information about the systemd-devel
mailing list