[opensuse] sshd.service (openssh) fails on boot when primary listener is a bridge (br0) instead of real interface (eth0). What dependency is needed?
Hi, opensuse 13.2's openssh /usr/lib/systemctl/systemd/sshd.service has a After=network.target dependency. When a real ethernet interface, eth0, is the primary 'net listener, cat /etc/sysconfig/network/ifcfg-eth0 STARTMODE='auto' BOOTPROTO='static' IPADDR='192.168.1.1/24' sshd, listening on 192.168.1.1, has no problems on boot. But, if I switch to using a bridge interface, br0, with eth0 as the real interface assigned to it, cat /etc/sysconfig/network/ifcfg-eth0 STARTMODE='auto' BOOTPROTO='none' cat /etc/sysconfig/network/ifcfg-br0 STARTMODE='auto' BOOTPROTO='static' BRIDGE='yes' BRIDGE_PORTS='eth0' IPADDR0='192.168.1.1/24' sshd fails on boot journalctl -b | grep -i sshd ... Apr 10 15:30:49 xen01 sshd[1345]: error: Bind to port 22 on 192.168.1.1 failed: Cannot assign requested address. ... Apparently, network.target 'waits' for *real* interfaces only. Once at the shell, br0 is fully up. sshd can be started, and it functions normally. What specific dependency can I add to the sshd unit to get it to wait for br0 being fully up? LT -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
This is a pretty big deal for a remote machine -- you lose ssh connectivity & access! I filed a bug on this at https://bugzilla.opensuse.org/show_bug.cgi?id=926835 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
lyndat3@your-mail.com