Package: pppoeconf
Version: 1.21ubuntu1
Severity: normal
Dear Maintainer,
-- System Information:
Debian Release: stretch/sid
APT prefers zesty-updates
APT policy: (500, 'zesty-updates'), (500, 'zesty-security'), (500, 'zesty'),
(100, 'zesty-backports')
Architecture: amd64 (x86_64)
Kernel: Linux 4.10.0-32-generic (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages pppoeconf depends on:
ii gettext-base 0.19.8.1-1ubuntu2
ii ifupdown 0.8.16ubuntu1
ii iproute2 4.9.0-1ubuntu1
ii ppp 2.4.7-1+2ubuntu1
ii sed 4.4-1
ii whiptail 0.52.18-3ubuntu1
Versions of packages pppoeconf recommends:
ii locales 2.24-9ubuntu2.2
Versions of packages pppoeconf suggests:
pn xdialog <none>
-- no debconf information
REPRO
=====
- create a container using lxc
lxc launch 41b3c7aa109d test
- config to allow ppp
lxc config device add test dev_ppp unix-char path=/dev/ppp
- restart and enter the container
lxc restart test
lxc exec test /bin/bash
- run pppoeconf and it fails
root@test:~# pppoeconf
Cannot find device "eth0@if71"
ioctl(SIOCGIFHWADDR): No such device
Cannot find device "eth0@if71"
WORKAROUND
==========
using a preconfigured /etc/ppp/peers/dsl-provider and /etc/ppp/pap-secrets,
tune nic card name in /etc/ppp/peers/dsl-provider and issue `pon dsl-provider`
manually.
NOTES
=====
Seems it not strip the aliasing part of the ethernet name and it looks to
`eth0@if71` instead of the `eth0`.
# ifconfig
root@test:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.1 netmask 255.0.0.0 broadcast 10.255.255.255
inet6 fe80::216:3eff:fe9a:19db prefixlen 64 scopeid 0x20<link>
ether 00:16:3e:9a:19:db txqueuelen 1000 (Ethernet)
RX packets 50517 bytes 50136679 (50.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 49515 bytes 25969955 (25.9 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 6 bytes 492 (492.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6 bytes 492 (492.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# ip link
root@test:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode
DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
70: eth0@if71: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state
UP mode DEFAULT group default qlen 1000
link/ether 00:16:3e:9a:19:db brd ff:ff:ff:ff:ff:ff link-netnsid 0