follow this step
Type sudo nano /etc/dhcpcd.conf at the command prompt.
Look for the lines you added. interface eth0 static ip_address=192.168. ...
Remove these lines and then save the file ctrl + o and exit ctrl + x.
Reboot the Raspberry Pi.
if anyone face printer issue click here
https://www.canonprintersupport247.com/blog/fix-canon-printer-error-code-1702/
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1721223
Title:
Networkd fail to set ip address between leases if ip address changes
on UbuntuCore
Status in Snappy:
Fix Committed
Status in systemd package in Ubuntu:
Fix Released
Status in systemd source package in Xenial:
Fix Released
Status in systemd source package in Zesty:
Won't Fix
Status in systemd source package in Artful:
Fix Released
Bug description:
[Impact]
* networkd fails to renew a lease, specifically it fails to change IPv4
address via DHCP renew/rebind.
* networkd relies on a kernel feature to promote secondary IPv4 address to
primary, upon primary address lease expiry.
* this sysctl tunable was not enabled by default in systemd.
[Test Case]
Add a device, and assign two IPv4 addresses. First one, with a short
lease time. Second one, with a different ip and a longer lease time.
Second one should be treated as secondary ip address, and upon expiry
of the first one, should be promoted and become primary ip address.
The below scripted instructions simulate this:
sudo ip link add name testleases type dummy
sudo ip address add 192.0.2.10/27 dev testleases \
valid_lft 5 preferred_lft 5
sudo ip address add 192.0.2.11/27 dev testleases \
valid_lft 11 preferred_lft 11
ip address list dev testleases | \
grep -q 'inet 192.0.2.10/27 scope global dynamic testleases' \
&& echo ok || echo not ok
ip address list dev testleases | \
grep -q 'inet 192.0.2.11/27 scope global secondary dynamic testleases' \
&& echo ok || echo not ok
sleep 6
ip address list dev testleases | \
grep -q 'inet 192.0.2.11/27 scope global dynamic testleases' \
&& echo ok || echo not ok
sudo ip link del dev testleases
[Regression Potential]
* This changes the default kernel behaviour, previously upon expiry
of the primary address, secondary addresses were removed as well.
Which is imho silly.
* comparing networkd renewal with isc-dhcp renewal the semantics are
quite different. Upon acquiring new ip address, isc-dhcp would
instantly flush existing ip address, and add a new one. Networkd add
the new address as secondary, and waits for old one to expire first
before promoting / switching to using the new ip address. IMHO kernel
should have an API to promote secondary ip address to a primary one.
* This update also applies other safe-looking options, which are
currently also already applied via sysctls shipped in other packages
# Source route verification
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.accept_source_route = 0
# Enable hard and soft link protection
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
* This update also applies the following upstream/bufferbloat.net
recommended setting
# Fair Queue CoDel packet scheduler to fight bufferbloat
net.core.default_qdisc = fq_codel
* [~racb] There are complex network setups out there, such as HA with
corosync/pacemaker, OpenStack Neutron, and that kind of thing. If this
fix were SRU'd, will all of these things in the wild cope with this
sysctl change?
[Other Info]
* Original bug report
Hi there,
we found a replicable issue that involves the Ubuntu Core networking and
causes complete loss of connectivity.
We run a custom board with ubuntu core: the architecure is amrhf.
We replicated this issue with an official Ubuntu Core image on a Raspberry
Pi: other platform was been tested.
It shows that it is a snap core problem which interests networkd: we use the
default network stack based on networkd + netplan.
Below steps to replicate the issue.
1)Setup a dhcp server for lease of about some minutes (i.e 10 minutes).
2)Boot the board and wait for get an ip from dhcp server
3)Before the lease expires, set a reservation for a different ip address
Depending on lease duration before the lease expires( for 10 minute we have 2
minutes before ), networkd configure the new address in addition to the
previous one.
When the lease expire both ip address ( the prevoius and the new one )
disappear from the interested network interface.
Depending on lease duration before the second lease expires ( for 10 minure
we have 2 minutes before ) networkd configure only the new ip address on the
network interface and the ping toward an outside host work properly.