bridge questions
- From: Chuck Anderson <cra WPI EDU>
- To: networkmanager-list gnome org
- Subject: bridge questions
- Date: Tue, 22 Dec 2015 13:03:17 -0500
I'm using Fedora 23.
How do I create a bridge with an unchanging MAC address? Ideally, I'd
like to be able to clone the MAC address of the first slave device. I
tried setting HWADDR= and MACADDR= in the ifcfg file for the bridge,
but everytime the bridge is activated a new random MAC address is used
for the bridge device. I need an unchanging MAC address so that my
DHCP server can assign the same IP to the system's bridge interface.
# cat /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
STP=no
TYPE=Bridge
IPV6INIT=no
NAME=br0
UUID=f77b4a25-526d-4a7f-a5fd-3698e02d1ac5
ONBOOT=yes
# I tried each of these and both together:
#HWADDR=B8:CA:3A:8C:C4:B8
#MACADDR=B8:CA:3A:8C:C4:B8
# cat /etc/sysconfig/network-scripts/ifcfg-br0_slave_eno1
HWADDR=B8:CA:3A:8C:C4:B8
TYPE=Ethernet
NAME="br0 slave eno1"
UUID=e297c8ac-ba8b-434e-b8d0-714995cecf8e
DEVICE=eno1
ONBOOT=yes
BRIDGE=br0
Since I couldn't get the above to work, I next tried setting the
underlying ethernet device "eno1" to use DHCP. But after adding this
same device (eno1) as a slave for a new bridge (br0), now it seems the
br0 device never gets configured with eno1 as a slave.
# cat /etc/sysconfig/network-scripts/ifcfg-eno1
# Generated by dracut initrd
NAME="eno1"
DEVICE="eno1"
ONBOOT=yes
NETBOOT=yes
UUID="1cddebe7-e202-4300-9fe6-fb46b9a0415e"
IPV6INIT=yes
TYPE=Ethernet
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
BOOTPROTO=dhcp
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
Dec 22 12:57:39 workstation NetworkManager[1087]: <info> (br0): new Bridge device (carrier: OFF, driver:
'bridge', ifindex: 21)
Dec 22 12:57:39 workstation NetworkManager[1087]: <info> (br0): device state change: unmanaged ->
unavailable (reason 'managed') [10 20 2]
Dec 22 12:57:39 workstation systemd-udevd[18904]: Could not generate persistent MAC address for br0: No such
file or directory
Dec 22 12:57:39 workstation kernel: IPv6: ADDRCONF(NETDEV_UP): br0: link is not ready
Dec 22 12:57:39 workstation NetworkManager[1087]: <info> (br0): device state change: unavailable ->
disconnected (reason 'none') [20 30 0]
Dec 22 12:57:39 workstation NetworkManager[1087]: <info> (br0): Activation: starting connection 'br0'
(f77b4a25-526d-4a7f-a5fd-3698e02d1ac5)
Dec 22 12:57:39 workstation NetworkManager[1087]: <info> (br0): device state change: disconnected -> prepare
(reason 'none') [30 40 0]
Dec 22 12:57:39 workstation NetworkManager[1087]: <info> (br0): device state change: prepare -> config
(reason 'none') [40 50 0]
Dec 22 12:57:40 workstation NetworkManager[1087]: <info> (br0): device state change: config -> ip-config
(reason 'none') [50 70 0]
Dec 22 12:57:40 workstation NetworkManager[1087]: <info> (br0): device state change: ip-config ->
secondaries (reason 'ip-config-unavailable') [70 90 5]
Dec 22 12:57:40 workstation NetworkManager[1087]: <info> (br0): device state change: secondaries ->
activated (reason 'none') [90 100 0]
Dec 22 12:57:40 workstation kernel: IPv6: ADDRCONF(NETDEV_UP): br0: link is not ready
Dec 22 12:57:40 workstation NetworkManager[1087]: <info> (br0): Activation: successful, device activated.
Dec 22 12:57:40 workstation nm-dispatcher[18762]: Dispatching action 'up' for br0
# brctl show br0
bridge name bridge id STP enabled interfaces
br0 8000.000000000000 no
So I'm stuck in a situation where I can't create a bridge that I'd
like to use for KVM (virt-manager) where the host itself still has IP
connectivity over that same physical Ethernet port...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]