Re: restarting network
On 28/03/16 10:49, Tony van der Hoff wrote:
What is the recommended way of restarting network services after, say,
changing the parameters in /etc/network/interfaces?
service networking restart doesn't seem to do the job properly.
Thanks, everybody for your very helpful replies ;)
It is quite correct that the "deprecated" message has appeared since
long before systemd. It is also true to say that this message no longer
appears in Jessie. However, maybe I was a little terse in my request for
assistance. So, for the pedants:
tony@tony-lx:~$ sudo service networking restart
[sudo] password for tony:
tony@tony-lx:~$
Then, from syslog
**********************************************************************
Mar 29 10:14:59 tony-lx avahi-daemon[910]: Withdrawing address record
for 192.168.1.7 on eth0.
Mar 29 10:14:59 tony-lx avahi-daemon[910]: Leaving mDNS multicast group
on interface eth0.IPv4 with address 192.168.1.7.
Mar 29 10:14:59 tony-lx avahi-daemon[910]: Interface eth0.IPv4 no longer
relevant for mDNS.
Mar 29 10:14:59 tony-lx avahi-daemon[910]: Interface eth0.IPv6 no longer
relevant for mDNS.
Mar 29 10:14:59 tony-lx avahi-daemon[910]: Leaving mDNS multicast group
on interface eth0.IPv6 with address 2001:8b0:ff60:6a90:6efd:b9ff:fe00:6f76.
Mar 29 10:14:59 tony-lx NetworkManager[882]: <info> (eth0): link
disconnected
Mar 29 10:14:59 tony-lx avahi-daemon[910]: Withdrawing address record
for 2001:8b0:ff60:6a90:6efd:b9ff:fe00:6f76 on eth0.
Mar 29 10:14:59 tony-lx networking[21457]: Deconfiguring network
interfaces...done.
Mar 29 10:14:59 tony-lx avahi-daemon[910]: Joining mDNS multicast group
on interface eth0.IPv4 with address 192.168.1.7.
Mar 29 10:14:59 tony-lx avahi-daemon[910]: New relevant interface
eth0.IPv4 for mDNS.
Mar 29 10:14:59 tony-lx kernel: [233902.408076] r8169 0000:04:06.0 eth0:
link down
Mar 29 10:14:59 tony-lx kernel: [233902.408116] r8169 0000:04:06.0 eth0:
link down
Mar 29 10:14:59 tony-lx kernel: [233902.408538] IPv6:
ADDRCONF(NETDEV_UP): eth0: link is not ready
Mar 29 10:14:59 tony-lx avahi-daemon[910]: Registering new address
record for 192.168.1.7 on eth0.IPv4.
Mar 29 10:15:01 tony-lx ntpd[971]: Deleting interface #15 eth0,
fe80::6efd:b9ff:fe00:6f76#123, interface stats: received=0, sent=0,
dropped=0, active_time=42528 secs
Mar 29 10:15:01 tony-lx ntpd[971]: Deleting interface #14 eth0,
2001:8b0:ff60:6a90:6efd:b9ff:fe00:6f76#123, interface stats:
received=48, sent=48, dropped=0, active_time=42528 secs
Mar 29 10:15:01 tony-lx ntpd[971]: 2001:67c:564::12 interface
2001:8b0:ff60:6a90:6efd:b9ff:fe00:6f76 -> (none)
Mar 29 10:15:01 tony-lx ntpd[971]: peers refreshed
Mar 29 10:15:01 tony-lx NetworkManager[882]: <info> (eth0): link connected
Mar 29 10:15:01 tony-lx kernel: [233904.748562] r8169 0000:04:06.0 eth0:
link up
Mar 29 10:15:01 tony-lx kernel: [233904.748582] IPv6:
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Mar 29 10:15:03 tony-lx avahi-daemon[910]: Joining mDNS multicast group
on interface eth0.IPv6 with address 2001:8b0:ff60:6a90:6efd:b9ff:fe00:6f76.
Mar 29 10:15:03 tony-lx avahi-daemon[910]: New relevant interface
eth0.IPv6 for mDNS.
Mar 29 10:15:03 tony-lx avahi-daemon[910]: Registering new address
record for 2001:8b0:ff60:6a90:6efd:b9ff:fe00:6f76 on eth0.*.
Mar 29 10:15:05 tony-lx ntpd[971]: Listen normally on 16 eth0
2001:8b0:ff60:6a90:6efd:b9ff:fe00:6f76 UDP 123
Mar 29 10:15:05 tony-lx ntpd[971]: Listen normally on 17 eth0
fe80::6efd:b9ff:fe00:6f76 UDP 123
Mar 29 10:15:05 tony-lx ntpd[971]: peers refreshed
Mar 29 10:15:06 tony-lx networking[21563]: Configuring network
interfaces...RTNETLINK answers: File exists
Mar 29 10:15:06 tony-lx networking[21563]: Failed to bring up eth1.
Mar 29 10:15:06 tony-lx networking[21563]: done.
**********************************************************************
All good up to the last 3 lines, where it appears that eth1 has not been
brought up. In fact, that's a lie; AFAICT interface eth1 is working fine.
So, there you have the background for my cry for help.
--
Tony van der Hoff | mailto:tony@vanderhoff.org
Buckinghamshire, England |
Reply to: