[systemd-devel] The Bridge on the River PID EINS
poma
pomidorabelisima at gmail.com
Sun Mar 9 03:46:24 PDT 2014
On 09.03.2014 05:58, poma wrote:
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> STATIC OK!
>
> $ ll /etc/systemd/network/
> ... enp3s0.network
>
> $ cat /etc/systemd/network/enp3s0.network
> [Match]
> Name=enp3s0
>
> [Network]
> Address=192.168.2.2/24
> Gateway=192.168.2.1
> DNS=192.168.2.1
>
> # journalctl -b -u systemd-networkd
> -- Logs begin at ...
> ... systemd-networkd[630]: enp3s0: carrier on
> ... systemd-networkd[630]: enp3s0: link configured
>
> $ ifconfig enp3s0
> enp3s0: flags=...
> inet 192.168.2.2 netmask 255.255.255.0 broadcast 192.168.2.255
> inet6 ...
> ether ...
> ...
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> BRIDGED !?
>
> $ ll /etc/systemd/network/
> ... bridge0.netdev
> ... enp3s0.network
>
> $ cat /etc/systemd/network/enp3s0.network
> [Match]
> Name=enp3s0
>
> [Network]
> Address=192.168.2.2/24
> Gateway=192.168.2.1
> DNS=192.168.2.1
> Bridge=bridge0
>
> $ cat /etc/systemd/network/bridge0.netdev
> [NetDev]
> Name=bridge0
> Kind=bridge
>
> # journalctl -b -u systemd-networkd.service
> -- Logs begin at ...
>
> $ ifconfig enp3s0
> enp3s0: flags=...
> ether ...
> ...
>
> $ brctl show
> bridge name bridge id STP enabled interfaces
> bridge0 8000.000000000000 no
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> /var/log/messages
> Mar 2 11:58:23 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 12:17:48 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 15:30:22 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 15:43:30 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 16:20:23 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 16:59:46 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 17:07:11 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 17:21:28 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 17:25:10 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 17:31:31 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 17:45:50 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 22:01:00 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 22:04:25 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 22:07:43 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 22:13:41 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 22:16:01 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 22:18:01 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 22:22:34 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 2 22:26:21 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 3 12:41:36 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 3 14:00:57 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 3 14:05:28 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 3 14:11:01 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 3 14:13:55 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 3 19:13:29 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 3 22:50:51 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 3 23:13:24 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 3 23:49:55 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 3 23:55:36 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 3 23:55:36 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 00:01:02 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 01:30:19 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 02:01:35 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 10:53:55 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 10:57:12 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 11:00:52 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 11:03:38 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 11:24:47 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 11:36:35 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 11:52:22 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 11:57:44 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 12:01:37 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 13:08:03 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 13:54:37 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 14:52:27 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 14:52:27 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 16:28:29 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 16:43:03 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 17:30:47 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 17:34:10 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 17:43:09 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 17:50:01 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 17:55:57 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 4 18:00:50 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 00:49:40 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 00:59:40 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 11:27:32 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 11:45:15 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 11:45:15 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 15:49:29 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 17:13:08 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 17:53:36 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 17:59:11 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 19:16:28 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 20:28:28 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 20:58:29 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 21:02:54 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 21:05:41 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 21:08:18 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 21:11:22 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 21:17:12 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 21:35:08 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 21:42:58 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 22:01:19 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 22:17:19 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 22:38:00 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 23:05:38 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 23:09:27 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 23:12:53 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 23:12:53 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 5 23:19:26 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 04:40:09 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 11:23:34 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 11:38:19 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 11:50:25 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 11:54:29 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 12:17:14 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 13:43:06 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 15:44:07 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 15:57:49 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 16:06:39 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 17:20:28 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 17:36:57 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 17:54:10 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 18:39:17 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 18:44:08 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 18:54:37 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 18:57:25 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 19:12:52 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 19:20:04 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 19:26:05 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 19:35:23 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 20:44:18 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 21:00:23 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 21:05:25 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 21:10:14 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 21:26:58 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 21:31:40 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 6 22:05:22 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 01:55:05 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 02:19:11 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 02:25:39 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 04:02:35 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 04:09:57 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 04:40:06 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 04:49:05 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 04:56:29 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 04:59:41 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 15:05:23 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 15:51:19 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 16:01:00 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 16:04:54 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 18:01:44 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 18:03:35 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 18:45:52 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 19:07:14 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 19:07:14 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 19:14:50 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 22:05:06 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 22:34:44 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 22:54:53 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 22:58:34 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 23:02:28 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 23:06:33 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 23:14:42 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 23:33:48 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 7 23:40:05 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 8 00:01:59 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 8 00:08:09 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 8 00:14:08 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 01:34:36 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 02:10:45 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 02:13:47 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 01:34:36 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 02:10:45 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 02:13:47 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 02:27:55 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 02:31:56 localhost systemd-udevd[394]: Could not apply link
> config to bridge0
> Mar 9 02:33:39 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 02:39:45 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 03:23:49 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 03:27:34 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 03:33:56 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 03:48:37 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 04:03:52 localhost systemd-udevd[381]: Could not apply link
> config to bridge0
> Mar 9 04:11:44 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 04:15:56 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 05:02:04 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 05:05:15 localhost systemd-udevd[396]: Could not apply link
> config to bridge0
> Mar 9 05:11:14 localhost systemd-udevd: Could not apply link config to
> bridge0
> Mar 9 05:14:26 localhost systemd-udevd: Could not apply link config to
> bridge0
>
> What "link config"!? :)
>
>
> Introduction to networkd, network managment from systemd
> https://coreos.com/blog/intro-to-systemd-networkd/
>
# SYSTEMD_LOG_LEVEL=debug /lib/systemd/systemd-networkd
timestamp of '/etc/systemd/network' changed
bridge0: creating netdev
enp1s9: link (with ifindex 2) added
enp3s0: found matching network '/etc/systemd/network/enp3s0.network'
enp3s0: requesting link status
enp3s0: enslaving by 'bridge0'
enp3s0: link (with ifindex 3) added
bridge0: link (with ifindex 4) added
lo: link (with ifindex 1) added
Sent message type=method_call sender=n/a
destination=org.freedesktop.DBus object=/org/freedesktop/DBus
interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0
error=n/a
enp3s0: got link state
enp3s0: link status updated: 00000000 -> 0x00001002
Got message type=method_return sender=org.freedesktop.DBus
destination=:1.30 object=n/a interface=n/a member=n/a cookie=1
reply_cookie=1 error=n/a
Got message type=signal sender=org.freedesktop.DBus destination=:1.30
object=/org/freedesktop/DBus interface=org.freedesktop.DBus
member=NameAcquired cookie=2 reply_cookie=0 error=n/a
...
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s9: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
default qlen 1000
link/ether ... brd ff:ff:ff:ff:ff:ff
3: enp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
default qlen 1000
link/ether ... brd ff:ff:ff:ff:ff:ff
4: bridge0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group
default
link/ether 62:35:26:91:ec:db brd ff:ff:ff:ff:ff:ff
...
^CReceived SIGINT.
Assertion 's->event->state != SD_EVENT_FINISHED' failed at
../src/libsystemd/sd-event/sd-event.c:1240, function
sd_event_source_set_enabled(). Ignoring.
Assertion 's->event->state != SD_EVENT_FINISHED' failed at
../src/libsystemd/sd-event/sd-event.c:1240, function
sd_event_source_set_enabled(). Ignoring.
Assertion 's->event->state != SD_EVENT_FINISHED' failed at
../src/libsystemd/sd-event/sd-event.c:1240, function
sd_event_source_set_enabled(). Ignoring.
poma
More information about the systemd-devel
mailing list