Discussion:
IPv6 using LTE Modem - Networkd configuration
(too old to reply)
Matthew Stanger
2018-03-20 20:27:36 UTC
Permalink
Raw Message
Hi,


*Summary:*I'm trying to debug not being able to get an IPv6 DHCPv6 address
when using systemd-networkd (v229 Ubuntu 16.04) with an LTE Modem. It'd be
really great if someone could at least validate my config file below!

***@crash-override ~ $ cat /etc/systemd/network/10-usb.network
[Match]
Name=enp0s20f0u3i10

[Network]
DHCP=ipv6
LinkLocalAddressing=ipv6
IPv6AcceptRA=yes
IPv6PrivacyExtensions=yes

[Link]
MACAddress=ac:ed:5c:38:31:b6

With the modem connected and networkd disabled, using sysctl(accept_ra=2)
and an '/etc/network/interface' configuration (kernel side network setup) I
am able to get an IPv6 address. This makes me suspect I'm doing something
wrong on the networkd side?

*Debug:*
***@crash-override ~ $ mmcli -m 0 --simple-connect="apn=
vzwinternet,ip-type=ipv4v6"
successfully connected the modem

***@crash-override ~ $ journalctl -u systemd-networkd
-- Logs begin at Tue 2018-03-20 07:40:45 MDT, end at Tue 2018-03-20
07:52:48 MDT. --
Mar 20 07:40:46 crash-override systemd[1]: systemd-networkd.service:
ConditionCapability=CAP_NET_ADMIN succeeded.
Mar 20 07:40:46 crash-override systemd[1]: systemd-networkd.service: About
to execute: /lib/systemd/systemd-networkd
Mar 20 07:40:46 crash-override systemd[1]: systemd-networkd.service: Forked
/lib/systemd/systemd-networkd as 657
Mar 20 07:40:46 crash-override systemd[1]: systemd-networkd.service:
Changed dead -> start
Mar 20 07:40:46 crash-override systemd[1]: Starting Network Service...
Mar 20 07:40:46 crash-override systemd[1]: systemd-networkd.service: Failed
to send unit change signal for systemd-networkd.service: Connection reset
by peer
Mar 20 07:40:46 crash-override systemd[657]: systemd-networkd.service:
Executing: /lib/systemd/systemd-networkd
Mar 20 07:40:46 crash-override systemd[1]: systemd-networkd.service: Got
notification message from PID 657 (WATCHDOG=1)
Mar 20 07:40:46 crash-override systemd-networkd[657]: Enumeration completed
Mar 20 07:40:46 crash-override systemd[1]: systemd-networkd.service: Got
notification message from PID 657 (READY=1, STATUS=Processing requests...)
Mar 20 07:40:46 crash-override systemd[1]: systemd-networkd.service:
Changed start -> running
Mar 20 07:40:46 crash-override systemd[1]: systemd-networkd.service: Job
systemd-networkd.service/start finished, result=done
Mar 20 07:40:46 crash-override systemd[1]: Started Network Service.
Mar 20 07:40:46 crash-override systemd-networkd[657]: usb0: Renamed to
enp0s20f0u3i10
Mar 20 07:40:46 crash-override systemd-networkd[657]: usb1: Renamed to
enp0s20f0u3i12
Mar 20 07:40:46 crash-override systemd-networkd[657]: enp0s20f0u3i10: IPv6
enabled for interface: Success
Mar 20 07:40:46 crash-override systemd-networkd[657]: enp0s20f0u3i10:
Gained carrier
Mar 20 07:40:46 crash-override systemd-networkd[657]: wlan0: Renamed to
wlp2s0
Mar 20 07:40:48 crash-override systemd-networkd[657]: enp0s20f0u3i10:
Gained IPv6LL
Mar 20 07:40:48 crash-override systemd-networkd[657]: eth0: Renamed to
enxa44cc8bf0e28
Mar 20 07:41:56 crash-override systemd[1]: systemd-networkd.service: Got
notification message from PID 657 (WATCHDOG=1)
Mar 20 07:43:04 crash-override systemd[1]: systemd-networkd.service: Got
notification message from PID 657 (WATCHDOG=1)
Mar 20 07:44:56 crash-override systemd[1]: systemd-networkd.service: Got
notification message from PID 657 (WATCHDOG=1)
Mar 20 07:47:03 crash-override systemd[1]: systemd-networkd.service: Got
notification message from PID 657 (WATCHDOG=1)
Mar 20 07:49:03 crash-override systemd[1]: systemd-networkd.service: Got
notification message from PID 657 (WATCHDOG=1)
Mar 20 07:50:56 crash-override systemd[1]: systemd-networkd.service: Got
notification message from PID 657 (WATCHDOG=1)
Mar 20 07:50:57 crash-override systemd-networkd[657]: enp0s20f0u3i10:
Configured

***@crash-override ~ $ ifconfig
enp0s20f0u3i10 Link encap:Ethernet HWaddr ac:ed:5c:38:31:b6
inet6 addr: fe80::aeed:5cff:fe38:31b6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:4122 (4.1 KB)

***@crash-override ~ $ ip addr show
3: enp0s20f0u3i10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
pfifo_fast state UNKNOWN group default qlen 1000
link/ether ac:ed:5c:38:31:b6 brd ff:ff:ff:ff:ff:ff
inet6 fe80::aeed:5cff:fe38:31b6/64 scope link
valid_lft forever preferred_lft forever

Just to prove out the connection part, I change to IPv4 config:
***@crash-override ~ $ cat /etc/systemd/network/10-usb.network
[Match]
Name=enp0s20f0u3i10

[Network]
DHCP=yes
#LinkLocalAddressing=ipv6
#IPv6AcceptRA=yes
#IPv6PrivacyExtensions=yes

[Link]
MACAddress=ac:ed:5c:38:31:b6

***@crash-override ~ $ sudo systemctl restart systemd-networkd

***@crash-override ~ $ ifconfig
enp0s20f0u3i10 Link encap:Ethernet HWaddr ac:ed:5c:38:31:b6
inet addr:100.124.142.128 Bcast:100.124.142.131
Mask:255.255.255.252
inet6 addr: fe80::aeed:5cff:fe38:31b6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13374 errors:0 dropped:0 overruns:0 frame:0
TX packets:8347 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15534663 (15.5 MB) TX bytes:1120638 (1.1 MB)


Any idea's on what I can do to troubleshoot further for networkd?

Cheers,
Matt

Loading...