erik5678
June 26th, 2017, 01:59 PM
Hi!
I just upgraded another one of my VMs to 16.04, and I have solved most of the issues post upgrade, but there's one I can't figure out.
When using ifup and ifdown I get an error message, "/sbin/dhclient-script: 7: [: =: unexpected operator". I don't get this error on any other machine running 16.04. I have one with static IP, and 3 with DHCP assigned "static" IP. This is the only one that give me this error. Anyone else experiences this, and more importantly, does anyone have a solution?
Output from running "ifdown ens33 && ifup ens33" (MAC-address masked)
Killed old client processInternet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/ens33/xx:xx:xx:xx:xx:xx
Sending on LPF/ens33/xx:xx:xx:xx:xx:xx
Sending on Socket/fallback
DHCPRELEASE on ens33 to 192.168.0.1 port 67 (xid=0x5291f2ed)
/sbin/dhclient-script: 7: [: =: unexpected operator
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/sbin/dhclient-script: 7: [: =: unexpected operator
Listening on LPF/ens33/xx:xx:xx:xx:xx:xx
Sending on LPF/ens33/xx:xx:xx:xx:xx:xx
Sending on Socket/fallback
DHCPDISCOVER on ens33 to 255.255.255.255 port 67 interval 3 (xid=0x8eed6f2d)
DHCPREQUEST of 192.168.0.133 on ens33 to 255.255.255.255 port 67 (xid=0x2d6fed8e)
DHCPOFFER of 192.168.0.133 from 192.168.0.1
DHCPACK of 192.168.0.133 from 192.168.0.1
/sbin/dhclient-script: 7: [: =: unexpected operator
bound to 192.168.0.133 -- renewal in 39858 seconds.
/etc/network/interfaces
# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens33
iface ens33 inet dhcp
systemctl status networking.service
● networking.service - Raise network interfaces Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Drop-In: /run/systemd/generator/networking.service.d
└─50-insserv.conf-$network.conf
Active: active (exited) since Mon 2017-06-26 13:53:10 CEST; 1h 1min ago
Docs: man:interfaces(5)
Process: 528 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS)
Process: 518 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquer
Main PID: 528 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/networking.service
Jun 26 13:53:07 server systemd[1]: Starting Raise network interfaces...
Jun 26 13:53:08 server ifup[528]: /sbin/ifup: waiting for lock on /run/network/ifstate.ens33
Jun 26 13:53:10 server systemd[1]: Started Raise network interfaces.
I just upgraded another one of my VMs to 16.04, and I have solved most of the issues post upgrade, but there's one I can't figure out.
When using ifup and ifdown I get an error message, "/sbin/dhclient-script: 7: [: =: unexpected operator". I don't get this error on any other machine running 16.04. I have one with static IP, and 3 with DHCP assigned "static" IP. This is the only one that give me this error. Anyone else experiences this, and more importantly, does anyone have a solution?
Output from running "ifdown ens33 && ifup ens33" (MAC-address masked)
Killed old client processInternet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/ens33/xx:xx:xx:xx:xx:xx
Sending on LPF/ens33/xx:xx:xx:xx:xx:xx
Sending on Socket/fallback
DHCPRELEASE on ens33 to 192.168.0.1 port 67 (xid=0x5291f2ed)
/sbin/dhclient-script: 7: [: =: unexpected operator
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/sbin/dhclient-script: 7: [: =: unexpected operator
Listening on LPF/ens33/xx:xx:xx:xx:xx:xx
Sending on LPF/ens33/xx:xx:xx:xx:xx:xx
Sending on Socket/fallback
DHCPDISCOVER on ens33 to 255.255.255.255 port 67 interval 3 (xid=0x8eed6f2d)
DHCPREQUEST of 192.168.0.133 on ens33 to 255.255.255.255 port 67 (xid=0x2d6fed8e)
DHCPOFFER of 192.168.0.133 from 192.168.0.1
DHCPACK of 192.168.0.133 from 192.168.0.1
/sbin/dhclient-script: 7: [: =: unexpected operator
bound to 192.168.0.133 -- renewal in 39858 seconds.
/etc/network/interfaces
# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens33
iface ens33 inet dhcp
systemctl status networking.service
● networking.service - Raise network interfaces Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Drop-In: /run/systemd/generator/networking.service.d
└─50-insserv.conf-$network.conf
Active: active (exited) since Mon 2017-06-26 13:53:10 CEST; 1h 1min ago
Docs: man:interfaces(5)
Process: 528 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS)
Process: 518 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquer
Main PID: 528 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/networking.service
Jun 26 13:53:07 server systemd[1]: Starting Raise network interfaces...
Jun 26 13:53:08 server ifup[528]: /sbin/ifup: waiting for lock on /run/network/ifstate.ens33
Jun 26 13:53:10 server systemd[1]: Started Raise network interfaces.