I need to make bridge interface with hot-plug eth1,eth2… (usb ethernet devices) with dhcp server for /24 network.
Linux computer (server) has not NetworkManager and use a wicked.
Problems:
Empty bridge interface is not starting after boot. It up after connect a first member interface (eth1).
I’ve wrote to bridge0 a master IP address of the dhcp server. Dhcpd won’t start without br0 interface.
LINK_REQUIRED=‘no’ in [FONT=monospace]ifcfg-br0 not help me.
Is it possible to start “empty” bridge interface with wicked as it possible with NetworkManager?
[/FONT]
[FONT=monospace][FONT=monospace][FONT=monospace]ifcfg-br0
[/FONT][/FONT][/FONT]
Ok, I’ve remove IP address from br0 and made dummy interface to connect it to bridge and set the IP address to dummy0.
So, br0 is up and consist dummy0, but dummy0 has not the IP address (with netmask /24).
I can manually set IP xx.xx.xx.xx/24 to dummy0, but wicked can’t do it (I think, /32 mask available only).
lsusb | grep Ether
Bus 003 Device 004: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Bus 002 Device 002: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
ip addr show dev eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 28:ee:52:01:67:7e brd ff:ff:ff:ff:ff:ff
altname enp0s20u3
ip addr show dev eth2
4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 28:ee:52:01:68:2f brd ff:ff:ff:ff:ff:ff
altname enp0s20u5
brctl show
bridge name bridge id STP enabled interfaces
br0 8000.d2b8d4fc6694 no eth2
That link is oh so old … I would not use it…
I should add eth1 is used for vagrant, eth2/bridge/tap for qemu machines.
Of course it is possible. Just do not list any slave ports in bridge interface configurarion. The problem is not to start empty bridge, but to add ports to it later. In NM master bridge is property of slave connection - so you can start and stop slave at any point and it will be added to bridge and removed from bridge as needed. In wicked list of slaves is property of bridge and slaves must exist before bridge can be created.