em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether 74:d4:35:1a:b5:37 txqueuelen 1000 (Ethernet) RX packets 10912543 bytes 15860446938 (14.7 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 5389161 bytes 461229048 (439.8 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 20 memory 0xf0500000-f0520000 bridge0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.4.100 netmask 255.255.255.0 broadcast 192.168.4.255 inet6 fe80::76d4:35ff:fe1a:b537 prefixlen 64 scopeid 0x20<link> ether 74:d4:35:1a:b5:37 txqueuelen 0 (Ethernet) RX packets 7353297 bytes 15478919588 (14.4 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 5370959 bytes 438417978 (418.1 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 You can see the MAC address is the same. Also perhaps the only reason is that em1 is the only *hardware* slave?
On Dec 22, 2015, at 12:16 PM, Chuck Anderson <cra WPI EDU> wrote: Thanks, can you please show me the output of: ifconfig bridge0 ifconfig em1 On Tue, Dec 22, 2015 at 12:13:15PM -0700, Nathanael Noblet wrote:I’m using F23 with a bridge. These are my config files. [root iridium gnat]# cat /etc/sysconfig/network-scripts/ifcfg-Bridge_connection_1 DEVICE=bridge0 STP=no TYPE=Bridge BOOTPROTO=dhcp DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no NAME="Bridge connection 1" UUID=62a5d08c-1e57-4f03-8ee3-f9998b6c5714 ONBOOT=yes ZONE=dmz PEERDNS=yes PEERROUTES=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_PRIVACY=no Slave: [root iridium gnat]# cat /etc/sysconfig/network-scripts/ifcfg-em1 HWADDR=74:D4:35:1A:B5:37 TYPE=Ethernet NAME=em1 UUID=12721930-c418-4f00-9476-5e08d2150faf DEVICE=em1 ONBOOT=yes BRIDGE=bridge0 ZONE=dmz BRIDGING_OPTS=path_cost=19 My router is configured to give MAC address 74:D4:35:1A:B5:37 a static IP. Then I have a vm network attached to the bridge and they each get their own IPs as well. Hope that helps.On Dec 22, 2015, at 11:03 AM, Chuck Anderson <cra WPI EDU> wrote: 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...
Attachment:
smime.p7s
Description: S/MIME cryptographic signature