[systemd-devel] [215] bridge with static network does not work

Gerardo Exequiel Pozzi vmlinuz386 at gmail.com
Tue Jul 29 15:47:20 PDT 2014


On 07/29/2014 06:24 PM, Gerardo Exequiel Pozzi wrote:
> Hello,
> 
> Setting up a bridge with systemd-networkd does not works for me. Doing
> things manually works. (no network, can not ping other hosts). Output of
> "ip addr" looks same in both cases.
> 
> I am sure that I am doing things correctly, if not please let me know.
> Thanks.

By the way, If after start networkd, I set br0 to promisc executing "ip
link set br0 promisc on", network works fine, but of course now "br0"
shows PROMISC under "ip link".

> 
> systemd-networkd config looks like:
> # cat br0.netdev
> [NetDev]
> Name=br0
> Kind=bridge
> 
> # cat br0.network
> [Match]
> Name=br0
> 
> [Network]
> Address=192.168.0.77/24
> Gateway=192.168.0.1
> 
> # cat enp0s16.network
> [Match]
> Name=enp0s16
> 
> [Network]
> Bridge=br0
> 
> and manual commands for the same (works):
> 
> ip link add name br0 type bridge
> ip addr add 192.168.0.77/24 broadcast + dev br0
> ip link set dev enp0s16 master br0
> ip link set dev br0 up
> ip link set dev enp0s16 up
> ip route add default via 192.168.0.1
> 
> 
> In both cases the output of "ip addr" is:
> 
> 2: enp0s16: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> master br0 state UP group default qlen 1000
>     link/ether 00:17:31:bb:44:19 brd ff:ff:ff:ff:ff:ff
>     inet6 fe80::217:31ff:febb:4419/64 scope link
>        valid_lft forever preferred_lft forever
> 8: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state
> UP group default
>     link/ether 00:17:31:bb:44:19 brd ff:ff:ff:ff:ff:ff
>     inet 192.168.0.77/24 brd 192.168.0.255 scope global br0
>        valid_lft forever preferred_lft forever
>     inet6 fe80::217:31ff:febb:4419/64 scope link
>        valid_lft forever preferred_lft forever
> 
> and "bridge fdb":
> 
> 01:00:5e:00:00:01 dev enp0s16 self permanent
> 33:33:00:00:00:01 dev enp0s16 self permanent
> 33:33:ff:bb:44:19 dev enp0s16 self permanent
> 00:19:3e:ea:c5:54 dev enp0s16 vlan 0
> 00:21:29:98:d4:f3 dev enp0s16 vlan 0
> 00:17:31:bb:44:19 dev enp0s16 vlan 0 permanent
> 
> 
> Have a nice day!
> 
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140729/cd8debcc/attachment.sig>


More information about the systemd-devel mailing list